Advertisement
Ex0rpl4net

Untitled

Oct 8th, 2014
231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.79 KB | None | 0 0
  1. #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
  2. ; #Warn ; Enable warnings to assist with detecting common errors.
  3. SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
  4. SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
  5. #SingleInstance force
  6.  
  7. wb := ComObjCreate("InternetExplorer.Application") ;create a IE instance
  8. wb.Visible := True
  9.  
  10. wb.Navigate( "http://tf2toolbox.com/bptext" ), Wait( wb )
  11.  
  12.  
  13. wb.document.getElementByID( "signin_input" ).InnerText := "http://steamcommunity.com/id/jeka1112222"
  14. wb.document.getElementsByTagName( "form" )[ 0 ].submit()
  15.  
  16.  
  17. wb.document.getElementByID( "output_type_plaintext" ).Click()
  18. wb.document.getElementByID( "display_credit" ).Click()
  19. wb.document.getElementByID( "display_sc_url" ).Click()
  20. exitapp
  21.  
  22.  
  23. return
  24.  
  25.  
  26. return
  27. IELoad(wb) ;You need to send the IE handle to the function unless you define it as global.
  28. {
  29. If !wb ;If wb is not a valid pointer then quit
  30. Return False
  31. Loop ;Otherwise sleep for .1 seconds untill the page starts loading
  32. Sleep,100
  33. Until (wb.busy)
  34. Loop ;Once it starts loading wait until completes
  35. Sleep,100
  36. Until (!wb.busy)
  37. Loop ;optional check to wait for the page to completely load
  38. Sleep,100
  39. Until (wb.Document.Readystate = "Complete")
  40. Return True
  41. }
  42. return
  43.  
  44. Wait( obj, int = 500 )
  45. {
  46. While ( !(rs~="4{" int "}\b") || !(st~="(Done){" (int-(SubStr(int,1,1)-1 SubStr(int,2))) "}\b" ) )
  47. {
  48. rs .= obj.ReadyState, st .= obj.StatusText
  49. }
  50. }
  51.  
  52. return
  53.  
  54.  
  55.  
  56. URLDownloadToVar(url){
  57. hObject:=ComObjCreate("WinHttp.WinHttpRequest.5.1")
  58. hObject.Open("GET",url)
  59. hObject.Send()
  60. return hObject.ResponseText
  61. }
  62. return
  63.  
  64.  
  65.  
  66.  
  67. return
  68. f11::ExitApp
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement