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 


pressing '<' key

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Discussions
View previous topic :: View next topic  
Author Message
Redouane
Master Cheater
Reputation: 3

Joined: 05 Sep 2013
Posts: 363
Location: Algeria

PostPosted: Mon May 09, 2016 8:33 am    Post subject: pressing '<' key Reply with quote

Is it possible to simulate the keypress '<' or '>'?
The following did not work:
Code:

doKeyPress('<');
doKeyPress(60) -- 60 in ascii='<'


Reason : a flash game where the controls change in every level, on level 10, pressing < makes the actor go left, and > right, wanted to add a hotkey that when pressed, simulates the keypress of < (because on some keyboards, there isn't even <), game : http://www.newgrounds.com/portal/view/673708.[/code]
Back to top
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Mon May 09, 2016 8:44 pm    Post subject: Reply with quote

Shift+Comma
Code:
keyDown(0xA0)
doKeyPress(0xBC)
keyUp(0xA0)

https://msdn.microsoft.com/en-us/library/windows/desktop/dd375731%28v=vs.85%29.aspx
Back to top
View user's profile Send private message
Redouane
Master Cheater
Reputation: 3

Joined: 05 Sep 2013
Posts: 363
Location: Algeria

PostPosted: Tue May 10, 2016 3:06 am    Post subject: Reply with quote

Zanzer wrote:
Shift+Comma
Code:
keyDown(0xA0)
doKeyPress(0xBC)
keyUp(0xA0)

https://msdn.microsoft.com/en-us/library/windows/desktop/dd375731%28v=vs.85%29.aspx


Tried it, outputs a question mark (?) (when an edit box is selected).

(using an AZERTY keyboard)
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 152

Joined: 06 Jul 2014
Posts: 4702

PostPosted: Tue May 10, 2016 9:05 am    Post subject: Reply with quote

Try the different VK_OEM keys listed in that reference.
_________________
I don't know where I'm going, but I'll figure it out when I get there.
Back to top
View user's profile Send private message
Redouane
Master Cheater
Reputation: 3

Joined: 05 Sep 2013
Posts: 363
Location: Algeria

PostPosted: Tue May 10, 2016 4:39 pm    Post subject: Reply with quote

ParkourPenguin wrote:
Try the different VK_OEM keys listed in that reference.


Thanks, I'll try them.

EDIT
VK_OEM_102 = 0xE2 does < (and > is simple, LSHIFT + that key)
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Discussions 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