Sending keystrokes to more than one game.

Discussions Related to Game Hacking and Memory Hacking Software

Moderators: g3nuin3, SpeedWing, WhiteHat, mezzo

Sending keystrokes to more than one game.

Postby Torero » Thu Mar 01, 2007 7:41 am

I have two star wars galaxies online game open

and I am trying to send keystrokes to both of them, how do i do that with LSS ?
Torero
NULL
 
Posts: 191
Joined: Thu Jan 04, 2007 10:14 am

Postby L. Spiro » Thu Mar 01, 2007 8:36 am

Key strokes are sent to the game that has focus, as governed by Windows® itself (meaning it is not my fault and I can not change it).
You can manually get both of their process ID’s and open them in the script (OpenProcess) rather than using MHS.exe to open them (OpenProc I believe).
Then manually give each one focus to send key strokes.

But switching focus takes a long time and it isn’t practical.
The alternative method is to directly call the window procedure in each game.
L. Spiro Script currently can not directly do this, but it is planned for the future. There will be “extern” functions, just as there are now extern variables.


L. Spiro
User avatar
L. Spiro
L. Spiro
 
Posts: 3129
Joined: Mon Jul 17, 2006 10:14 pm
Location: Tokyo, Japan

Postby Torero » Thu Mar 01, 2007 8:46 am

oh aw.


:shock:


well, this game supports windowed mode, let me try to do it with that.

i gotta find a way to make them automatically stack over one another.
Torero
NULL
 
Posts: 191
Joined: Thu Jan 04, 2007 10:14 am

Postby Torero » Thu Mar 01, 2007 9:02 am

Though LSS doesn't directly do it, can you tell me how I can send keytrokes directly through it's process ids?


I went through Autoit, Autohotkey and other things, so I can handle it, :lol:

Just tell me how to do something you haven't written yet :lol:
Torero
NULL
 
Posts: 191
Joined: Thu Jan 04, 2007 10:14 am

Postby L. Spiro » Thu Mar 01, 2007 10:40 am

Just tell me how to do something you haven't written yet

To write the thing I haven’t written yet would involve making a kernel-mode driver, a user-mode DLL, and then organizing the stack in such a way that you can manually jump to the other process, call the function from kernel, and avoid a blue screen of death.

The reason I haven’t written it yet is simply because I have been building up other parts of the kernel-mode driver.



Luckily for you there are other ways to do it.
You can inject code and call CreateRemoteThread().
It is very complicated, as you will have to inject enough code to create a wrapper from the one parameter you can pass to CreateRemoteThread() to the 5 parameters you need to call the window procedure in the game.
However, it can be done and if you know what you are doing you can do it with the Injection Manager.


The easier way is to inject your own DLL into the process and have your DLL call it.
You would then need a good way to call your DLL function. You would probably want to go back to the CreateRemoteThread() function but call your one-parameter DLL function, which will then call the 5-parameter window procedure.


L. Spiro
User avatar
L. Spiro
L. Spiro
 
Posts: 3129
Joined: Mon Jul 17, 2006 10:14 pm
Location: Tokyo, Japan

Postby Torero » Thu Apr 19, 2007 6:12 am

can you give me some hints as how I can progressively learn how to do all of these?


maybe a description of what I should accomplish in order to understand your last post?
Torero
NULL
 
Posts: 191
Joined: Thu Jan 04, 2007 10:14 am


Return to General Related Discussions

Who is online

Users browsing this forum: No registered users and 0 guests