Page 1 of 1

Quick question about Keybindings.

Posted: Thu Apr 05, 2018 2:15 pm
by echofire
The answer might be right in front of me, but I've tried searching for this one and can't seem to get a clear answer anywhere.

What I want to do: I want my Keybinding of Ctrl+F to send "attack" to the COMMAND LINE, not send it directly to the game.

Any help would be appreciated!

Re: Quick question about Keybindings.

Posted: Sun Apr 08, 2018 1:48 pm
by Jor'Mox
There are two functions you will need for that, or at least I assume so. The first is clearCommandLine(), which will delete whatever is currently written on the command line. The second is appendCommandLine("attack"), which will write "attack" exactly as if you had typed the letters yourself.