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

Hello, thank you a lot for making and maintaining Sikuli, I am programming 
illiterate but I managed to make a few simple scripts where it clicks on some 
stuff which is immensely helpful to automate tedious tasks.

I have two questions, First: Is there an easy way to take a screenshot and 
define a region at the same time in the exact same space? I want to check for 
an image at an exact region, but when I use the screenshot and region commands 
in the header and select them myself with the mouse It is hard to pixel perfect 
select the exact same place on my screen for screenshots and regions

Secondly: is there a way to click at the place an image has been found with the 
"exists" command without using regions command? I want to click on a fading 
image that can appear on random places of the screen. I tried using 
if exists(image):
    click(image)
But then sometimes because the image is fading between where it checks for the 
image to exists and actually clicking it the image faded just enough that the 
script doesn't detect it anymore and therefore the script breaks (because it 
tries to click on something that doesn't exist anymore at this point). 

Thanks in advance

-- 
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