 |
Cheat Engine The Official Site of Cheat Engine
|
| View previous topic :: View next topic |
| Author |
Message |
Sharel972 Newbie cheater
Reputation: 0
Joined: 02 Nov 2009 Posts: 24 Location: israel
|
Posted: Wed Dec 09, 2009 2:18 pm Post subject: [Help C++] Auto Chat |
|
|
I'm trying to build auto chat will copy the text from EditBox paste it in the game.
How I do it?
|
|
| Back to top |
|
 |
Slugsnack Grandmaster Cheater Supreme
Reputation: 71
Joined: 24 Jan 2007 Posts: 1857
|
Posted: Wed Dec 09, 2009 2:21 pm Post subject: |
|
|
| GetDlgItemText() + PostMessage()
|
|
| Back to top |
|
 |
Sharel972 Newbie cheater
Reputation: 0
Joined: 02 Nov 2009 Posts: 24 Location: israel
|
Posted: Wed Dec 09, 2009 2:23 pm Post subject: |
|
|
| can u give me an example code?
|
|
| Back to top |
|
 |
NoMercy Master Cheater
Reputation: 1
Joined: 09 Feb 2009 Posts: 289
|
Posted: Wed Dec 09, 2009 2:57 pm Post subject: |
|
|
| Sharel972 wrote: | | can u give me an example code? |
are u that coder for w8vip? i believe so,
well u could take a look at pro surf's source, it has it all
|
|
| Back to top |
|
 |
iPromise Grandmaster Cheater
Reputation: -1
Joined: 27 Jun 2009 Posts: 529 Location: Canada
|
Posted: Wed Dec 09, 2009 7:07 pm Post subject: |
|
|
Use keybd_event.
| Code: |
#include <windows.h>
void SendMyMessage()
{
//Example code sending the message Hello
keybd_event(VkKeyScan("H"), 0xA3, 0, 0);
keybd_event(VkKeyScan("E"), 0x92, 0, 0);
keybd_event(VkKeyScan("L"), 0xA6, 0, 0);
keybd_event(VkKeyScan("L"), 0xA6, 0, 0);
keybd_event(VkKeyScan("A"), 0x9E, 0, 0);
keybd_event(VkKeyScan("H"), 0xA3, KEYEVENTF_KEYUP, 0);
keybd_event(VkKeyScan("E"), 0x92, KEYEVENTF_KEYUP, 0);
keybd_event(VkKeyScan("L"), 0xA6, KEYEVENTF_KEYUP, 0);
keybd_event(VkKeyScan("L"), 0xA6, KEYEVENTF_KEYUP, 0);
keybd_event(VkKeyScan("A"), 0x9E, KEYEVENTF_KEYUP, 0);
}
|
Last edited by iPromise on Thu Dec 10, 2009 5:07 pm; edited 1 time in total |
|
| Back to top |
|
 |
hcavolsdsadgadsg I'm a spammer
Reputation: 26
Joined: 11 Jun 2007 Posts: 5801
|
Posted: Wed Dec 09, 2009 7:42 pm Post subject: |
|
|
| iPromise wrote: | Use keybd_event.
| Code: |
#include <windows.h>
void SendMyMessage()
{
//Example code sending the message Hello
keybd_event(VkKeyScan("H"), 0xA3, 0, 0);
keybd_event(VkKeyScan("E"), 0x92, 0, 0);
keybd_event(VkKeyScan("L"), 0xA6, 0, 0);
keybd_event(VkKeyScan("L"), 0xA6, 0, 0);
keybd_event(VkKeyScan("A"), 0x9E, 0, 0);
keybd_event(VkKeyScan("H"), 0xA3, KEYEVENTF_KEYUP, 0);
keybd_event(VkKeyScan("E"), 0x92, KEYEVENTF_KEYUP, 0);
keybd_event(VkKeyScan("L"), 0xA6, KEYEVENTF_KEYUP, 0);
keybd_event(VkKeyScan("L"), 0xA6, KEYEVENTF_KEYUP, 0);
keybd_event(VkKeyScan("A"), 0x9E, KEYEVENTF_KEYUP, 0);
}
|
+Rep me. |
ew, just build a nice array for SendInput() then do it in one shot if you're going to do it like this
and don't beg for rep.
|
|
| Back to top |
|
 |
NothingToShow Grandmaster Cheater Supreme
Reputation: 0
Joined: 11 Jul 2007 Posts: 1579
|
Posted: Thu Dec 10, 2009 7:09 am Post subject: |
|
|
I would suggest using an unhooked version of PostMessage();
I once messed around with an unhooked one called PostMessageX for MapleStory, worked fine.
|
|
| Back to top |
|
 |
iPromise Grandmaster Cheater
Reputation: -1
Joined: 27 Jun 2009 Posts: 529 Location: Canada
|
Posted: Thu Dec 10, 2009 5:08 pm Post subject: |
|
|
@Slovach
Never begged man, just said give me +rep, implying if I helped you.
|
|
| Back to top |
|
 |
&Vage Grandmaster Cheater Supreme
Reputation: 0
Joined: 25 Jul 2008 Posts: 1053
|
Posted: Sat Dec 12, 2009 11:16 am Post subject: |
|
|
| Slugsnack wrote: | | GetDlgItemText() + PostMessage() | If he's talking about MapleStory, there isn't a Dlg control for text, it's all drawn by DX. So the best way is to either hook the output chat handler or hook MapleStory's recv and filter out the packets.
|
|
| Back to top |
|
 |
smartz993 I post too much
Reputation: 2
Joined: 20 Jun 2006 Posts: 2013 Location: USA
|
Posted: Sat Dec 12, 2009 12:31 pm Post subject: |
|
|
| &Vage wrote: | | Slugsnack wrote: | | GetDlgItemText() + PostMessage() | If he's talking about MapleStory, there isn't a Dlg control for text, it's all drawn by DX. So the best way is to either hook the output chat handler or hook MapleStory's recv and filter out the packets. |
| Sharel972 wrote: | I'm trying to build auto chat will copy the text from EditBox paste it in the game.
How I do it? |
You dumb? He wants it copied from his own box.
|
|
| Back to top |
|
 |
&Vage Grandmaster Cheater Supreme
Reputation: 0
Joined: 25 Jul 2008 Posts: 1053
|
Posted: Sun Dec 13, 2009 10:25 am Post subject: |
|
|
| Code: | void __inline sendText(char * szBuf)
{
for(int i = 0; i<=strlen(szBuf); i++)
{
PostMessage(hWnd, WM_KEYDOWN, szBuf[i], MapVirtualKey(szBuf[i], 0)<<16);
}
} |
|
|
| Back to top |
|
 |
|
|
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
|
|