Skip to content

Instantly share code, notes, and snippets.

@PicciMario
Created November 29, 2016 22:18
Show Gist options
  • Select an option

  • Save PicciMario/a63fdaa56161a94ed80867f52feb831c to your computer and use it in GitHub Desktop.

Select an option

Save PicciMario/a63fdaa56161a94ed80867f52feb831c to your computer and use it in GitHub Desktop.
Script AutoHotKey per settare gimbal pitch dei motori del DGIV (Orbiter Space Simulator) con Alt+J/K/L
; ----------------------------------------------------------------
; Script AutoHotKey per settare gimbal pitch dei motori del DGIV
; (Orbiter Space Simulator) con Alt+J/K/L
; PicciMario <mario.piccinelli@gmail.com>
; Versione 0.1 29/11/2016
; ----------------------------------------------------------------
; Coordinate centrali del controllo pitch nella schermata del gioco
dgiv_gimbal_x:=897
dgiv_gimbal_y:=976
actual_x=%dgiv_gimbal_x%
actual_y=%dgiv_gimbal_y%
; -- Alt+J Pitch Up
!j::
actual_y-=2
MouseMove %actual_x%, %actual_y%
Click %actual_x%, %actual_y%
Return
; -- Alt+L Pitch Down
!l::
actual_y+=2
MouseMove %actual_x%, %actual_y%
Click %actual_x%, %actual_y%
Return
; -- Alt+K Pitch Reset
!k::
actual_x=%dgiv_gimbal_x%
actual_y=%dgiv_gimbal_y%
MouseMove %actual_x%, %actual_y%
Click %actual_x%, %actual_y%
Return
; -- Alla pressione di F5, vengono mostrate in un tooltip
; -- in alto a sx le coordinate della posizione attuale
; -- del puntatore.
F5::
CoordMode, ToolTip, Screen ; makes tooltip to appear at position, relative to screen.
CoordMode, Mouse, Screen ; makes mouse coordinates to be relative to screen.
MouseGetPos xx, yy ; get mouse x and y position, store as %xx% and %yy%
tooltip %xx% %yy%, 0, 0 ; display tooltip of %xx% %yy% at coordinates x0 y0.
Return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment