Advertisement
zamaro

Ahk login script to runescape

Mar 21st, 2014
1,029
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.25 KB | None | 0 0
  1. #NoEnv
  2. #singleinstance force
  3. Process, Priority, , High
  4.  
  5. SetKeyDelay, 0
  6.  
  7. #If WinActive("Orion") || WinActive("Old School RuneScape") || WinActive("OSBot") || WinActive("Runescape") || WinActive("Tribot") || WinActive("SwiftKit") || WinActive("Smart")
  8.  
  9. sleep1=200
  10. sleep2=600
  11.  
  12. offset=4
  13.  
  14.  
  15.  
  16. Sleeping:
  17. Random, Rand, Sleep1, Sleep2
  18. sleep %rand%
  19. return
  20.  
  21.  
  22.  
  23. /*
  24.  
  25. You can change Q To any key you want:
  26.  
  27. http://www.autohotkey.com/docs/Hotkeys.htm
  28.  
  29. */
  30.  
  31. Q::
  32. Blockinput on ; use window spy to get the coords for 'existing user' button on login screen.
  33. MouseClick , Left , 460 + Ran(offset),340 + ran(offset) ; This is the click for 'existing user, default coords is re-sized rsclient.
  34. gosub sleeping
  35. Send, Type your Username here
  36. Send, {Enter}
  37. gosub sleeping
  38. Send, Type your Password here
  39. Send, {Enter}
  40. gosub sleeping
  41. Blockinput off
  42. return
  43.  
  44.  
  45.  
  46. ;Control + f12 to resize rs client.
  47. ^F12::
  48. IfWinExist Old School RuneScape
  49. {
  50. WinActivate
  51. ResizeWin(793,571)
  52. gosub sleeping
  53. ResizeWin(793,571)
  54. }
  55. return
  56.  
  57.  
  58.  
  59.  
  60. Ran(Num)
  61. {
  62. Random, r, -1*Num, Num
  63. Return r
  64. }
  65.  
  66.  
  67.  
  68.  
  69. ResizeWin(Width = 0,Height = 0)
  70. {
  71. WinGetPos,X,Y,W,H,A
  72. If %Width% = 0
  73. Width := W
  74.  
  75. If %Height% = 0
  76. Height := H
  77.  
  78. WinMove,A,,%X%,%Y%,%Width%,%Height%
  79. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement