Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;======= Script Settings =======
- F11::Reload
- #SingleInstance, Force
- #IfWinActive, ahk_exe archeage.exe
- SendMode, Input
- ; ======= Functions =======
- WaitRandom(a, b)
- {
- Random, amount, a, b
- Sleep, amount
- return
- }
- Press(key)
- {
- Send, {Blind}{%key% down}
- WaitRandom(15,30)
- Send, {Blind}{%key% up}
- return
- }
- ClickNear(x, y)
- {
- Random, shiftX, -5, 5
- Random, shiftY, -5, 5
- MouseMove, x+shiftX, y+shiftY, 100
- WaitRandom(100, 250)
- Press("LButton")
- return
- }
- ToggleCapsLock()
- {
- if GetKeyState("CapsLock", "T") = 1
- {
- SetCapsLockState, off
- }
- else
- {
- SetCapsLockState, on
- }
- return
- }
- ; ======= Routines =======
- OpenHiram()
- {
- ClickNear(865, 400)
- WaitRandom(300, 600)
- ClickNear(925, 805)
- WaitRandom(300, 600)
- ClickNear(920, 585)
- return
- }
- ; ======= Keybinds =======
- F1::OpenHiram()
- LWin::Send, {Numpad6}
- *CapsLock::
- Send, {Home}
- Send, {Blind}{Insert}
- ; ~*Home::Press("Insert")
- ; ======= Space =======
- enable = false
- F8::
- if (enable := !enable)
- setTimer, routine, -1
- return
- routine:
- while enable
- {
- Press("Space")
- ; Press("LButton")
- WaitRandom(420000, 840000)
- }
- return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement