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: | 266 |
Nodes: | 10 (0 / 10) |
Uptime: | 00:42:42 |
Calls: | 2,087 |
Calls today: | 3 |
Files: | 4,430 |
D/L today: |
37 files (16,085K bytes) |
Messages: | 413,584 |