 |
Cheat Engine The Official Site of Cheat Engine
|
| View previous topic :: View next topic |
| Author |
Message |
kitterz Grandmaster Cheater Supreme
Reputation: 0
Joined: 24 Dec 2007 Posts: 1268
|
Posted: Sun May 18, 2008 9:40 am Post subject: C++ Problem iwth maplestory |
|
|
| Code: | void SendKey(int vk_key) {
UINT scancode;
LPARAM lparam;
if (cHandle == NULL) {
// Get window handle on MapleStory
cHandle = FindWindow("MapleStoryClass", NULL);
}
if ((cHandle != NULL) && (DLLFunc != NULL)) {
// map virtual key code to scan code
scancode = MapVirtualKey(vk_key, 0);
// The scancode value is in the low 16 bits
lparam = (scancode << 16) + 1;
// This call will generate key press in both textboxes and the graphic screen.
//myPostMessageA(cHandle, WM_KEYDOWN, vk_key, NULL);
//myPostMessageA(cHandle, WM_KEYUP, vk_key, NULL);
myPostMessageA(cHandle, WM_KEYDOWN, vk_key, lparam);
myPostMessageA(cHandle, WM_KEYUP, vk_key, NULL);
}
} |
I want to send keystrokes into maplestory...the graphic screen not the textbox. For some reason, I can send keys into textboxes in maplestory, but not the graphic screen. Any help?
|
|
| Back to top |
|
 |
Bizarro I post too much
Reputation: 0
Joined: 01 May 2007 Posts: 2648
|
Posted: Sun May 18, 2008 3:46 pm Post subject: |
|
|
// This call will generate key press in both textboxes
// and the graphic screen.
//myPostMessageA(gamehwnd, WM_KEYDOWN, vk_key, lparam);
//myPostMessageA(gamehwnd, WM_KEYUP, vk_key, NULL);
//only screen
//myPostMessageA(gamehwnd, WM_KEYDOWN, vk_key, lparam);
//myPostMessageA(gamehwnd, WM_KEYUP, vk_key, lparam);
_________________
w8 baby.com Banner contest, Come join NOW!!
Check us out for Prize deatils |
|
| Back to top |
|
 |
oib111 I post too much
Reputation: 0
Joined: 02 Apr 2007 Posts: 2947 Location: you wanna know why?
|
Posted: Sun May 18, 2008 5:25 pm Post subject: |
|
|
Look, this is posted at least once a month every month in this forum. And there have been a million topics about it and how to fix it. Instead of posting it, just go search.
_________________
| 8D wrote: |
cigs dont make people high, which weed does, which causes them to do bad stuff. like killing |
|
|
| Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8588 Location: 127.0.0.1
|
Posted: Sun May 18, 2008 8:26 pm Post subject: |
|
|
| oib111 wrote: | | Look, this is posted at least once a month every month in this forum. And there have been a million topics about it and how to fix it. Instead of posting it, just go search. |
I second that, locked since this really is posted all the time -.-
_________________
- Retired. |
|
| 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
|
|