Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
- SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
- SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
- ; my code starts below (Locomule)...
- ; note: Alt-O (the letter,not #) terminates
- ; this macro
- ; note: the auto-alt loading function requires a text
- ; file "HORDESdata.txt" placed in the same folder as
- ; this macro that has the password for each alt as
- ; a seperate line entry
- ; note: various portions of this script send data
- ; to locations on the screen via X and Y coordinates.
- ; I was using a 1360x768 desktop setting and Chrome. ; If something doesn't work right for you, use AHK's ; WindowSpy to get the right coords for your setup.
- TTshowing = 0
- Gui, -Caption +LastFound +AlwaysOnTop
- Gui, Add, Checkbox, gRefocus cWhite, Q
- Gui, Add, Checkbox, gRefocus cWhite, W
- Gui, Add, Checkbox, gRefocus cWhite, E
- Gui, Add, Checkbox, gRefocus cWhite, Z
- Gui, Add, Checkbox, gRefocus cWhite, C
- ; note: replace my alt names below with yours in
- ; the same order as your HORDESdata.txt file
- Gui, Add, DDL, vAltChoice w100, BL-Archer||BL-Mage|BL-Shaman|BL-Warrior|One-Shot-Archer| V-Archer
- ; don't change these coords..
- GuiControl, Move, ComboBox1, x45 y0
- Gui, Add, Button, gChangeAlts, Change Alt
- GuiControl, Move, Button6, x60 y27
- Gui, Add, Button, gHelp, ?
- GuiControl, Move, Button7, x50 y75
- Gui, Add, Button, gUncheck, uncheck all
- GuiControl, Move, Button8, x75 y75
- Gui, Color, EEAA99
- ; Gui +LastFound
- ; SendMessage, 0xC00000
- WinSet, TransColor, EEAA99
- Gui, Show, AutoSize
- ; you can change these as it places the gui onscreen
- Gui, Show, X420 Y640
- Loop
- {
- GuiControlGet, Qb, , Button1
- GuiControlGet, wb, , Button2
- GuiControlGet, Eb, , Button3
- GuiControlGet, Zb, , Button4
- GuiControlGet, Cb, , Button5
- if Cb = 1
- Send c
- if Zb = 1
- Send z
- if Eb = 1
- Send e
- if Qb = 1
- Send q
- if Wb = 1
- Send {w down}
- else
- GetKeyState, keyWstate, W
- if %keyWstate% = up
- Send {w up}
- Sleep 600
- }
- Return
- !o::
- ExitApp
- Return
- !f::
- send {Enter}/respawn{Enter}
- Return
- !r::
- ; this should click somewhere inside
- ; the chat window..
- click 200, 660
- Loop 13
- Click WheelDown
- send {Enter}/rebind skill1 q{Enter}
- send {Enter}/rebind skill2 e{Enter}
- send {Enter}/rebind skill3 z{Enter}
- send {Enter}/rebind skill4 c{Enter}
- Return
- ChangeAlts:
- GuiControlGet, AltPicked, , ComboBox1
- ; again, replave my alt names with yours below,,
- if AltPicked = BL-Archer
- ReadLine = 1
- if AltPicked = BL-Mage
- ReadLine = 2
- if AltPicked = BL-Shaman
- ReadLine = 3
- if AltPicked = BL-Warrior
- ReadLine = 4
- if AltPicked = One-Shot-Archer
- ReadLine = 5
- if AltPicked = V-Archer
- ReadLine = 6
- FileReadLine, AltData, HORDESdata.txt, ReadLine
- ControlFocus,, Hordes.io | 3D Browser MMORPG - Google Chrome
- ; this needs to click inside where you type the name
- Click 1020, 95
- Sleep 750
- MouseClickDrag, Left, 815, 350, 550, 350
- Send %AltData%
- Click 700, 400
- Sleep 500
- Click 818, 202
- Return
- Refocus:
- ; note: I used AHK's Window Spy to get the name
- ; below that matched my browser. Used again below
- ControlFocus,, Hordes.io | 3D Browser MMORPG - Google Chrome
- Return
- Help:
- if TTshowing = 0
- {
- ToolTip, alt-O closes helper`nalt-R rebinds keys`n scrolls window`nalt-F respawns
- TTshowing = 1
- }
- Else
- {
- ToolTip,
- TTshowing = 0
- }
- Return
- Uncheck:
- ControlFocus,, ahk_class AutoHotkeyGUI
- Control, Uncheck,, Q
- Control, Uncheck,, W
- Control, Uncheck,, E
- Control, Uncheck,, Z
- Control, Uncheck,, C
- ControlFocus,, Hordes.io | 3D Browser MMORPG - Google Chrome
- Return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement