admin管理员组文章数量:1410697
In my website, I am using a Java Applet. The mouse pointer changes to busy whenever I click a link in the JApplet. I want to check if mouse pointer is idle or busy. I have tried to import win32gui as explained in this answer in vain. Is it feasible to check if mouse is idle or busy in sikulix 2.0.5?
This is what I'm trying to achieve
while mouse_pointer_is_idle:
click("1733637249299.png")
mouseMove(1,0)
update_if_mouse_pointer_is_idle_or_not()
wait(0.3)
Thanks in advance
In my website, I am using a Java Applet. The mouse pointer changes to busy whenever I click a link in the JApplet. I want to check if mouse pointer is idle or busy. I have tried to import win32gui as explained in this answer in vain. Is it feasible to check if mouse is idle or busy in sikulix 2.0.5?
This is what I'm trying to achieve
while mouse_pointer_is_idle:
click("1733637249299.png")
mouseMove(1,0)
update_if_mouse_pointer_is_idle_or_not()
wait(0.3)
Thanks in advance
Share Improve this question edited Mar 8 at 11:40 Basheer Jarrah 6344 silver badges16 bronze badges asked Mar 8 at 8:11 user3103982user3103982 11110 bronze badges1 Answer
Reset to default 0Hi I solved it using MANIFEST.MF flie to add jna dependencies (compulsary empty newline at last line else it won't build dependencies)
Manifest-Version: 1.0
Main-Class: newmain
Class-Path: lib/jna.jar lib/jna-platform.jar
I downloaded JAVA JDK 1.8 to make it work in sikuli
Then I did
E:\\jdk1_8_0_202\\bin\\jar cfm Jar.jar MANIFEST.MF \*.class
then in sikuli
sys.path.append("E:\\Downloads\\jarf\\withdependency\\newmain.jar")
import newmain;
ct=newmain.cursor_type();
print(ct.getCode());
print(ct.getCode()==32514);
https://drive.google/file/d/1w18kSUs0HlL6i2OqQ6rv2qHww6az1I6Y/view
This is my jar file
Thanks
本文标签: statesikulix 205 detect if mouse pointer is idle or busyStack Overflow
版权声明:本文标题:state - sikulix 2.0.5 detect if mouse pointer is idle or busy - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744900347a2631306.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论