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: | Xerxes |
---|---|
Location: | Azle, Texas |
Users: | 131 |
Nodes: | 10 (0 / 10) |
Uptime: | 85:43:45 |
Calls: | 3,190 |
Calls today: | 1 |
Files: | 195 |
U/L today: |
0 files (0K bytes) |
D/L today: |
0 files (0K bytes) |
Messages: | 366,067 |
Posted today: | 0 |