I want to add a few items on my main menu "Default.src/bin.
I want to use a 1 & 2, and I tried CMDKEY 1 & CMDKEY 2, and that doesn't work, but after reading the baja manuel, I see CMDKEYE 1 & CMDKEYE 2, and also
CMDKEYE DIGIT 1 & CMDKEYE DIGIT 2. Which is right, or what is the proper way to use a number with CMDKEY. Thanks in advance.
I want to add a few items on my main menu "Default.src/bin.
I want to use a 1 & 2, and I tried CMDKEY 1 & CMDKEY 2, and that doesn't work, but after reading the baja manuel, I see CMDKEYE 1 & CMDKEYE 2, and also CMDKEYE DIGIT 1 & CMDKEYE DIGIT 2. Which is right, or what is the proper way to use a number with CMDKEY. Thanks in advance.
To check for a user pressing the number 1 you should probably use CMDKEYE 1
In the default command shell, numbers change areas. This behavior is handled by this code in default.src:
cmdkey digit
compare_user_misc UM_COLDKEYS
if_false
ungetkey
end_if
msg_get_sub_num
end_cmd
so... those command keys aren't already "taken".
Re: Baja and numbers
By: Digital Man to DesotoFireflite on Mon Nov 16 2020 12:33 am
In the default command shell, numbers change areas. This behavior is handled by this code in default.src:
cmdkey digit
compare_user_misc UM_COLDKEYS
if_false
ungetkey
end_if
msg_get_sub_num
end_cmd
so... those command keys aren't already "taken".
Ah, this answers alot of my questions.
I meant to say those command keys *are* already "taken". Oops.
Sysop: | Tandy |
---|---|
Location: | New York, USA |
Users: | 15 |
Nodes: | 13 (0 / 13) |
Uptime: | 25:32:37 |
Calls: | 336 |
Messages: | 115,048 |