← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #149990]: Accuracy of image recognizers and actions sikuli.

 

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

born posted a new comment:
Yes, I understand that c better use something like: type ('n' key_ctrl) but in my case, not all menu items can be so called.
You can certainly use alt + (underlined letter in the menu) but the problem I described above is found not only in the menu. Sikuli not always accurately determine where to click. Little bit helps design similar () and targetoffset () but in the case of the menu, these tricks did not work. By the way, I'm not sure that it has focus, is seen in 35 seconds video - an application receives the focus when you click on the main menu.
Or I do not understand?
Thanks for the tip on the use of the region, but I did it here is such a problem:

Code:

switchApp ("notepad")
wait (1)
myApp = App ("Untitled - Notepad")
reg = myApp.window ()
reg.focus ()
reg.highlight (1) 
with reg:
 click(img)
Error:

[log] App.focus notepad (0) # 0
[debug] getWindow: null [error] Stopped [error] Error occurs on line 5 [error] error message: Traceback (most recent call last): File "C: \ DOCUME ~ 1 \ SEMENO ~ 1 \ LOCALS ~ 1 \ Temp \ sikuli-tmp6006180189247011497.py ", line 5, in reg.focus () AttributeError: 'NoneType' object has no attribute 'focus'
[debug] setTargetOffset: (-58,0)
[debug] setTargetOffset: (-21, -27) [debug] setTargetOffset: (-43, -13)

I apologize for my English.

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