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: | deepend |
|---|---|
| Location: | Calgary, Alberta |
| Users: | 281 |
| Nodes: | 10 (0 / 10) |
| Uptime: | 03:16:44 |
| Calls: | 2,401 |
| Files: | 5,162 |
| D/L today: |
118 files (36,682K bytes) |
| Messages: | 437,059 |