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 


[[help]] Attaching to a game IN VB

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
ElectroFusion
Grandmaster Cheater
Reputation: 0

Joined: 17 Dec 2006
Posts: 786

PostPosted: Fri May 02, 2008 12:37 pm    Post subject: [[help]] Attaching to a game IN VB Reply with quote

How do I attach to a game?

I also need some help making a thing where i press F5 and then it repeats this "Click, type 50000, press enter"

_________________
qwerty147 wrote:

ghostonline wrote:

what world are you in?

bera

but i live in NZ


Last edited by ElectroFusion on Fri May 02, 2008 12:56 pm; edited 1 time in total
Back to top
View user's profile Send private message
Symbol
I'm a spammer
Reputation: 0

Joined: 18 Apr 2007
Posts: 5094
Location: Israel.

PostPosted: Fri May 02, 2008 12:52 pm    Post subject: Reply with quote

When you double click a process in the CE's process list it only opens the process (OpenProcess, not sure what else it does) but when you click the "attach" button it also attachs the debugger, so these are 2 diffrent things.

Not sure what you mean by "attach to a game", so you can read memory?

Get the process handle (OpenProcess, FindWindow and GetWindowThreadProcessId or CreateToolhelp32Snapshot) and then call ReadProcessMemory/WriteProcessMemory. (HANDLE Process Handle, DWORD Memory Address, BYTE[] buffer, int Size, int number of bytes read/written)
Back to top
View user's profile Send private message
ElectroFusion
Grandmaster Cheater
Reputation: 0

Joined: 17 Dec 2006
Posts: 786

PostPosted: Fri May 02, 2008 12:56 pm    Post subject: Reply with quote

OH! Im sorry, I got you on the wrong track. I meant in vb6
_________________
qwerty147 wrote:

ghostonline wrote:

what world are you in?

bera

but i live in NZ
Back to top
View user's profile Send private message
lurc
Grandmaster Cheater Supreme
Reputation: 2

Joined: 13 Nov 2006
Posts: 1900

PostPosted: Fri May 02, 2008 1:44 pm    Post subject: Reply with quote

Import those functions..
Attaching is nothing more then gaining access/a handle to an application/window.

I suggest learning C++ or even Delphi if you wanna do any of this though.

_________________
Back to top
View user's profile Send private message
tombana
Master Cheater
Reputation: 2

Joined: 14 Jun 2007
Posts: 456
Location: The Netherlands

PostPosted: Sat May 03, 2008 2:41 am    Post subject: Reply with quote

lurc wrote:
Attaching is nothing more then gaining access/a handle to an application/window.

Like Symbol said, 'attaching' means attach a debugger, and OpenProcess doesn't do that, it only gets you a handle.
Back to top
View user's profile Send private message
HalfPrime
Grandmaster Cheater
Reputation: 0

Joined: 12 Mar 2008
Posts: 532
Location: Right there...On your monitor

PostPosted: Sat May 03, 2008 7:33 am    Post subject: Reply with quote

Attaching can mean with a debugger or just attaching to it with openprocess to be able to edit memory, etc. Just depends on the context. Unfortunately, this guy could mean either one.
_________________
Back to top
View user's profile Send private message
bheesham
Advanced Cheater
Reputation: 0

Joined: 08 Nov 2006
Posts: 88
Location: ::1

PostPosted: Sat May 03, 2008 7:12 pm    Post subject: Reply with quote

for me i did
Code:

'just keys
private sub button1_click()
AppActivate "MapleStory"
sendkeys "ZZZZZZ"
end sub

'from textbox
private sub button2_click()
appactivate text1.text
sendkeys "ZZZZZZZ"
end sub


You could also use the SendKeys with a textbox. Just replace the "ZZZZZZZZZ" or whatever with Textbox.text

like so:

Code:

'just keys
private sub button1_click()
AppActivate "MapleStory"
sendkeys textbox.text
end sub

'from textbox
private sub button2_click()
appactivate text1.text
sendkeys textbox.text
end sub



I believe that this is patched for MapleStory. I know that because I tried making a bot for it. The code that I posted worked pretty good. But around patch .45 or higher it got patched and I was like...
"NNNNNNNUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU SO DAMN CLOSE!!!!".

This works with a GGLess. I think its possible to make a ban me... if you get the "GetPixel" function to work.


Hope that helped.
Back to top
View user's profile Send private message Visit poster's website
ElectroFusion
Grandmaster Cheater
Reputation: 0

Joined: 17 Dec 2006
Posts: 786

PostPosted: Tue May 06, 2008 7:59 am    Post subject: Reply with quote

Thanks bheesham, ill prob use it for a private server though. im using ME and im too lazy to drop the mesos myself... so yea.
_________________
qwerty147 wrote:

ghostonline wrote:

what world are you in?

bera

but i live in NZ
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 programming 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