Jump to content

Recommended Posts

Posted (edited)

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
Posted (edited)

_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
  • 5 months later...
Posted (edited)

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("http://192.168.0.5:8008/playback?arg0=get_current_vod_info",$ResponseXMLpath,1,1)
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
  • 1 month later...

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...