View Single Post
Originally Posted by pixartist View Post
is it possible to simulate keystrokes, especially space?

Yes, but you need to use another program. I'm doing it be using Autohotkey, a free scripting/macro/automation program. Autohotkey can easily pass whatever keystrokes you want to any program, but synchronizing it with toribash is a little trickier.

The way I do it is this: My autohotkey script looks for the existance of a file, lets say its called "TimetoPressSpace.txt"; if it doesnt find it, it keeps waiting and checking until it does find it.

Meanwhile, you make a lua script that tells toribash to write "TimetoPressSpace.txt" every time some hook is called (like enter_freeze for example).

Then your autohotkey script should find this file. When it does, it should erase that "TimetoPressSpace.txt" file, and from there you can script it to send whatever keypresses you want. Whenever Toribash's hook function gets called again it should remake the file, which will reprompt AHK to do its thing.

hth