-
-
Save tdnzr/fcfdcdaf3535ec1cfd4a586676b95e61 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
global keystrokes := "" | |
~Up::Record("U") | |
~Down::Record("D") | |
~Left::Record("L") | |
~Right::Record("R") | |
F8::Release() | |
F9::Clear() | |
F10::ExitApp | |
Record(X) { | |
keystrokes := keystrokes X | |
} | |
Release() { | |
ClipBoard := keystrokes | |
Clear() | |
} | |
Clear() { | |
keystrokes := "" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey there, after some struggles I've managed to write a very basic (i.e. not user-friendly) AutoHotkey script for recording Sokoban keystrokes (i.e. only Up, Down, Left, Right).
If you'd like to try it, here are the instructions:
2a) Download it (e.g. via the "Download Zip") button, save to desktop or something, and rename the file ending from "txt" to "ahk".
2b) Alternatively, copy the script text to clipboard, then create a new .txt file, paste the contents, save, and rename the file ending to "ahk".
(The script appears in your task bar. Icon: small white H on green background.)
(In principle, there's also a way to turn an AutoHotkey script into a standalone .exe file, but sharing .exe files over the Internet is yikes.)