| View previous topic :: View next topic |
| Author |
Message |
Puck How do I cheat?
Reputation: 0
Joined: 27 Apr 2008 Posts: 7
|
Posted: Fri May 02, 2008 7:30 pm Post subject: Code Injection - Visual Basic 6 |
|
|
I have another couple of questions regarding the Bot I'm building for Archlord. At the moment I'm having trouble sending keystrokes to the client programme. Sendkeys of course wont work, nor does the keybd_event API I'm using.
Currently my solution is to use a Macro programme, Auto Hot Key, to act as a proxy for the bot. Bot -> AHK -> AL Client. This solution is fairly inelegant and I'd like to be able to hit the Archlord client directly from my bot programme. Being a non-coder by profession, I'm not really sure how to go about this. I've heard of process injection and I am wondering if that is the way to go. I'd like the bot to work on the client programme whether it is currently active or not. Is there anyway CE can help me with this? Any advice would be very much appreciated.
|
|
| Back to top |
|
 |
Labyrnth Moderator
Reputation: 10
Joined: 28 Nov 2006 Posts: 6301
|
Posted: Fri May 02, 2008 10:55 pm Post subject: |
|
|
| I dont think so, you need to look at how they are doing this in source code somewheres
|
|
| Back to top |
|
 |
Puck How do I cheat?
Reputation: 0
Joined: 27 Apr 2008 Posts: 7
|
Posted: Fri May 02, 2008 11:58 pm Post subject: |
|
|
Thanks for that Labyrnth. I feel like a dope now. I found a simple way to send keystrokes to the client using another API - 'Sendmessage'. I used Spy++ from the MS Visual Studio package to check out the wParam and LParam codes and it's working nicely now.
|
|
| Back to top |
|
 |
hcavolsdsadgadsg I'm a spammer
Reputation: 26
Joined: 11 Jun 2007 Posts: 5801
|
Posted: Sat May 03, 2008 1:34 am Post subject: |
|
|
| minor, but you might want to look into PostMessage vs SendMesage
|
|
| Back to top |
|
 |
|