How to get the system cursor type?

Asked by mike wang on 2017-03-25

I am using sikuli to control a windows application, when click a button, the system corsor changes to Busy(HourGlass), I have to wait until it changes to Idle(Normal), then go to next step.
But I don't know how to get the system cursor type? Is there a way to call the windows API GetCursorInfor to get it or some other way?

Question information

Language:
English Edit question
Status:
Solved
For:
Sikuli Edit question
Assignee:
No assignee Edit question
Solved by:
mike wang
Solved:
2017-03-29
Last query:
2017-03-29
Last reply:
2017-03-29
RaiMan (raimund-hocke) said : #1

No way currently to do this without any prebuilt Java classes (either using JNA or BridJ (used by SikuliX class ....util.SysJNA)

So if you really need it, you have to setup such a helper class for your needs (come back if you are willing to step down to the Java level)

mike wang (cn.mike) said : #2

Thanks, RaiMan.
I believe this request is also helpful for other Sikuli users.
Is it possible to add this feature in next version?

RaiMan (raimund-hocke) said : #3

ok, is on the list for version 2

see related bug

mike wang (cn.mike) said : #4

Looking forward for version 2.