DelStone Posted February 22, 2012 Share Posted February 22, 2012 Not sure if anyone has come across this before - I have this code: $json = ObjCreate("Microsoft.XMLHTTP") $json.Open("GET", $url & "&access_token=" & $Token, 0) $json.Send $result = $json.responseText When the line " $json.Send " is hit, the machine freezes for several seconds whilst the query results file is grabbed. However I have pause/stop buttons on my gui, which if they are clicked during this period, the process should stop - any ideas how I can access the "code" or "function" .send to insert some code to allow this functionality to happen? Link to comment Share on other sites More sharing options...
somdcomputerguy Posted February 22, 2012 Share Posted February 22, 2012 See if this tutorial helps you out - Interrupting a running function - AutoIt Wiki - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change. Link to comment Share on other sites More sharing options...
DelStone Posted February 22, 2012 Author Share Posted February 22, 2012 The problem with the function you point to is that you need access to the details of the function to insert code into in order to allow the interrupt to occur - which is what I am pretty much asking, how do I access the json.send code to do that - is it possible? Link to comment Share on other sites More sharing options...
DelStone Posted February 27, 2012 Author Share Posted February 27, 2012 eery wind blows in the background.... anyone? Link to comment Share on other sites More sharing options...
ChrisL Posted February 28, 2012 Share Posted February 28, 2012 Sorry no help but is this for the Facebook Graph API? I'd love to know if you have any success with it [u]Scripts[/u]Minimize gui to systray _ Fail safe source recoveryMsgbox UDF _ _procwatch() Stop your app from being closedLicensed/Trial software system _ Buffering Hotkeys_SQL.au3 ADODB.Connection _ Search 2d Arrays_SplashTextWithGraphicOn() _ Adjust Screen GammaTransparent Controls _ Eventlogs without the crap_GuiCtrlCreateFlash() _ Simple Interscript communication[u]Websites[/u]Curious Campers VW Hightops Lambert Plant Hire Link to comment Share on other sites More sharing options...
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