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 


C++ Problem iwth maplestory

 
Post new topic   This topic is locked: you cannot edit posts or make replies.    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
kitterz
Grandmaster Cheater Supreme
Reputation: 0

Joined: 24 Dec 2007
Posts: 1268

PostPosted: Sun May 18, 2008 9:40 am    Post subject: C++ Problem iwth maplestory Reply with quote

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
View user's profile Send private message Send e-mail
Bizarro
I post too much
Reputation: 0

Joined: 01 May 2007
Posts: 2648

PostPosted: Sun May 18, 2008 3:46 pm    Post subject: Reply with quote

// 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
View user's profile Send private message
oib111
I post too much
Reputation: 0

Joined: 02 Apr 2007
Posts: 2947
Location: you wanna know why?

PostPosted: Sun May 18, 2008 5:25 pm    Post subject: Reply with quote

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
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8588
Location: 127.0.0.1

PostPosted: Sun May 18, 2008 8:26 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   This topic is locked: you cannot edit posts or make replies.    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