← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #162596]: How to Change the popup title from sikuli to Something?

 

Question #162596 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/162596

    Status: Answered => Open

Joe Harris is still having a problem:
while True:
try:
    sec = int(input("How many seconds you want me to wait?\nType a valid number only!"))
    break
except:
    pass # will continue looping
print "waiting for %s seconds"%(answer)


--------
It didn't work as the answer was not defined, it should have been sec.
If the user doesn't enter a valid value, can it popup("Please enter integers only")
Or something?


Also i would like to ask, Can we use the value of input to some string then use Myhandler?

Password = Input("Please enter your password")
if password = abc
    click(something)
else:
    break

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.