sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #32979
[Question #268206]: How does Settings.ClickDelay?
New question #268206 on Sikuli:
https://answers.launchpad.net/sikuli/+question/268206
Hi, Please tell me when I switched to the new version 1.1, my app is no longer click() properly. I have to set a delay after the clicks (sleep(0.5)). Can I use it Settings.ClickDelay?
My code:
def click(PSRML, region=None, time=None):
global error_state
region = region or Config.flash
time = time or Config.ImageSearchTime
if isinstance(PSRML, Location) or isinstance(PSRML, Match) or isinstance(PSRML, Region) or PSRML.__class__.__name__ == 'Region':
highlight(PSRML)
click_result = SCREEN.click(PSRML)
sleep(0.5)
API.log('Click(' + str(click_result) + ') in ' + str(PSRML))
return True
----------------------------
I had to insert the sleep() after the click :
click_result = SCREEN.click(PSRML)
sleep(0.5)
API.log('Click(' + str(click_result) + ') in ' + str(PSRML))
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.