Jump to content

How to pause or stop a json.send command


Recommended Posts

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 post
Share on other sites

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

    No registered users viewing this page.

×
×
  • Create New...