无法 运行 Sikuli IDE 点击(图片)
Unable to run Sikuli IDE click(image)
我有一个 VB.net 项目可执行文件。我使用 Sikulix IDE.
启动可执行文件
SikulixIDE1.1.0
未平铺
#Click application logo to start
doubleClick("1459230114375.png")
#Login screen Enter UserName,Password,click ok
type("1459230089151.png","admin")
type("1459230150826.png","")
click("1459229716030.png")
当 运行 代码时,我收到此错误消息:
[error] RobotDesktop: checkMousePosition: should be L(113,545)@S(0)[0,0 1280x768] but after move is L(706,63)@S(0)[0,0 1280x768] Possible cause in case you did not touch the mouse while script was running: Mouse actions are blocked generally or by the frontmost application. You might try to run the SikuliX stuff as admin.
[error] RobotDesktop: checkMousePosition: should be L(575,376)@S(0)[0,0 1280x768] but after move is L(600,353)@S(0)[0,0 1280x768] Possible cause in case you did not touch the mouse while script was running: Mouse actions are blocked generally or by the frontmost application. You might try to run the SikuliX stuff as admin.
[error] RobotDesktop: checkMousePosition: should be L(715,402)@S(0)[0,0 1280x768] but after move is L(595,350)@S(0)[0,0 1280x768] Possible cause in case you did not touch the mouse while script was running: Mouse actions are blocked generally or by the frontmost application. You might try to run the SikuliX stuff as admin.
您应该以管理员身份尝试 运行 Sikuli IDE,正如错误消息中所建议的那样。您可以在以管理员身份启动终端时从命令行执行此操作。您可以找到详细的操作方法 here.
在 python 它对我来说是这样的:
import pyautogui as pg
pg.click(x = 2206, y = 353)# click somewhwere on sikuli on the screen
pg.hotkey('ctrl', 'r')
那么Sikuli就可以使用鼠标了
确保您的屏幕分辨率应为 100%。 “错误鼠标不可用(阻塞)”问题应该得到解决。
我有一个 VB.net 项目可执行文件。我使用 Sikulix IDE.
启动可执行文件#Click application logo to start
doubleClick("1459230114375.png")
#Login screen Enter UserName,Password,click ok
type("1459230089151.png","admin")
type("1459230150826.png","")
click("1459229716030.png")
当 运行 代码时,我收到此错误消息:
[error] RobotDesktop: checkMousePosition: should be L(113,545)@S(0)[0,0 1280x768] but after move is L(706,63)@S(0)[0,0 1280x768] Possible cause in case you did not touch the mouse while script was running: Mouse actions are blocked generally or by the frontmost application. You might try to run the SikuliX stuff as admin.
[error] RobotDesktop: checkMousePosition: should be L(575,376)@S(0)[0,0 1280x768] but after move is L(600,353)@S(0)[0,0 1280x768] Possible cause in case you did not touch the mouse while script was running: Mouse actions are blocked generally or by the frontmost application. You might try to run the SikuliX stuff as admin.
[error] RobotDesktop: checkMousePosition: should be L(715,402)@S(0)[0,0 1280x768] but after move is L(595,350)@S(0)[0,0 1280x768] Possible cause in case you did not touch the mouse while script was running: Mouse actions are blocked generally or by the frontmost application. You might try to run the SikuliX stuff as admin.
您应该以管理员身份尝试 运行 Sikuli IDE,正如错误消息中所建议的那样。您可以在以管理员身份启动终端时从命令行执行此操作。您可以找到详细的操作方法 here.
在 python 它对我来说是这样的:
import pyautogui as pg
pg.click(x = 2206, y = 353)# click somewhwere on sikuli on the screen
pg.hotkey('ctrl', 'r')
那么Sikuli就可以使用鼠标了
确保您的屏幕分辨率应为 100%。 “错误鼠标不可用(阻塞)”问题应该得到解决。