Skip to content

Instantly share code, notes, and snippets.

@fre-sch
Last active January 2, 2022 19:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fre-sch/b013dfabe3b59c2ed5aac83ab18a8c14 to your computer and use it in GitHub Desktop.
Save fre-sch/b013dfabe3b59c2ed5aac83ab18a8c14 to your computer and use it in GitHub Desktop.
Autohotkey script to make moving inventory items in Star Citizen (3.16) easier
#NoEnv
#Warn
SetWorkingDir %A_ScriptDir%
SendMode, Input
SetMousedelay, 20
SetMousedelay, 20, Play
;MoveXOffset := 43
#IfWinActive ahk_exe StarCitizen.exe
; Alt+P: Move from right inventory to left
!p::
Send, {LButton Down}
Sleep, 50
MouseMove, -43, 0
Sleep, 50
Send, {LButton Up}
MouseMove, 43, 0
Sleep, 50
return
; Alt+Y: Move from left inventory to right
!y::
Send, {LButton Down}
Sleep, 50
MouseMove, 43, 0
Sleep, 50
Send, {LButton Up}
Sleep, 50
MouseMove, -43, 0
return
F9::Suspend
#IfWinActive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment