How do I Send Keys in a Game?

Basically I would like to "press" two keys continuously (q and 3 over and over again) in a game through vbs. I made a vbs file which I tested in notepad and it worked, but as I run it, and click on the game it does nothing. However, if I run it, click on the game, and press enter, which opens the chatbox in the game, then I can see it's typing q3q3q3. Actually you select the nearest target with Q and shoot and arrow with 3 - Just so you can get a better idea of what I would like to accomplish exactly. Thank you in advance - Alex (the game is NOT minecraft)
Best Answer
hey sounds like you have a Rogue in K.O.
so cause thats an old game you should look for some already existing scripts. There are basicly for every class some, most famous are the Healer "bots" but the auto grinder for Rogue should also be easy to find in google. But if you realy whant to "programm" a vbs skript your self consider asking in the stackOverflow section of stackexchange where its about programming and not "gaming".
Pictures about "How do I Send Keys in a Game?"



How to Send Clicks and Key Strokes to Any Application
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Brett Jordan, Miguel Á. Padriñán, Maik Poblocki, Miguel Á. Padriñán