HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Hotkeys for dialogs.

07-29-2002, 12:08 AM#1
weaaddar
Allright Heres a list of most common keys Obviously I wasn't gonna do all of them as that would of been like a 101 keys...These were painstakingly converted from Hex-> Decimal
//(note: These may work but have not been tested)
LEFT MOUSE BUTTON-1
RIGHT MOUSE BUTTON-2
MIDDLE MOUSE BUTTON-4
ESCAPE-27
LEFT KEY-37
UP KEY-38
RIGHT KEY-39
DOWN KEY-40
//(Note: all of these do work)
0-48
1-49
2-50
3-51
4-52
5-53
6-54
7-55
8-56
9-57
A-65
B-66
C-67
D-68
E-69
F-70
G-71
H-72
I-73
J-74
K-75
L-76
M-77
N-78
O-79
P-80
Q-81
R-82
S-83
T-84
U-85
V-86
W-87
X-88
Y-89
Z-90
NUMPAD0-96
NUMPAD1-97
NUMPAD2-98
NUMPAD3-99
NUMPAD4-100
NUMPAD5-101
NUMPAD6-102
NUMPAD7-103
NUMPAD8-104
NUMPAD9-105
07-29-2002, 12:13 AM#2
Guest
Where mu? I want mu!
Because... well... I plan on getting a keyboard that has mu on it.
07-29-2002, 01:41 AM#3
Guest
weaaddar, you mean that these keys can be used as hotkeys for the dialog buttons? I'm making a dialog menu and having hotkeys for them would be great, so I do hope you mean the dialog menu. I'm referring to the ones custom made in the editor and if they can be hotkeyed for every button, I would like to know how to do it if you care to share :)
07-29-2002, 02:12 AM#4
weaaddar
mu? never heard of a mu key anyway i don't think it'll leave the range too far.
Also dialogs with hotkeys work in custom text only. Basicly this list is for guys like 3millioncheese and I who would do things with dialogs and hotkeys if we weren't so UTTERLY lazy and didn't feel like converting Hex->Decimal (why the **** does MS only have it on there site in HEX it does not make sense...if it does not make sense you must aqquit.) Who knows Dialogs by the way are the gateway trigger...parameters....hmmm joy...
07-29-2002, 05:34 PM#5
Guest
Quote:
Originally posted by weaaddar
(why the **** does MS only have it on there site in HEX it does not make sense...if it does not make sense you must aqquit.) Who knows Dialogs by the way are the gateway trigger...parameters....hmmm joy...

WHAT? again please.

Quote:
Originally posted by weaaddar
mu? never heard of a mu key anyway i don't think it'll leave the range too far.

never heard of it also. actually, in the one-byte-ascii system there is no mu key (maybe its an advanced ascii key, who knows.)

i only know "foo", which is a joke by computer science teachers
07-29-2002, 07:14 PM#6
Guest
http://www.asciitable.com/

The above link has a complete ascii chart in hex/decimal and octal. You generally don't see keyboard scan code maps in decimal because only high-end languages use decimal and most of the time, when you want a key, you just type it (i.e. "A" instead of 65). Key scan codes are for low-level programming in C and assembler and therefore it is generally easier to look at a high-order/low-order hex matrix and assembler is natively hex while C has the "0x" prefix for hex numbers. And the Mu key does not exist on a physical keyboard and therefore does not produce a scan code to retrieve ;).
07-29-2002, 09:01 PM#7
Guest
just to mention, advanced scancodes, like the keyboard-cursors return a 0x00h and right after that an other scancode.

every dos programmer should know some scancodes like Ord('1') = 49, and Ord(' ')=32, Ord(ESC)=27

you can find these codes in

pascal and c++ helpfiles

qbasic (the old dos one) has a complete list of these codes in the helpfile.
08-05-2002, 03:00 AM#8
Darky
this is probably a really dumb question... but how do you assign hotkeys?
08-05-2002, 04:18 AM#9
Guest
First, I'll assume you know that calc.exe will do the hex to decimal conversion (in case you might be doing it by hand).

Second, you can use the hex numbers directly in a custom text trigger:
set value = 15
or
set value = 0x0f

Does the same thing.
08-05-2002, 03:13 PM#10
weaaddar
I tried using the hex values with the AddDialogbuttonWithHotkeyBJ() command.(atleast ahts what I think it called probably not.) ITs Dialog name, Button Name, and finally Hotkey Integer I entered something like 0x0f and it say expected a number when compiling.
08-05-2002, 04:03 PM#11
Darky
can someone give me like a complete example? sorry. i really suck with triggers.
08-05-2002, 04:22 PM#12
Darky
got it ^^
08-18-2002, 06:54 PM#13
bg77
Instead of trying to remember the keycode, you can just use the letter. example

keycode:
DialogAddButton(yourdialog, "A Button", 65)

letter:
DialogAddButton(yourdialog, "A Button", 'A')

the A is in single quotes. it works the same, and it's easier.
08-18-2002, 11:06 PM#14
weaaddar
However that doesn't work for the escape key but good work on discovering that.
08-19-2002, 02:43 AM#15
DoctorDoom
Use 512 for the escape key. If anyone can find out what the Enter key is I'd be much abliged.