Code: Select all
^Numpad7:: ; modifier plus key of your choice.
{
Send '``' ; sends the ` keystroke to open command line in game.
Send 'Your text here' ; sends whatever text you want.
send '`n' ; sends the enter keystroke.
}
In game the command line opens as intended, but I get the closing ' and then 'Your text here' the enter keystroke works as intended.
I have tried SendInput it doesn't seem to like that, and SendText works in my test text document, but won't let me compile it to see on other computers. I don't have the game my wife dose, but I am making this script for her friend and I need to send it compiled to her.
[Mod edit: Added [code][/code] tags. Please use them yourself when posting code.]