It is currently Sat May 25, 2013 9:53 pm

All times are UTC - 8 hours




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Virtual-Key Codes
PostPosted: Fri Jan 07, 2011 9:52 am 
Online
User avatar

Joined: Sat Feb 09, 2008 9:57 am
Posts: 1996
Location: Romania
Any app to show me the Virtual-Key Codes of keys pressed?

I'm interested to find out the codes for my mouse buttons (G5).

_________________
The Venus Project - Imagine Our world with No Laws, No Crime, No Wars, No Prisons


Top
 Profile  
 
 Post subject: Re: Virtual-Key Codes
PostPosted: Fri Jan 07, 2011 10:10 am 
Online
User avatar

Joined: Sat Feb 09, 2008 9:57 am
Posts: 1996
Location: Romania
I'm playing with SPlayer. And they removed the interface for customizing the hotkeys. So I need to manually edit the "SPlayer.key" file to get the result I want. But I don't know the VK's for mouse buttons 4, 5, for wheel tilt etc.
I was hoping there is such an app already, as programming is too far from my knowledge ... I wonder if any of the keyloggers could show me that info, although I hate those apps...

_________________
The Venus Project - Imagine Our world with No Laws, No Crime, No Wars, No Prisons


Top
 Profile  
 
 Post subject: Re: Virtual-Key Codes
PostPosted: Fri Jan 07, 2011 10:12 am 
Offline
User avatar

Joined: Mon Aug 27, 2007 2:00 am
Posts: 3740
I think it could be done in AutoIt?!

_________________
Added 177 Applications: Portable and an AutoIt MVP
SoftwareSpot - Portable Apps


Top
 Profile  
 
 Post subject: Re: Virtual-Key Codes
PostPosted: Mon Jan 10, 2011 11:29 am 
Offline

Joined: Sat Sep 05, 2009 6:35 pm
Posts: 287
The Virtual-Key Codes page you linked to is for Windows CE 5.0 and is missing some VK_'s.

Try Virtual-Key Codes (Windows).
And List of Virtual-Key Codes.

I assume you've already tried VK's 5 and 6; VK_XBUTTON1 0x05, VK_XBUTTON2 0x06.

I have an AutoIt script that I used for a mouse that was doing weird things when R/L clicking.
Code:
#include <misc.au3>
While 1
    Sleep(10)
    For $i=0 To 255
        If _IsPressed($i) Then
            MsgBox(0,"Key Pressed - "&Chr( $i ),"ASCII = '"& $i &"'")
        EndIf
    Next
WEnd

Here it is compiled:
http://localhostr.com/file/JR1z1aF/VKM.zip
MD5 79EFBC3E784201EA2FC9D43B3C13561F


Top
 Profile  
 
 Post subject: Re: Virtual-Key Codes
PostPosted: Mon Jan 10, 2011 12:05 pm 
Online
User avatar

Joined: Sat Feb 09, 2008 9:57 am
Posts: 1996
Location: Romania
Well, thank you very much!
You helped me a lot!
I've got them keys just the way I want, now! :)

_________________
The Venus Project - Imagine Our world with No Laws, No Crime, No Wars, No Prisons


Top
 Profile  
 
 Post subject: Re: Virtual-Key Codes
PostPosted: Mon Jan 10, 2011 12:24 pm 
Offline

Joined: Sat Sep 05, 2009 6:35 pm
Posts: 287
You're welcome, glad you got it worked out.


Top
 Profile  
 
 Post subject: Re: Virtual-Key Codes
PostPosted: Tue Jan 11, 2011 2:06 pm 
Offline
User avatar

Joined: Mon Aug 27, 2007 2:00 am
Posts: 3740
Nice simple Script Ruby, didn't know you knew AutoIt. I have similar script which uses _WinAPI_IsPressed() And for some reasons Chr($i) doesn't return the character pressed. I tried ChrW() but it was the same problem!

_________________
Added 177 Applications: Portable and an AutoIt MVP
SoftwareSpot - Portable Apps


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 1 guest


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 post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group