1

我有一个 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.
4

3 回答 3

2

您应该尝试以管理员身份运行 Sikuli IDE,正如错误消息中所建议的那样。您可以在以管理员身份启动终端时从命令行执行此操作。您可以在此处找到如何执行此操作的详细信息。

于 2016-03-29T06:43:18.680 回答
0

在 python 中,它对我来说是这样的:

import pyautogui as pg

pg.click(x = 2206, y = 353)# click somewhwere on sikuli on the screen
pg.hotkey('ctrl', 'r')

然后Sikuli可以使用鼠标

于 2020-07-21T06:46:40.927 回答
0

确保您的屏幕分辨率应为 100%。“错误鼠标不可用(阻塞)”问题应该得到解决。

于 2021-08-22T23:32:53.723 回答