jezzzzy Posted September 13, 2011 Posted September 13, 2011 (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 September 13, 2011 by jezzzzy
Beege Posted September 14, 2011 Posted September 14, 2011 (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 September 14, 2011 by Beege Assembly Code: fasmg . fasm . BmpSearch . Au3 Syntax Highlighter . Bounce Multithreading Example . IDispatchASMUDFs: Explorer Frame . ITaskBarList . Scrolling Line Graph . Tray Icon Bar Graph . Explorer Listview . Wiimote . WinSnap . Flicker Free Labels . iTunesPrograms: Ftp Explorer . Snipster . Network Meter . Resistance Calculator
idbirch Posted March 10, 2012 Posted March 10, 2012 (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 March 10, 2012 by idbirch
Sven Posted April 20, 2012 Posted April 20, 2012 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?
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now