Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ; Updated code with some optimizations
- ; Function to send control commands
- SendControl(char, key, delay := 255)
- {
- ControlSend,, {%key%}, ahk_id %char%
- Sleep %delay%
- }
- Gui, Color, EEAA99 ; Fancy Color
- Gui, Font, S12 ; Change font size to 12
- Gui, Add, GroupBox, x0 w460 h350, AO - Autoplay ; Add a groupbox
- Gui, Add, Edit , x20 y30 vchar
- Gui, Add, Checkbox, checked0 vrun, Run
- Gui, Add, Checkbox, checked0 vPressF1, F1 (Target self)
- Gui, Add, Checkbox, checked0 vPressX, x-0-x (Sit and then stand up after 0)
- Gui, Add, Checkbox, checked0 vPress9, 9 (Stim on 9)
- Gui, Add, Checkbox, checked0 vPressTab, Tab (Target closest enemy)
- Gui, Add, Checkbox, checked0 vPressF, F (Do stuff, bind to this key)
- Gui, Show
- Loop
- {
- WinGet, char1, ID, Anarchy Online -
- Sleep 222
- Gui, Submit, nohide
- If (vrun) ; Changed to vrun to match the variable name of the checkbox
- {
- If (vPressF1)
- SendControl(char1, "F1")
- If (vPressX)
- {
- SendControl(char1, "x", 155)
- SendControl(char1, "0", 155)
- SendControl(char1, "x", 155)
- }
- If (vPress9)
- SendControl(char1, "9")
- If (vPressTab)
- SendControl(char1, "Tab")
- If (vPressF)
- SendControl(char1, "f")
- }
- Else
- {
- Continue
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement