Created
April 5, 2015 08:27
-
-
Save mouuff/cce41ce8d700a7ba3069 to your computer and use it in GitHub Desktop.
Starmade jump drive.au3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <MsgBoxConstants.au3> | |
Global $cd = Int(InputBox ( "Starmade auto pilot", "enter cooldown of your jump drive (in sec)"))*1100 | |
Global $totravel = Int(InputBox ( "Starmade auto pilot", "enter length of your jump (km)")) | |
MsgBox($MB_SYSTEMMODAL,"How to run?","to launch the script come back in starmade and select jump drive system in your ship, and press TAB and wait :), press ESC to exit script") | |
Global $running = False | |
Global $travelled = 0; | |
HotKeySet( "{TAB}", "_Loop") | |
HotKeySet( "{ESC}", "_Exit") | |
while True | |
WEnd | |
Func _Loop() | |
if Not $running Then | |
$running = True | |
Beep(5000,1000) | |
While $totravel > $travelled | |
MouseDown("left") | |
Sleep($cd) | |
MouseUp("left") | |
MouseDown("right") | |
Sleep(1000) | |
MouseUp("right") | |
$travelled += 50;this value can be changed, depends the server | |
WEnd | |
EndIf | |
EndFunc | |
Func _Exit() | |
Beep(500,1000) | |
Exit | |
EndFunc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment