Vivvic Posted December 2, 2006 Posted December 2, 2006 I am writing a launch program for a few keys for a friend of mine. But the keyboard has keyboard specific keys and I would like to find the hex values for those keys, how would I go about doing that? [quote name='DaleHohm']You have a strange habit of posting error messages that don't match your code.[/quote][quote name='SmOke_N']Forget the learning... straight to the scripting :lol: (laugh.gif)[/quote]
jvanegmond Posted December 2, 2006 Posted December 2, 2006 (edited) Hold the key and run something like thisFor $x = 100 to 1000 If _IsPressed($x) Then MsgBox(0, "", Hex($x,2)) EndIf NextEdit: Added Hex(). Edited December 2, 2006 by Manadar github.com/jvanegmond
Vivvic Posted December 2, 2006 Author Posted December 2, 2006 (edited) Hold the key and run something like this For $x = 100 to 1000 If _IsPressed($x) Then MsgBox(0, "", Hex($x,2)) EndIf Next Edit: Added Hex().Yes, I tried somthing like that but it dosnt seem to work, just tried yours and seem to get same results.>.< EDIT: failed to mention it dosnt show any errors just dosnt show msg box either. Edited December 2, 2006 by Vivvic [quote name='DaleHohm']You have a strange habit of posting error messages that don't match your code.[/quote][quote name='SmOke_N']Forget the learning... straight to the scripting :lol: (laugh.gif)[/quote]
GaryFrost Posted December 2, 2006 Posted December 2, 2006 http://www.autoitscript.com/forum/index.ph...st&p=238472 SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference.
Vivvic Posted December 2, 2006 Author Posted December 2, 2006 Ok thanks, I think I got it, will reply if I need anymore help. [quote name='DaleHohm']You have a strange habit of posting error messages that don't match your code.[/quote][quote name='SmOke_N']Forget the learning... straight to the scripting :lol: (laugh.gif)[/quote]
Zedna Posted December 3, 2006 Posted December 3, 2006 (edited) I know it's late, but here is little testing/helper script: #include <misc.au3> While 1 For $x = 1 to 256 If _IsPressed($x) Then ConsoleWrite(Hex($x,2) & @LF) EndIf Next Sleep(10) WEnd Note: it must be terminated from tray menu by Exit command Edited December 3, 2006 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now