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 


[Vb] Hooking to a process?

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

Joined: 19 Dec 2007
Posts: 170

PostPosted: Thu Apr 09, 2009 3:20 pm    Post subject: [Vb] Hooking to a process? Reply with quote

I know a little about VB, but i'm not sure how to hook to a process. Or read memory. If some one could help my Aim Sn is Mkcrackelz. Or maybe some one could point me to a tutorial.
_________________
I'm Geeked UP
Back to top
View user's profile Send private message AIM Address
&Vage
Grandmaster Cheater Supreme
Reputation: 0

Joined: 25 Jul 2008
Posts: 1053

PostPosted: Thu Apr 09, 2009 3:36 pm    Post subject: Reply with quote

.NET has a Process object that gets the process's handle for you, then you could just use the handle and call ReadProcessMemory
Back to top
View user's profile Send private message
BoJangls
Expert Cheater
Reputation: 0

Joined: 19 Dec 2007
Posts: 170

PostPosted: Thu Apr 09, 2009 3:42 pm    Post subject: Reply with quote

: wrote:
.NET has a Process object that gets the process's handle for you, then you could just use the handle and call ReadProcessMemory

I guess i got alot of learnin to do. cuz i'm not sure how to do that.
i Never finshed my programming class -_- kinda sucks. cuz now i gota re learn everything on my own. I'll probably just google ReadProcessMemory and figure it out.

Thanks

edit: i tried to use this ( just to see how it worked)

Process.Start("Maplestory.exe")

and i put it in the same folder as maplestory.. and it then i ran it
and when i was supposed to open maple . i got an error...

_________________
I'm Geeked UP
Back to top
View user's profile Send private message AIM Address
Frostbyt3
Master Cheater
Reputation: 0

Joined: 07 Jan 2008
Posts: 323
Location: Australia

PostPosted: Fri Apr 10, 2009 1:35 am    Post subject: Reply with quote

That should have been

Code:
Dim process As New Process()
process.StartInfo = New ProcessStartInfo(Directory.GetCurrentDirectory() & "\MapleStory.exe")
process.Start()

Converted from C#, should work.
Back to top
View user's profile Send private message MSN Messenger
BoJangls
Expert Cheater
Reputation: 0

Joined: 19 Dec 2007
Posts: 170

PostPosted: Fri Apr 10, 2009 7:39 am    Post subject: Reply with quote

thanks, i'll have to try this when I get home.


Edit: It says Specified file cannot be found

_________________
I'm Geeked UP
Back to top
View user's profile Send private message AIM Address
shhac
Expert Cheater
Reputation: 0

Joined: 30 Oct 2007
Posts: 108

PostPosted: Sun Apr 12, 2009 11:24 am    Post subject: Reply with quote

Code:
process.StartInfo = New ProcessStartInfo(Directory.GetCurrentDirectory() & "\MapleStory.exe")

will only work if you're using it from the same directory.
I'd suggest you use the windows APIs anyway
Code:
Declare Function OpenProcess Lib "kernel32" (ByVal dwDesiredAccess As Integer, ByVal bInheritHandle As Boolean, ByVal dwProcessId As Integer) As Integer
Declare Function CloseHandle Lib "kernel32" (ByVal hObject As Integer) As Integer


PROCESS_ALL_ACCESS = &H1F0FFF ' XP
PROCESS_ALL_ACCESS = &H1FFFFF ' Vista
usually have bInheritHandle as false.
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