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 


[Delphi]

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

Joined: 08 Aug 2006
Posts: 929

PostPosted: Tue Dec 04, 2007 10:57 pm    Post subject: [Delphi] Reply with quote

Ok, i decided to rebuild my bot, but in delphi instead, and i have this problem. I want to send Z to loot , it does send Z to MapleStory, but it doesnt loot. instead, it sends Z if i push enter, and itll spam z in my chat, but it wont loot, and yes, my loot function in ms is set to Z.
Back to top
View user's profile Send private message AIM Address MSN Messenger
Symbol
I'm a spammer
Reputation: 0

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

PostPosted: Tue Dec 04, 2007 11:14 pm    Post subject: Reply with quote

Do the same thing you did in the C++ bot...
Back to top
View user's profile Send private message
slippppppppp
Grandmaster Cheater
Reputation: 0

Joined: 08 Aug 2006
Posts: 929

PostPosted: Tue Dec 04, 2007 11:30 pm    Post subject: Reply with quote

i dont know how to convert

(MapVirtualKey(0xA2,0) << 16) & 0x00FF0000);

And i've tried

MapVirtualKey($5A,0);
ive tried
WM_KEYDOWN, 0, $5A
WM_KEYDOWN, $5A, $5A
WM_KEYDOWN, MapVirtualKey($5A,0), 0
WM_KEYDOWN, 0, MapVirtualKey($5A,0)
WM_KEYDOWN, MapVirtualKey($5A,0), MapVirtualKey($5A,0)

All failed.
Back to top
View user's profile Send private message AIM Address MSN Messenger
sponge
I'm a spammer
Reputation: 1

Joined: 07 Nov 2006
Posts: 6009

PostPosted: Tue Dec 04, 2007 11:42 pm    Post subject: Reply with quote

Code:
push 0
push dword ptr ds:[myKey]
call MapVirtualKey

shl eax, 10
inc eax

EAX will contain what you need. I'm not sure about the capabilities of Delphi inline though.

Alternatively for repeat count change.

Replace the inc eax, with...
Code:
add eax, dword ptr ds:[repeatCount]

Code:
add eax, 0XXh ;hardcoded

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

Joined: 08 Aug 2006
Posts: 929

PostPosted: Tue Dec 04, 2007 11:50 pm    Post subject: Reply with quote

=| sponge that didnt help.
Back to top
View user's profile Send private message AIM Address MSN Messenger
sponge
I'm a spammer
Reputation: 1

Joined: 07 Nov 2006
Posts: 6009

PostPosted: Tue Dec 04, 2007 11:56 pm    Post subject: Reply with quote

learn masm and then create a dll and export it... or find a way to create a static lib that delphi will accept. that way theres less bloat in that proc and then its more efficient. I don't like the idea of loading a dll just to do that... so if somehow you could find a way to turn it into a static lib...

I'm assuming you are switching to Delphi because of the GUI?
Don't. Just code your GUI in C++.

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

Joined: 08 Aug 2006
Posts: 929

PostPosted: Wed Dec 05, 2007 12:15 am    Post subject: Reply with quote

I dont know how to code a gui in c++
Back to top
View user's profile Send private message AIM Address MSN Messenger
Symbol
I'm a spammer
Reputation: 0

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

PostPosted: Wed Dec 05, 2007 12:18 am    Post subject: Reply with quote

Use Windows Forms?
Back to top
View user's profile Send private message
rapion124
Grandmaster Cheater Supreme
Reputation: 0

Joined: 25 Mar 2007
Posts: 1095

PostPosted: Thu Dec 06, 2007 5:53 pm    Post subject: Reply with quote

What are you using to send 'z' to Maplestory? PostMessage? SendInput? Check if whatever you're trying to do is working by checking the return value of the function.
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