Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ; Usage: 1. Install AutoHotKey.
- ; 2. Save this to "RustBinds.ahk".
- ; 3. Double click "RustBinds.ahk" to launch.
- ;
- ; Features: Arrow keys are binded to the first 4 hotbar items, but can be easily edited to be different.
- ;
- ; Fixes: Shift + Tab now works to display the Steam overlay.
- ; Holding Escape or your inventory key will no longer spam the menus into and out of view until you let go.
- #SingleInstance force
- process, priority, ,high
- SetBatchLines, -1
- SetKeyDelay, -1, -1
- ; -------- Hotbar Binds For Arrow Keys --------
- #IfWinActive PlayRust
- ~*Left::
- Send {blind}{1} ; Press the "1" button
- KeyWait, Left
- return
- #IfWinActive PlayRust
- ~*Up::
- Send {blind}{2} ; Press the "2" button
- KeyWait, Up
- return
- #IfWinActive PlayRust
- ~*Right::
- Send {blind}{3} ; Press the "3" button
- KeyWait, Right
- return
- #IfWinActive PlayRust
- ~*Down::
- Send {blind}{4} ; Press the "4" button
- KeyWait, Down
- return
- ; -------- Shift + Tab Fix --------
- ; Fixes the issue with how hard it is to use Shift + Tab to display the Steam overlay.
- ; With this, from now on when you press Shift + Tab the menu will actually display easily.
- #IfWinActive PlayRust
- *$+Tab::
- Send {blind}{Shift Down}
- Send {blind}{Tab Down}
- Sleep, 50
- Send {blind}{Tab Up}
- Send {blind}{Shift Up}
- KeyWait, Shift
- KeyWait, Tab
- return
- ; -------- Inventory and Escape Menu Fix --------
- ; By default if you hold down Escape or Tab the game flickers those menu's in and out of view which can be annoying.
- ; So by detecting and preventing the repeat for these keys we can stop the flicker.
- ; NOTE: Tab is the key i use to show the Inventory menu. Edit this hotkey if you used something else.
- #IfWinActive PlayRust
- *$Tab::
- Send {blind}{Tab}
- KeyWait, Tab
- return
- #IfWinActive PlayRust
- *$Escape::
- Send {blind}{Escape}
- KeyWait, Escape
- return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement