Advertisement
Guest User

TESTie Flight Tool Build 0069

a guest
Jul 30th, 2015
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #IfWinActive Star Citizen
  2. #NoTrayIcon
  3. #SingleInstance force
  4. #Warn All, Off
  5.  
  6. ; Check for administrator rights and restart in admin mode if necessary.
  7. if A_IsCompiled
  8. {
  9.    if not A_IsAdmin
  10.    {
  11.      Try
  12.      {
  13.        Run *RunAs "%A_ScriptFullPath%"
  14.      }
  15.      ExitApp
  16.    }
  17. }
  18.  
  19. myName = Testie Flight Tool
  20. myAbout = Star Citizen VJOY app. created by MammonLord.`nBased on a controller balance suggestion by Pepperz.
  21. myVersion = Build 0069
  22.  
  23. helpLink = https://forums.robertsspaceindustries.com/discussion/268979/testie-flight-mode-preview-extended-relative/p1#Item_0
  24.  
  25. ; Create the tray icon.
  26. Menu, Tray, NoStandard
  27. Menu, Tray, Tip, %myName%`n%myVersion%
  28. Menu, Tray, Add, E&xit, ExitClicked
  29. Menu, Tray, Default, E&xit
  30. Menu, Tray, Icon
  31.  
  32. ; Create the sub-menus for the menu bar:
  33. Menu, FileMenu, Add, E&xit, ExitClicked
  34. Menu, HelpMenu, Add, Open the &Help Thread, HelpThread
  35. Menu, HelpMenu, Add, &About, HelpAbout
  36.  
  37. ; Create the menu bar by attaching the sub-menus to it:
  38. Menu, MyMenuBar, Add, &File, :FileMenu
  39. Menu, MyMenuBar, Add, &Help, :HelpMenu
  40.  
  41. ; Attach the menu bar to the window:
  42. Gui, Menu, MyMenuBar
  43.  
  44. ; Create the form and display the window:
  45. Gui, Margin, 0, 0, 0, 10
  46. Gui, -Resize  ; Make the window non-resizable.
  47. Gui, font, s14 q4, Tahoma ; Set 14-point Tahoma
  48. Gui, Add, Text, x15 y10, How to:
  49. Gui, Add, Text, x15 y+0, 1.
  50. Gui, Add, Text, x+10, Launch this app (Good job)
  51. Gui, Add, Text, x15 y+0, 2.
  52. Gui, Add, Text, x+10, Launch Arena Commander
  53. Gui, Add, Text, x15 y+0, 3.
  54. Gui, Add, Text, x+10, Press Ctrl+C for Relative Mode
  55. Gui, Add, Text, x15 y+0, 4.
  56. Gui, Add, Text, x+10, Press Left Alt to lock gimbals
  57. Gui, Add, Text, x15 y+0, 5.
  58. Gui, Add, Text, x+10, Activate VJOY by holding the modifier key
  59.  
  60. Gui, Add, Text, x15 y+20, Select VJOY modifier key:
  61. Gui, font, s12 q4, Tahoma ; Set 12-point Tahoma
  62. Gui, Add, Radio, gModeLeftControl checked y+5, Left &Control key
  63. Gui, Add, Radio, gModeMiddleMouseButton y+0, &Middle mouse button
  64. Gui, Add, Radio, gModeXButton1 y+0, Mouse Thumb Button &1
  65. Gui, Add, Radio, gModeXButton2 y+0, Mouse Thumb Button &2
  66. Gui, font, s14 q4, Tahoma ; Set 14-point Tahoma
  67.  
  68. Gui, Add, Text, x15 y+17, Press F11 to perform steps 3 and 4 automatically
  69. Gui, Font, underline
  70. Gui, Add, Text, x15 cBlue gHelpThread y+5, Visit our forum thread to provide feedback.
  71. Gui, Font, norm
  72. Gui, font, s10 q4, Tahoma ; Set 10-point Tahoma
  73. Gui, Add, Button, -default x15 y+25, Join &TEST Squadron!
  74. Gui, Add, Text, x0 y+3, ; Bottom margin simulator
  75.  
  76. Gui, Add, Picture, Icon5 y0 x400 w200 h256, %A_ScriptFullPath%
  77. Gui, Add, Picture, Icon4 y+0 x462 w128 h128 gButtonJoinTESTSquadron!, %A_ScriptFullPath%
  78.  
  79. Gui, Show, , %myName%
  80.  
  81. ; Create hotkeys and set default mode:
  82. Hotkey, ~$LControl, LeftControl
  83. Hotkey, ~MButton, MiddleMouseButton
  84. Hotkey, ~XButton1, XMouseButton1
  85. Hotkey, ~XButton2, XMouseButton2
  86. Hotkey, ~F11, Setup
  87. Hotkey, MButton, Off
  88. Hotkey, XButton1, Off
  89. Hotkey, XButton2, Off
  90. return
  91.  
  92. ButtonJoinTESTSquadron!:
  93. Run "https://robertsspaceindustries.com/orgs/TEST"
  94. return
  95.  
  96. HelpThread:
  97. Run %helpLink%
  98. return
  99.  
  100. HelpAbout:
  101. Gui, About:+owner1  ; Make the main window (Gui #1) the owner of the "about box".
  102. Gui, About:-Resize  ; No resizing the about box
  103. Gui +Disabled  ; Disable main window.
  104. Gui, About:Add, Text,, %myName%`n`n%myAbout%`n`n%myVersion%
  105. Gui, About:Add, Button, Default -Wrap, OK
  106. Gui, About:Show, , About %myName%
  107. return
  108.  
  109. AboutButtonOK: ; This section is used by the "about box" above.
  110. AboutGuiClose:
  111. AboutGuiEscape:
  112. Gui, 1:-Disabled  ; Enable the main window.
  113. Gui Destroy  ; Destroy the about box.
  114. return
  115.  
  116. ModeLeftControl:
  117.    Hotkey, LControl, On
  118.     Hotkey, MButton, Off
  119.     Hotkey, XButton1, Off
  120.     Hotkey, XButton2, Off
  121. return
  122.  
  123. ModeMiddleMouseButton:
  124.    Hotkey, LControl, Off
  125.     Hotkey, MButton, On
  126.     Hotkey, XButton1, Off
  127.     Hotkey, XButton2, Off
  128. return
  129.  
  130. ModeXButton1:
  131.    Hotkey, LControl, Off
  132.     Hotkey, MButton, Off
  133.     Hotkey, XButton1, On
  134.     Hotkey, XButton2, Off
  135. return
  136.  
  137. ModeXButton2:
  138.    Hotkey, LControl, Off
  139.     Hotkey, MButton, Off
  140.     Hotkey, XButton1, Off
  141.     Hotkey, XButton2, On
  142. return
  143.  
  144. ExitClicked:    ; User chose "Exit" from the File menu or tray icon.
  145. GuiClose:  ; User closed the window.
  146. ExitApp
  147.  
  148. LeftControl:
  149.    Send ^c
  150.     While GetKeyState("Ctrl", "P")
  151.     {
  152.       Sleep 1
  153.     }
  154.     Send ^c
  155. return
  156.  
  157. MiddleMouseButton:
  158.    Send ^c
  159.     While GetKeyState("MButton", "P")
  160.     {
  161.       Sleep 10
  162.     }
  163.     Send ^c
  164. return
  165.  
  166. XMouseButton1:
  167.    Send ^c
  168.     While GetKeyState("XButton1", "P")
  169.     {
  170.       Sleep 1
  171.     }
  172.     Send ^c
  173. return
  174.  
  175. XMouseButton2:
  176.    Send ^c
  177.     While GetKeyState("XButton2", "P")
  178.     {
  179.       Sleep 1
  180.     }
  181.     Send ^c
  182. return
  183.  
  184. Setup:
  185.    Send ^c
  186.     Send {LAlt}
  187.     SoundPlay *48
  188. return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement