My girlfriend's hand was cramping from having to hold down Shift-w to run around the map, so I whipped together a really basic AutoHotKey script. I'm sharing it here, just in case anyone else finds it to be useful. Perhaps in the final game, we will be able to map the actual run feature to just one key (or maybe toggle running or something)?
[B]rust_middle_mouse_run.ahk:[/B]
[CODE]
#SingleInstance Force
SetTitleMatchMode, 2 ; Make search title in #IfWinActive more flexible
MButton::
IfWinActive, PlayRust
{
SendInput, {LShift Down}
SendInput, {w Down}
return
}
return
MButton Up::
IfWinActive, PlayRust
{
SendInput, {LShift Up}
SendInput, {w Up}
return
}
return
[/CODE]
To use this script, you will need to install [URL="http://www.autohotkey.com/"]AutoHotKey[/URL], then copy and paste the script into a text file. Save the text file on your Desktop as “rust_middle_mouse_run.ahk”, then double click on it to run it.
After launching the rust_middle_mouse_run script, you will have a green “H” icon in your system tray (where the script can be toggled on or off), and when you are playing Rust, your middle mouse button will now make you run!
Nice work!
Similiar to your script I created one that will always sprint if I press down w
[CODE]*w:: ; This is an auto sprint macro, when you hold W you will run forward and sprint.
send {w down} ; w is my run forward key in Rust
send {LShift down} ; LShiftis my sprint key in Rust
KeyWait, w
send {w up} ; Stop Moving Forward
send {LShift up} ; Stop Sprinting
[/CODE]
Can change keys according to your personal bindings ingame.
Nice! I actually tried doing the same thing (making it always run when pressing "w"), but I couldn't get it to work right. Every time I opened the chat screen and hit a "w" key in a sentence, it would get all funky and switch to uppercase and stuff... :-\
[QUOTE=tominator1983;43471736]Nice! I actually tried doing the same thing (making it always run when pressing "w"), but I couldn't get it to work right. Every time I opened the chat screen and hit a "w" key in a sentence, it would get all funky and switch to uppercase and stuff... :-\[/QUOTE]
Yeah that will happen :/
You could add a line such as [CODE]del::suspend[/CODE] which allows you to suspend the macro before writing in chat so you dont get the uppercase stuff.
edit: I just looked at the default controls of rust and you might be able to set the suspend key to enter or/and T so it will suspend when you enter chat and activate again once you send your message with Enter.
Sorry, you need to Log In to post a reply to this thread.