Advertisement
Guest User

Untitled

a guest
Jan 29th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AutoIt 1.12 KB | None | 0 0
  1.  
  2. HotKeySet("{F7}","Quit")
  3. HotKeySet("{F5}", "_Fighter")
  4. HotKeySet("{F6}", "_Fighter")
  5.  
  6. Start()
  7.  
  8. ;; #1 - 39, 537
  9. ;; #2 - 39, 577
  10.  
  11. Func Start()
  12.    While 1
  13.       Sleep(500);
  14.    Wend
  15. EndFunc
  16.  
  17. Func _Fighter()
  18.  
  19.    Sleep(500);
  20.    ConsoleWrite('triggered');
  21.  
  22.    $action = 'fight';
  23.    Switch @HotKeyPressed
  24.          Case "{F5}"
  25.             $action = 'fight';
  26.          Case "{F6}"
  27.             $action = 'dock';
  28.    EndSwitch
  29.  
  30.    Send("{SHIFTDOWN}");
  31.    Sleep(100)
  32.    For $squad = 0 to 9 Step 1
  33.  
  34.       $iconHeight = 40;
  35.  
  36.       ;; OPEN FIGHTER MENU
  37.       Local $xClickPos = 39;
  38.       Local $yClickPos = 537 + ($iconHeight * $squad);
  39.       MouseMove($xClickPos, $yClickPos, 0);
  40.       MouseClick("right");
  41.       Sleep(50);
  42.  
  43.       If $action = 'fight' Then
  44.          Local $xClickPos = 82;
  45.          Local $yClickPos = 537 + ($iconHeight * $squad);
  46.          MouseMove($xClickPos, $yClickPos, 0);
  47.          MouseClick("right");
  48.       EndIf
  49.  
  50.       If $action = 'dock' Then
  51.          Local $xClickPos = 164;
  52.          Local $yClickPos = 537 + ($iconHeight * $squad);
  53.          MouseMove($xClickPos, $yClickPos, 0);
  54.          MouseClick("right");
  55.       EndIf
  56.    Next
  57.  
  58.    Send("{SHIFTUP}");
  59.  
  60. EndFunc
  61.  
  62. Func Quit()
  63.     Exit
  64. EndFunc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement