• Hi

    From IB JOE@VERT/JOESBBS to ALL on Tuesday, January 21, 2003 05:47:00
    Okay kids....

    I was editing the simple.src file that came with synchronet and I need
    it to do something....

    When the user enters the menu option it makes them press enter after...
    how do I get it to act like a hot key??

    Thanx

    Joe

    ---
    þ wcQWK 5.5
  • From The Storm@VERT/TOR to IB JOE on Wednesday, January 29, 2003 08:56:00
    RE: Hi
    BY: IB JOE to ALL on Tue Jan 21 2003 05:47 am

    I was editing the simple.src file that came with synchronet and I need
    it to do something....

    When the user enters the menu option it makes them press enter after...
    how do I get it to act like a hot key??

    Joe,

    Your code looks something like this right now:

    getstrupr 10
    crlf
    pause_reset

    # Write command to log file
    logstr

    # Commands

    cmdstr C
    exec_bin chat_sec
    end_cmd

    cmdstr CHAT
    exec_bin chat_sec
    end_cmd
    --------------------------------------------------
    See where it says getstrupr? That's where you problems begin. This function sits around waiting for the user to enter a string that is 10 characters long and wont do much till they hit enter. The fix? Very simple. Look at my sample code below:

    GETCMD "CMUGPREILX\r"

    COMPARE_KEY C
    IF_TRUE
    exec_bin "chat_sec"
    GOTO TOP
    END_IF


    COMPARE_KEY M
    IF_TRUE
    GOTO MESSAGE
    GOTO TOP
    END_IF

    --------------------------------------------------
    Ok, the GETCMD "CMUGPREILX" <--- This says the user can only pick these keys from the menu. And the COMPARE_KEY checks for each letter that you specified above. If it comes back true, it runs what ever you want it to, if not, it doesn't do anything at all. Also, when using this, you can ONLY use 1 letter per menu item... Let me know if this helped you any. :)

    X< The Storm >X<
    The CrazyOp

    |---------------------------------------------------------|
    | ThE CrAzY HoUsE BBS - Telnet: Crazyhouse.darktech.org | |---------------------------------------------------------|





















    ---
    þ Synchronet þ ThE CrAzY HoUsE - NOW IN COLOR! - (CRAZYHOUSE.DARKTECH.ORG)
  • From IB JOE@VERT/JOESBBS to THE STORM on Wednesday, January 29, 2003 01:24:00
    The God Rob wrote me to let me in on what was needed ... thanx!!

    Joe


    RE: Hi
    BY: IB JOE to ALL on Tue Jan 21 2003 05:47 am

    I was editing the simple.src file that came with synchronet and I
    need > it to do something.... > > When the user enters the menu
    option it makes them press enter after... > how do I get it to act
    like a hot key??

    Joe,

    Your code looks something like this right now:

    getstrupr 10
    crlf
    pause_reset

    # Write command to log file
    logstr

    # Commands

    cmdstr C
    exec_bin chat_sec
    end_cmd

    cmdstr CHAT
    exec_bin chat_sec
    end_cmd
    --------------------------------------------------
    See where it says getstrupr? That's where you problems begin. This function sits around waiting for the user to enter a string that is
    10 characters long and wont do much till they hit enter. The fix?
    Very simple. Look at my
    sample code below:

    GETCMD "CMUGPREILX\r"

    COMPARE_KEY C
    IF_TRUE
    exec_bin "chat_sec"
    GOTO TOP
    END_IF


    COMPARE_KEY M
    IF_TRUE
    GOTO MESSAGE
    GOTO TOP
    END_IF

    --------------------------------------------------
    Ok, the GETCMD "CMUGPREILX" <--- This says the user can only pick
    these keys from the menu. And the COMPARE_KEY checks for each letter
    that you specified above. If it comes back true, it runs what ever
    you want it to, if not, it doesn't do anything at all. Also, when
    using this, you can ONLY use 1 letter
    per menu item... Let me know if this helped you any. :)

    X< The Storm >X<
    The CrazyOp

    |---------------------------------------------------------|
    | ThE CrAzY HoUsE BBS - Telnet: Crazyhouse.darktech.org | |---------------------------------------------------------|



    ---
    þ wcQWK 5.5
  • From Ib Joe@VERT/JOES16 to Digital Man on Friday, April 02, 2004 15:59:00
    I had posted a message earier about trying to sercomvent the lgon process based on command shells

    I tried this

    compare_str useron.shell equil server
    if_true goto logon_event

    else

    end_if

    it compiles nicely :) but that's it.

    it does nothing.

    I edit the logon.src and put it right after where it asks U where U heard about the BBS... line 59'ish

    do I have bad logic??

    Joe


    ---
    þ Synchronet þ Joe's Computer & BBS - joesbbs.com