Guest User

iradiation

a guest
Aug 17th, 2008
499
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AutoIt 1.32 KB | None | 0 0
  1. ;Login info;
  2. $Path = "C:\Program Files\World of Warcraft\WoW.exe";Default path
  3. $Accountname = "Account Name"; Put your WoW account name there..
  4. $Pass = "Account Password";Put your WoW password there...
  5. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  6.  
  7. Logon()
  8.  
  9. Func Logon()
  10. If WinExists("World of Warcraft") Then
  11. $hWnd = WinGetHandle("World Of Warcraft");Handle of WoW, for controlsend
  12. Sleep(100)
  13.  
  14. ControlSend($hWnd, "", "", $Accountname);Sends it to the game, wether your in game or not. Account name.
  15. Sleep(100)
  16.  
  17. ControlSend($hWnd, "", "", "{TAB}");Moves down to the password field.
  18. Sleep(100)
  19.  
  20. ControlSend($hWnd, "", "", $Pass);Sends it to the game, wether your in game or not.
  21. Sleep(100)
  22.  
  23. ControlSend($hWnd, "", "", "{ENTER}");Moves down to the password field.
  24. Sleep(100)
  25.  
  26. Else
  27. Run($Path, "")
  28. Sleep(8000);25 seconds is a bit much...
  29. $hWnd = WinGetHandle("World Of Warcraft");Handle of WoW, for controlsend
  30. Sleep(100)
  31.  
  32. ControlSend($hWnd, "", "", "Accountname");Sends it to the game, wether your in game or not. Account name.
  33. Sleep(100)
  34.  
  35. ControlSend($hWnd, "", "", "{TAB}");Moves down to the password field.
  36. Sleep(100)
  37.  
  38. ControlSend($hWnd, "", "", "AccountPassword");Sends it to the game, wether your in game or not.
  39. Sleep(100)
  40.  
  41. ControlSend($hWnd, "", "", "{ENTER}");Moves down to the password field.
  42. Sleep(100)
  43. EndIf
  44.  
  45. EndFunc
  46.  
Advertisement
Add Comment
Please, Sign In to add comment