I am using MS14 to interact with software exclusively via Citrix, so many windows hook function do not work. Is there a function that pauses a macro while the screen is being interacted with (typing or moving cursor) and then resume when the screen is left alone for a defined time?
Thanks!
Help finding certain image rec functionality
Moderators: Dorian (MJT support), JRL
Re: Help finding certain image rec functionality
WaitRecChanged does not seem to do the trick for me. Any reason this would not work over citrix? Does moving the mouse count as a change in the rectangle image that would trigger this command? If my screen is 800x600, would 0,0,800,600 do the whole screen? Thanks for your help!
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
Re: Help finding certain image rec functionality
WaitRectChanged does not see the mouse cursor.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
Re: Help finding certain image rec functionality
Ok thanks; how would I go about pausing a script when there was some kind of keyboard/mouse activity? then resuming when idle
Re: Help finding certain image rec functionality
Is this along the lines of what you're looking for?
http://www.mjtnet.com/forum/viewtopic.p ... 220&p=9085
http://www.mjtnet.com/forum/viewtopic.p ... 220&p=9085
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
Re: Help finding certain image rec functionality
All I can think of is that you could write a loop that checks the cursor position. If the cursor has not moved after a specified delay you could assume the session is idle.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?