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 


any idea why this kills maple? C++
Goto page Previous  1, 2
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Snootae
Grandmaster Cheater
Reputation: 0

Joined: 16 Dec 2006
Posts: 969
Location: --->

PostPosted: Mon Oct 20, 2008 9:19 pm    Post subject: Reply with quote

thanks smartz

oh yeh, for the reference spence, you forgot a brackets
otherwise your using >> 16 on 0, which means it will work on the text box and not the rest

Code:
void SendKey(unsigned short vk)
{
 _PostMessageA(FindWindow(_T("MapleStoryClass"),NULL),WM_KEYDOWN,vk,MapVirtualKey(vk,0) << 16);
}

_________________
Back to top
View user's profile Send private message
smartz993
I post too much
Reputation: 2

Joined: 20 Jun 2006
Posts: 2013
Location: USA

PostPosted: Tue Oct 21, 2008 2:23 pm    Post subject: Reply with quote

Snootae wrote:
thanks smartz

oh yeh, for the reference spence, you forgot a brackets
otherwise your using >> 16 on 0, which means it will work on the text box and not the rest

Code:
void SendKey(unsigned short vk)
{
 _PostMessageA(FindWindow(_T("MapleStoryClass"),NULL),WM_KEYDOWN,vk,MapVirtualKey(vk,0) << 16);
}



Lmao, my bad. That's what happens when trying to format your code on CEF. :]


kitterz wrote:
hey smartz... I am wondering the limitations on VkKeyScan()

Will it work for upercase letters and special characters like !@#?

Or will I have to push the shift key for that?


Nah if you try an uppercase letter, it will just send the lowercase version of it. (! = 1; Z = z; etc)
Back to top
View user's profile Send private message
kitterz
Grandmaster Cheater Supreme
Reputation: 0

Joined: 24 Dec 2007
Posts: 1268

PostPosted: Tue Oct 21, 2008 8:09 pm    Post subject: Reply with quote

smartz993 wrote:
Snootae wrote:
thanks smartz

oh yeh, for the reference spence, you forgot a brackets
otherwise your using >> 16 on 0, which means it will work on the text box and not the rest

Code:
void SendKey(unsigned short vk)
{
 _PostMessageA(FindWindow(_T("MapleStoryClass"),NULL),WM_KEYDOWN,vk,MapVirtualKey(vk,0) << 16);
}



Lmao, my bad. That's what happens when trying to format your code on CEF. :]


kitterz wrote:
hey smartz... I am wondering the limitations on VkKeyScan()

Will it work for upercase letters and special characters like !@#?

Or will I have to push the shift key for that?


Nah if you try an uppercase letter, it will just send the lowercase version of it. (! = 1; Z = z; etc)


That's what I suspected...ok thanks

_________________
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
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