Hi,
I am developing an application that uses SendKeys to control a game. But the problem is that, till now, of all the games i hav tried, it can work only on BricksFix version 1.62. Can anyone pls tel me y it is not workin on other games. I tried a lot of games, but it is not workin, but wen i try on BricksFix its workin. Also if possible, pls give me a list of games which i can control using SendKeys.
Thanx

HELP - Problems using SendKeys class
luben111
Hi,
thx for replying me.. tat really hav given some idea to me.. then is ther any way to send key strokes to games using Direct 3D,DirectDraw or DirectInput..
Thank You
Paul Proe
i hav already solved the problem of gettin focus on the game. i am able to get the handle of the game and hav the focus on it. but the problem is tat the sendkeys is workin only on BricksFix and no other games. i hav tried wit other apps like notepad etc. and its stil working. i am just concerned about the games now.
thanx
SQL New
Sendkeys needs the edit box or control...your sending to...to have the focus.
You may have to send TABS to the app/game to move to the control and activate it.
goh6613
Hello,
With SendKeys it is very raw data. The computer must be told where the data will go. In the case of an application (notepad for example) you would first have to tell your program that you expect all focus commands to be executed in notepad. then you have to tell it to focus on the control which you type on (the textbox) then you would send your key commands to emulate the keyboard. In the case of a game you would do the same. Tell sendkeys what application focus commands should be sent to then focus on a control etc. If your Bricksfix game has *real* controls to focus on then it will work (which you said it works so this would be the case). if your other games are not using controls that can be focused (yes, Direct3D, DirectDraw and DirectInput -based games do not contain focusable controls) then it will not work. The game may (or may not) receive the sendkey commands but, without a control to focus onto it would not have a clue where to send the commands and discards it. (your non-working games are probably like this). in short, Sendkeys will not work on games that use DirectX.
Hope this helps with some of the confusion.
Spenceee
Hassan Ayoub
i tink u hav not understood wat i was saying.. its notin abt the focus or control now tat confuses me.. the issue is tat my program can work only on one game i.e. BricksFix. i had tried lots n lots of games, but its not workin.. i am tryin to figure it out.. but i don tink tat my knowledge is enough to solve it.. tats y am askin for all of ur help.. sorry for disturbin u all.. but i cant help it..
thank you
asalcedo
Its not the handle of the game that counts...
Depending on what command you want to send...handles are not required....focus is.
If you want to send an {ENTER}....the focused control (a button, say)....will have to be tabbed to first.
If you have the handle of the app....and send an ENTER....you may or may not get "action".
Kees_de_Waard
im afraid there is no way we can provide you a list of games/applications that sendkeys will work with.
Most likely, it could be the application itself blocking sendkeys in some way.
The ZMan
hi all,
i will give u an idea of wat my application is doing. i am using a PDA to control a game wirelessly. the only part i am concerned is about controlling the game. The PDA is used as the game controller, sometimes using the keys. so the input is send to the server, wher the game is running n i need to control this game. i was able to use sendKeys and control BrickFix, but its not workin in any other game. that is wat am worried at. i wanna noe.. wats the difference between this game and the other games.. n whether ther is any way to control other games.
thanx
newbie777
hi nobugz..
so is ther any other way to send keystrokes to the game ... i thought the solution was to use sendkeys... i am realy confused now..