• Re: Baja and numbers

    From Nelgin@VERT/EOTLBBS to DesotoFireflite on Monday, November 16, 2020 01:29:05
    DesotoFireflite wrote:
    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

    CMDKEYE DIGIT will test if a user pressed any number from 0-9.

    Ref:
    http://synchro.net/docs/baja.html
    2.6 Command Key Constants.

    ---
    ■ Synchronet ■ End Of The Line BBS - endofthelinebbs.com
  • From Digital Man@VERT to DesotoFireflite on Monday, November 16, 2020 00:33:34
    Re: Baja and numbers
    By: DesotoFireflite to All on Sun Nov 15 2020 09:11 pm

    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.

    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".
    --
    digital man

    This Is Spinal Tap quote #30:
    Big bottom, big bottom / Talk about mud flaps, my girl's got 'em!
    Norco, CA WX: 67.6°F, 23.0% humidity, 1 mph WSW wind, 0.00 inches rain/24hrs

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From DesotoFireflite@VERT/VALHALLA to Nelgin on Monday, November 16, 2020 08:36:49
    Re: Re: Baja and numbers
    By: Nelgin to DesotoFireflite on Mon Nov 16 2020 01:29 am

    To check for a user pressing the number 1 you should probably use CMDKEYE 1

    Thanks Nelgin, I'll try that.

    SysOp: C.G. Learn, AKA: DesotoFireflite
    Valhalla Home Services! - (Synchronet) - bbs.valhallabbs.com
    Valhalla II! - (GAP) - bbs.valhallabbs.com:24
    A Gamers Paradise - Over 150 Registered Online Game Doors!

    Play Trade Wars Between 10 Other BBS's On Valhalla's Trade Wars Game Server!
    6 Fantastic Games Underway, Come Play Today!

    --- FART(n): An audio test of one's waste-disposal system.
    ■ Synchronet ■ Valhalla Home Services ■ USA ■ http://valhalla.synchro.net
  • From DesotoFireflite@VERT/VALHALLA to Digital Man on Monday, November 16, 2020 08:42:06
    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.

    Thanks

    SysOp: C.G. Learn, AKA: DesotoFireflite
    Valhalla Home Services! - (Synchronet) - bbs.valhallabbs.com
    Valhalla II! - (GAP) - bbs.valhallabbs.com:24
    A Gamers Paradise - Over 150 Registered Online Game Doors!

    Play Trade Wars Between 10 Other BBS's On Valhalla's Trade Wars Game Server!
    6 Fantastic Games Underway, Come Play Today!

    --- Don't eat the yellow snow!
    ■ Synchronet ■ Valhalla Home Services ■ USA ■ http://valhalla.synchro.net
  • From Digital Man@VERT to DesotoFireflite on Monday, November 16, 2020 10:56:49
    Re: Baja and numbers
    By: DesotoFireflite to Digital Man on Mon Nov 16 2020 08:42 am

    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.
    --
    digital man

    This Is Spinal Tap quote #46:
    "Not an Exit" - we don't want an exit. Well that's true.
    Norco, CA WX: 84.5°F, 14.0% humidity, 1 mph ESE wind, 0.00 inches rain/24hrs

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From DesotoFireflite@VERT/VALHALLA to Digital Man on Monday, November 16, 2020 14:46:15
    Re: Baja and numbers
    By: Digital Man to DesotoFireflite on Mon Nov 16 2020 10:56 am

    I meant to say those command keys *are* already "taken". Oops.

    I figured that's what you meant, at least thats the way I took it. Thanks for all of your help. The upgrade works well, the only thing I lost was COA, and hopefully I can get some help with that from echicken or one of the other COA members. Thanks for all you do.

    SysOp: C.G. Learn, AKA: DesotoFireflite
    Valhalla Home Services! - (Synchronet) - bbs.valhallabbs.com
    Valhalla II! - (GAP) - bbs.valhallabbs.com:24
    A Gamers Paradise - Over 150 Registered Online Game Doors!

    Play Trade Wars Between 10 Other BBS's On Valhalla's Trade Wars Game Server!
    6 Fantastic Games Underway, Come Play Today!

    --- The truth will set you free. But first it'll piss you off.
    ■ Synchronet ■ Valhalla Home Services ■ USA ■ http://valhalla.synchro.net