c++ code - keyboard simulation - not just string into edit area
Posted on 2007-11-28
in script language auto it 3
there is this command
send ( "string haha!")
that would automaitcally send exact string to the keyboard.
not only that, if I try
send ( "i" ) in a game, it would also then prompt the game to do whatever that is done by pressing "i"
however, when I do this
void output ( string string1 )
int size = string1.size();
for (int i = 0; i < size; ++i)
BYTE vk = LOBYTE(::MapVirtualKey(string1[i], 0));
it would only send "i" to the chat window, if the cursor were focused there, but not if i want the game to press "i"
how do I do what I can do with auto it 3 in c++?