Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Code Injection - Visual Basic 6

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
Puck
How do I cheat?
Reputation: 0

Joined: 27 Apr 2008
Posts: 7

PostPosted: Fri May 02, 2008 7:30 pm    Post subject: Code Injection - Visual Basic 6 Reply with quote

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
View user's profile Send private message
Labyrnth
Moderator
Reputation: 10

Joined: 28 Nov 2006
Posts: 6301

PostPosted: Fri May 02, 2008 10:55 pm    Post subject: Reply with quote

I dont think so, you need to look at how they are doing this in source code somewheres
Back to top
View user's profile Send private message
Puck
How do I cheat?
Reputation: 0

Joined: 27 Apr 2008
Posts: 7

PostPosted: Fri May 02, 2008 11:58 pm    Post subject: Reply with quote

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. Smile
Back to top
View user's profile Send private message
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Sat May 03, 2008 1:34 am    Post subject: Reply with quote

minor, but you might want to look into PostMessage vs SendMesage
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites