Jump to content
Sign in to follow this  

Mouse control while display is off

Recommended Posts

Hello, members of the forum.
I have written a script for scraping data off of a particular website. It works very well 
using MouseGetCursor function to identify various link and text fields when the screen is 
visible. Unfortunately when the script is running with display off (during unattended 
scheduled task operation) the script fails as MouseCursor is returning 2 (for standard 
arrow cursor) everywhere. Clearly, Windows knows that display is off and the 
MouseGetCursor is receiving incorrect information. 
My question is thus: is there any way to force Windows to switch the display on during 
scheduled task execution so that cursor control and visibility is fully enabled? A 
related question deals with Remote Desktop Connection - is there any way to display the 
cursor of the remote computer being viewed during execution of my script? What's 
interesting is that with RDC on, the script appears to be working, even though the motion 
of the cursor is not apparent, other than from its actions, like highlighting links. 
Looking forward to your insights on the matter.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Create New...