Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- HotKeySet("{F7}","Quit")
- HotKeySet("{F5}", "_Fighter")
- HotKeySet("{F6}", "_Fighter")
- Start()
- ;; #1 - 39, 537
- ;; #2 - 39, 577
- Func Start()
- While 1
- Sleep(500);
- Wend
- EndFunc
- Func _Fighter()
- Sleep(500);
- ConsoleWrite('triggered');
- $action = 'fight';
- Switch @HotKeyPressed
- Case "{F5}"
- $action = 'fight';
- Case "{F6}"
- $action = 'dock';
- EndSwitch
- Send("{SHIFTDOWN}");
- Sleep(100)
- For $squad = 0 to 9 Step 1
- $iconHeight = 40;
- ;; OPEN FIGHTER MENU
- Local $xClickPos = 39;
- Local $yClickPos = 537 + ($iconHeight * $squad);
- MouseMove($xClickPos, $yClickPos, 0);
- MouseClick("right");
- Sleep(50);
- If $action = 'fight' Then
- Local $xClickPos = 82;
- Local $yClickPos = 537 + ($iconHeight * $squad);
- MouseMove($xClickPos, $yClickPos, 0);
- MouseClick("right");
- EndIf
- If $action = 'dock' Then
- Local $xClickPos = 164;
- Local $yClickPos = 537 + ($iconHeight * $squad);
- MouseMove($xClickPos, $yClickPos, 0);
- MouseClick("right");
- EndIf
- Next
- Send("{SHIFTUP}");
- EndFunc
- Func Quit()
- Exit
- EndFunc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement