Jump to content
Sign in to follow this  

Prevent mouse busy cursor when window not active

Recommended Posts


Script is causing my mouse to show a busy cursor when it runs an _InetGetSource. This is fine if the window is active, but not when in the background. Any ideas on why the busy status leaks through to my mouse cursor?

edit: spelling

Edited by jezzzzy

Share this post

Link to post
Share on other sites

_InetGetSource() doesnt have a backgound parameter. You need to use InetGet() if you want it to run in backgound.

edit: I misread what you ment when you said "backgound" but my response is still the same answer. _InetGetSouce() can pause your script depending on how big the source is because it uses InetRead(). To avoid the mouse busy, InetGet() in backgound mode.

Edited by Beege

Share this post

Link to post
Share on other sites

I just found this topic because I noticed exactly the same thing. I have a script with no visible window which basically polls a network device every 10 seconds. I've set INetGet to background mode but I still see a busy cursor very briefly every 10 seconds when the script is running. Any way to stop that?

I'm running Win7 x64 SP1 is that's relevant.

Global $ResponseXMLpath = @TempDir & "PchResponse.xml"
While 1
$oResponse = InetGet("",$ResponseXMLpath,1,1)
Until InetGetInfo($oResponse, 2) ; Check if the download is complete.
InetClose($oResponse) ; Close the handle to release resources.
Edited by idbirch

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