Sign in to follow this  
Followers 0

Prevent mouse busy cursor when window not active

4 posts in this topic

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

Share this post


Link to post
Share on other sites



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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

Posted

Same issue as idbirch. This:

While 1
    $hDownload = InetGet("http://www.google.com", @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?

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  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.