This is a question I asked after chewing through a slog that is YUKON. A SnowRunner map that is not difficult, not too big, and not too hard. But it's just a slog where you mindlessly press W. No technique, skill, or fine-tuned throttle control is truly needed when you drive through that one particular route (you know which one). It's mostly just pressing forward.
As someone who works as an Excel operator, moving numbers around all day, even those simple things feel not only mentally painful, but sometimes physically painful too.
Hence, I'm looking for a way to automate just this one mindless button press. For a controller user on PC, or even a steering wheel user, this may be a non-issue. But for people who can only afford a keyboard, it could make your life a bit easier.
Cruise Control for Windows
There's a mod on mod.io for cruise control. But when I checked it, it's not really a mod in the traditional sense that you can just install and use inside the game. You still need to use an external program, which I'm also going to use in this tutorial. So don't bother subscribing to those mods.
Some steps may look complicated, but it's mostly just copy-pasting something. So don't worry, there's no risk of breaking anything either.
1. Download AHK
Download AutoHotkey, or AHK, from here. Because I'm using an older script, you should get the legacy version, or version 1.x, of AHK instead of the newer one.
2. Use this script
I got the script from someone on GitHub here. As I said, it was an old script, so it probably won't work on newer AHK versions.
The script is as follows. Use Notepad or anything similar, paste this script into it, and save the file as something-something.ahk.
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
ToggleKey := "3"
HotKey, %ToggleKey%, StartCruise
return
StartCruise:
Send {w down} ; this holds "w" down
KeyWait, %A_ThisHotkey% ; waits for you to release the ToggleKey
KeyWait, %A_ThisHotkey%, D ; waits for you to press the ToggleKey again
Send {w up}
KeyWait, %A_ThisHotkey% ; waits for you to release the ToggleKey
return
You can change ToggleKey := "3" to any button you want to use. In my case, I use 3 or F3, as they are easier to reach and not too far from the W button.
3. Run the cruise control
Install AHK, and just right-click your script and open it with the software. Now you have a working cruise control. When you press 3, or whatever button you have set up, it will press W for you until you press the cruise control button again.
If it doesn't work, use "Run as administrator".
Cruise Control for Linux
Before that, let me yap a bit.
I've been a Linux dabbler for a long time and installed it on my secondary device (an old ThinkPad). But Windows is Windows, and last year my PC got borked by Microslop updates three times in the span of a single month, and it made me think... yeah! this is too much.
And when I heard a report about GDID and how someone got arrested because Microslop logs everything and just gives all the data to the three-letter agency, I finally bit the bullet and wiped my Windows installation and replaced it with Cachy.
A few weeks ago, I asked the community if there's an AHK replacement for Linux for my cruise control too. But it seemed there was no one who had done it, and I got nothing. So in the end, I dug through the internet and all the hallucinating AI to fix my problem.
When I asked the hallucination machine, it told me to use xdotool, ydotool, wdotool, and an AHK11 port for Linux. None of them worked. Not only were they a pain to set up, but the scripts the AI hallucinated were so unreliable that you could treat them as nonsense.
In the end, I dug into the Cachy forum and found an actually simple, working tool called Input Remapper.
1. Install Input Remapper
How you install it differs depending on your distro. But from what I see, it is available in most distro repos. If you're on Linux, I'll assume you already know how. Well, even if you're pretty new, it's on the software store and/or package manager too, so it's not a difficult step to do.
2. Record your keyboard
After installing it, now it's time to set up your keybind. The step is very easy. Just open the app, choose your keyboard, and write this in the macro...
toggle(hold_keys(KEY_W))
3. Run the cruise control
To run the cruise control, press Apply. Now, whenever you press the button you decided to record, it will hold W for you until you press it again. And when you want to stop it, just press the stop button.
As the app is listening to your keyboard, it will ask for a password when you want to use it. I have no apple device so I can't make guide for one. If are using one and already solved this problem for yourself. Feel free to tell me and I'll add it to this guide.
Thanks.
0 comments:
Post a Comment