Guest User

Untitled

a guest
Jan 20th, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. Stop = False
  2. Do until stop = True
  3. Objshell.sendkeys "Blah blah blah"
  4. Wscript.sleep 100
  5. Loop
  6. Wscript.echo "Stop?"
  7. Stop = True
  8.  
  9. Set ie = CreateObject("InternetExplorer.Application")
  10. ie.Offline = True
  11. ie.Navigate "about:blank"
  12.  
  13. Do While ie.Busy : WScript.Sleep 100 : Loop
  14.  
  15. ie.document.Title = "Exit loop?"
  16. ie.document.body.innerHTML = "<button name='exit' " _
  17. & "onClick=document.all('continue').value='no'>Exit</button>" _
  18. & "<input name='continue' type='hidden' value='yes'>"
  19.  
  20. ie.Height = 200
  21. ie.Width = 425
  22. ie.MenuBar = False
  23. ie.StatusBar = False
  24. ie.AddressBar = False
  25. ie.Toolbar = False
  26.  
  27. ie.Visible = True
  28.  
  29. Do Until ie.document.all("continue").Value = "no"
  30. ' do stuff
  31. WScript.Sleep 100
  32. Loop
  33.  
  34. ie.Quit
Add Comment
Please, Sign In to add comment