New question #668184 on Sikuli:
https://answers.launchpad.net/sikuli/+question/668184

im new to coding, and am slowly learning how to use sikuli by writing a simple 
bot for web game. i am trying to change a variable based on date change, an 
example of what im trying to do:

global currentdate
global newdate
global datechanged

get date and set the variable currentdate to it

datechanged = False
loopage = True

while loopage:
        get date or time and set the var newdate to it

        if currentdate != newdate:
                currentdate = newdate
                 datechanged = True

datechanged is then called in a different function that handles an event that 
can only be done once a day, once its done, it sets datechanged back to false, 
untill the day actually changes again, and the value gets set back to true

is there a clean way to get just the day for comparison?

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to