View previous topic :: View next topic |
Author |
Message |
slippppppppp Grandmaster Cheater
Reputation: 0
Joined: 08 Aug 2006 Posts: 929
|
Posted: Tue Dec 04, 2007 10:57 pm Post subject: [Delphi] |
|
|
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 |
|
 |
Symbol I'm a spammer
Reputation: 0
Joined: 18 Apr 2007 Posts: 5094 Location: Israel.
|
Posted: Tue Dec 04, 2007 11:14 pm Post subject: |
|
|
Do the same thing you did in the C++ bot...
|
|
Back to top |
|
 |
slippppppppp Grandmaster Cheater
Reputation: 0
Joined: 08 Aug 2006 Posts: 929
|
Posted: Tue Dec 04, 2007 11:30 pm Post subject: |
|
|
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 |
|
 |
sponge I'm a spammer
Reputation: 1
Joined: 07 Nov 2006 Posts: 6009
|
Posted: Tue Dec 04, 2007 11:42 pm Post subject: |
|
|
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 |
|
 |
slippppppppp Grandmaster Cheater
Reputation: 0
Joined: 08 Aug 2006 Posts: 929
|
Posted: Tue Dec 04, 2007 11:50 pm Post subject: |
|
|
=| sponge that didnt help.
|
|
Back to top |
|
 |
sponge I'm a spammer
Reputation: 1
Joined: 07 Nov 2006 Posts: 6009
|
Posted: Tue Dec 04, 2007 11:56 pm Post subject: |
|
|
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 |
|
 |
slippppppppp Grandmaster Cheater
Reputation: 0
Joined: 08 Aug 2006 Posts: 929
|
Posted: Wed Dec 05, 2007 12:15 am Post subject: |
|
|
I dont know how to code a gui in c++
|
|
Back to top |
|
 |
Symbol I'm a spammer
Reputation: 0
Joined: 18 Apr 2007 Posts: 5094 Location: Israel.
|
Posted: Wed Dec 05, 2007 12:18 am Post subject: |
|
|
Use Windows Forms?
|
|
Back to top |
|
 |
rapion124 Grandmaster Cheater Supreme
Reputation: 0
Joined: 25 Mar 2007 Posts: 1095
|
Posted: Thu Dec 06, 2007 5:53 pm Post subject: |
|
|
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 |
|
 |
|