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 


attaching to process in VB 6.0?

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

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

PostPosted: Mon Oct 08, 2007 7:45 am    Post subject: attaching to process in VB 6.0? Reply with quote

hey... im new to vb 6.0... I recently made a bot for maplestory... it only has autoloot and autoclick right now... but i dont know how to make it able to attach to processes. Please help me out here.... the bot is attatched

the password is
"nopasswordlol"



The Extension 'rar' was deactivated by an board admin, therefore this Attachment is not displayed.

Back to top
View user's profile Send private message Visit poster's website
Trow
Grandmaster Cheater
Reputation: 2

Joined: 17 Aug 2006
Posts: 957

PostPosted: Tue Oct 09, 2007 2:48 am    Post subject: Reply with quote

I don't know if I should try this on my own computer but, I have very little hope of your autoloot working over gameguard.

unless you coded your own in VB-ASM, which does exist.

_________________
Get kidnapped often.
Back to top
View user's profile Send private message
atlantis
Advanced Cheater
Reputation: 0

Joined: 16 Jun 2007
Posts: 69

PostPosted: Tue Oct 09, 2007 3:09 am    Post subject: Reply with quote

When attack in vb you can do something like this(if you mean attach to process) or do you just mean attach so you bot is over maplestory and visible?

Code:

Private Declare Function GetWindowThreadProcessId Lib "user32" (ByVal hWnd As Long, lpdwProcessId As Long) As Long
Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
Private Declare Function OpenProcess Lib "kernel32" (ByVal dwDesiredAccess As Long, ByVal bInheritHandle As Long, ByVal dwProcessId As Long) As Long
Private Declare Function CloseHandle Lib "kernel32" (ByVal hObject As Long) As Long
Private Const PROCESS_ALL_ACCESS As Long = (&HF0000 Or &H100000 Or &HFFF)
Dim windowname as string
Dim nPID as long, gHandle as long
windowname="Maplestory"
If FindWindow(vbNullString, windowname) <> 0 Then
    GetWindowThreadProcessId FindWindow(vbNullString, windowname), nPID
End If
If nPID <> 0 Then
    gHandle = OpenProcess(PROCESS_ALL_ACCESS, False, nPID)
    If gHandle <> 0 Then
    Msgbox "Successfully attached to Maplestory!"
    else
    CloseHandle gHandle
    End If
end if


But since GG hooks readprocessmemory I see no use of attach?
Back to top
View user's profile Send private message
HomerSexual
Grandmaster Cheater Supreme
Reputation: 5

Joined: 03 Feb 2007
Posts: 1657

PostPosted: Tue Oct 09, 2007 4:12 am    Post subject: Reply with quote

that code just made me throw up a little.

c++ might actually be EASIER in this case.

but you can inject it by the uh uh, the name that people name .dll trainers to hook in. I forget it but im sure that would work. Except your functions will prolly not work :S

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

Joined: 17 Aug 2006
Posts: 957

PostPosted: Tue Oct 09, 2007 6:58 am    Post subject: Reply with quote

Yeah. In this case Visual Complicated or Complicated++ will do an Easier job...
_________________
Get kidnapped often.
Back to top
View user's profile Send private message
MegaForum
Grandmaster Cheater
Reputation: 0

Joined: 20 Aug 2007
Posts: 558

PostPosted: Tue Oct 09, 2007 12:14 pm    Post subject: Reply with quote

blankrider wrote:
that code just made me throw up a little.

c++ might actually be EASIER in this case.

but you can inject it by the uh uh, the name that people name .dll trainers to hook in. I forget it but im sure that would work. Except your functions will prolly not work :S


PCOMDebug.dll?
Back to top
View user's profile Send private message
HomerSexual
Grandmaster Cheater Supreme
Reputation: 5

Joined: 03 Feb 2007
Posts: 1657

PostPosted: Tue Oct 09, 2007 1:52 pm    Post subject: Reply with quote

yeah, that could be a way to get it to hook, right?
_________________
Back to top
View user's profile Send private message
bheesham
Advanced Cheater
Reputation: 0

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

PostPosted: Tue Oct 09, 2007 2:49 pm    Post subject: Reply with quote

atlantis wrote:

Code:

windowname="Maplestory"



that part of your code doesnt work in VB 6.0....
I want it to be able to work in MapleStory.. because when i tried it noting happens in it.
as in when i put the AC on and go back to maple it doesnt click.... and i want it to click......
It also has hot keys.. which probably wont work in maple either....
but thnx... lots of suggestions here... but i dont know C++ :'(
Back to top
View user's profile Send private message Visit poster's website
Flyte
Peanuts!!!!
Reputation: 6

Joined: 19 Apr 2006
Posts: 1887
Location: Canada

PostPosted: Tue Oct 09, 2007 5:42 pm    Post subject: Reply with quote

blankrider wrote:
yeah, that could be a way to get it to hook, right?


You cannot make a proper dll in VB. It won't work.
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 204

Joined: 25 Jan 2006
Posts: 8579
Location: 127.0.0.1

PostPosted: Tue Oct 09, 2007 5:43 pm    Post subject: Reply with quote

Flyte wrote:
blankrider wrote:
yeah, that could be a way to get it to hook, right?


You cannot make a proper dll in VB. It won't work.


With a modded linker and custom addon's you can Wink
Back to top
View user's profile Send private message Visit poster's website
Trow
Grandmaster Cheater
Reputation: 2

Joined: 17 Aug 2006
Posts: 957

PostPosted: Tue Oct 09, 2007 8:42 pm    Post subject: Reply with quote

really? got a tut on that? (vb6)
_________________
Get kidnapped often.
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 204

Joined: 25 Jan 2006
Posts: 8579
Location: 127.0.0.1

PostPosted: Tue Oct 09, 2007 10:41 pm    Post subject: Reply with quote

blland wrote:
really? got a tut on that? (vb6)


Sure do.

http://www.windowsdevcenter.com/pub/a/windows/2005/04/26/create_dll.html?page=1

There was another few sites that had a similar article but I can't seem to locate them anymore. Also with that, I suggest looking into the Thunder IDE extensions located here:

http://www.f ree w eb s.com/hardcorevb/tvb.html
(http://sourceforge.net/projects/thundervb)
Back to top
View user's profile Send private message Visit poster's website
bheesham
Advanced Cheater
Reputation: 0

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

PostPosted: Wed Oct 10, 2007 3:05 pm    Post subject: Reply with quote

i didnt get it to work....

wasnt MsPro made in Visual Basics? how did that guy get it to attach to maplestory?? I hve the source... but its kind of hard for me.. im a noob programmer... D'=
Back to top
View user's profile Send private message Visit poster's website
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