Simulating mouse over, mouse hover
Posted: 30 Jun 2018, 18:06
HI, I have a problem imitating a mouse-over or mouse-hover event with my script. I work on a window of a Windows app downloaded from a remote website to communicate with the website. I want my script to know when a section of the screen becomes clickable. When this happens the section changes colour in response to the mouse cursor hovering over a point X, Y.
X, Y might be on a button, or it might just be part of a graphic. I have tried doing a MouseMove to X,Y and checking the colour. I have tried a Sleep after moving to X, Y. I have tried a Click, X, Y, 0, I have tried a slow MouseMove from a point to the left of X, Y to a point on the other side. Nothing seems to fool the app into thinking it is my real mouse cursor there. There is no colour change to indicate X, Y can be clicked
Leaving the real cursor over X, Y or nearby X, Y does work most of the time but I don’t think that’s a very good solution. The script should be able to do it. Of course I have the correct X, Y and I use WinActivate and CoordMode before the colour check and the mouse moves and clicks.
Less important, but on the same subject, how do I get the mouse cursor to move from A to B in a realistic manner instead of flashing up sometimes at A and flashing up sometimes at B?
I’m not very experienced with autohotkey. I’ve seen several mentions of this here and there but nothing that I can get to work the way I want.
Thanks if you can help
X, Y might be on a button, or it might just be part of a graphic. I have tried doing a MouseMove to X,Y and checking the colour. I have tried a Sleep after moving to X, Y. I have tried a Click, X, Y, 0, I have tried a slow MouseMove from a point to the left of X, Y to a point on the other side. Nothing seems to fool the app into thinking it is my real mouse cursor there. There is no colour change to indicate X, Y can be clicked
Leaving the real cursor over X, Y or nearby X, Y does work most of the time but I don’t think that’s a very good solution. The script should be able to do it. Of course I have the correct X, Y and I use WinActivate and CoordMode before the colour check and the mouse moves and clicks.
Less important, but on the same subject, how do I get the mouse cursor to move from A to B in a realistic manner instead of flashing up sometimes at A and flashing up sometimes at B?
I’m not very experienced with autohotkey. I’ve seen several mentions of this here and there but nothing that I can get to work the way I want.
Thanks if you can help