Jump to content


Prevent mouse busy cursor when window not active

  • Please log in to reply
3 replies to this topic

#1 jezzzzy



  • Active Members
  • PipPip
  • 140 posts

Posted 13 September 2011 - 02:01 PM

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, 13 September 2011 - 02:02 PM.

#2 Beege



  • MVPs
  • 896 posts

Posted 14 September 2011 - 02:37 PM

_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, 14 September 2011 - 02:44 PM.

#3 idbirch



  • Active Members
  • 44 posts

Posted 10 March 2012 - 06:03 PM

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("<a href=',$ResponseXMLpath,1,1' class='bbc_url' title='External link' rel='nofollow external'>",$ResponseXMLpath,1,1</a>) Do   Sleep(250) Until InetGetInfo($oResponse, 2) ; Check if the download is complete. InetClose($oResponse) ; Close the handle to release resources. Sleep(10000) WEnd

Edited by idbirch, 10 March 2012 - 06:04 PM.

#4 Sven



  • Active Members
  • Pip
  • 94 posts

Posted 20 April 2012 - 06:57 AM

Same issue as idbirch. This:

While 1     $hDownload = InetGet("<a href='http://www.google.com' class='bbc_url' title='External link' rel='nofollow external'>http://www.google.com"</a>, @TempDir & "\test.txt", 1, 1)     Do         Sleep(100)     Until InetGetInfo($hDownload, 2)     InetClose($hDownload)     Sleep(1000) WEnd

shows the "busy" mouse pointer every second. Any clues?

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users