• Question

    From Matt Munson@VERT/PBBS to All on Sat Jul 1 01:41:00 2000
    Has anyone programmed a Baja based voting booth?

    ---
    Synchronet The Parallel BBS
  • From PistolGrip@VERT/WASTELND to Matt Munson on Sat Jul 1 05:15:00 2000
    RE: Question
    BY: Matt Munson to All on Sat Jul 01 2000 12:41 pm

    Has anyone programmed a Baja based voting booth?

    I've started working on one recently, but no time to finish it as of yet. I tihk I may go the 32bit XSDK way instead though.

    Dave



    ---
    Synchronet WasteLand BBS telnet://wasteland.darktech.org
  • From Frozen Fire@VERT/IMATRIX to All on Sat Aug 3 16:20:00 2002
    I'm doing a light bar read prompt (saw one on another board, and had to have it).. Similar to a logon matrix, the command is highlighted and kept track of with a variable (i for instance)... the variable is then passed along to a switch statement, which in turn will pass the correct command key "A,B,C" along to the bbs to preform the command.

    My question, I need the switch to return the appropriate command key to the bbs, what function is best suited to do this? i.e. return str (where str is the command key needed to do what is needed)

    Thanks :)



    z




    ---
    Synchronet The Impact Matrix (impactmatrix.darktech.org)
  • From Digital Man@VERT to Frozen Fire on Sat Aug 3 23:27:00 2002
    Re: Question
    By: Frozen Fire to All on Sat Aug 03 2002 07:20 pm

    I'm doing a light bar read prompt (saw one on another board, and had to have it).. Similar to a logon matrix, the command is highlighted and kept track o with a variable (i for instance)... the variable is then passed along to a switch statement, which in turn will pass the correct command key "A,B,C" al to the bbs to preform the command.

    My question, I need the switch to return the appropriate command key to the bbs, what function is best suited to do this? i.e. return str (where str is command key needed to do what is needed)

    Actually, I think you want to use UNGETKEY.

    digital man

    ---
    Synchronet Vertrauen Home of Synchronet [vert/cvs/bbs].synchro.net
  • From Frozen Fire@VERT/IMATRIX to Digital Man on Sun Aug 4 12:25:00 2002
    Re: Question
    By: Digital Man to Frozen Fire on Sun Aug 04 2002 03:27:00

    Re: Question
    By: Frozen Fire to All on Sat Aug 03 2002 07:20 pm

    I'm doing a light bar read prompt (saw one on another board, and had to h it).. Similar to a logon matrix, the command is highlighted and kept trac with a variable (i for instance)... the variable is then passed along to switch statement, which in turn will pass the correct command key "A,B,C" to the bbs to preform the command.

    My question, I need the switch to return the appropriate command key to t bbs, what function is best suited to do this? i.e. return str (where str command key needed to do what is needed)

    Actually, I think you want to use UNGETKEY.

    digital man

    I tried UNGETKEY, and the module went into a loop.. here's the tiny mod..

    !include sbbsdefs.inc
    !define LAST 3

    int m

    cmd_home

    print "\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b \b\b"

    compare m 0
    if_true
    print "[ Reply"
    else
    print "[ Reply"
    end_if

    compare m 1
    if_true
    print " Reply Mail"
    else
    print " Reply Mail"
    end_if

    compare m 2
    if_true
    print " Next"
    else
    print " Next"
    end_if

    compare m 3
    if_true
    print " Abort ] (?) "
    else
    print " Abort ] (?) "
    end_if

    getkey

    cmdkey ^F
    add m 1
    compare M LAST
    if_greater
    set m 0
    end_if
    pause_reset
    end_cmd

    cmdkey ^]
    sub m 1
    compare m 0
    if_less
    set m LAST
    end_if
    pause_reset
    end_cmd


    switch m
    case 0
    setstr A
    end_case

    case 1
    setstr W
    end_case

    case 2
    setstr ^M
    end_case

    case 3
    setstr Q
    end_case

    end_switch
    printf "it was %d\r\n" m
    cmd_pop

    The end being a debug just to let me know the pointers are straight. You'll notice I am attempting to use setstr to have the BBS message read section pick up the command key, how would I use ungetkey to accomplish this?

    Thanks for your help.



    z




    ---
    Synchronet The Impact Matrix (impactmatrix.darktech.org)
  • From Digital Man@VERT to Frozen Fire on Mon Aug 5 00:30:00 2002
    Re: Question
    By: Frozen Fire to Digital Man on Sun Aug 04 2002 03:25 pm

    My question, I need the switch to return the appropriate command key t bbs, what function is best suited to do this? i.e. return str (where s command key needed to do what is needed)

    Actually, I think you want to use UNGETKEY.


    I tried UNGETKEY, and the module went into a loop.. here's the tiny mod..

    !include sbbsdefs.inc
    !define LAST 3

    int m

    cmd_home

    print "\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\ \b\b"

    compare m 0

    Stop right there. Why would you be comparing the value of 'm' when you haven't even set it to anything?

    if_true
    print "[ Reply"
    else
    print "[ Reply"
    end_if

    compare m 1
    if_true
    print " Reply Mail"
    else
    print " Reply Mail"
    end_if

    compare m 2
    if_true
    print " Next"
    else
    print " Next"
    end_if

    compare m 3
    if_true
    print " Abort ] (?) "
    else
    print " Abort ] (?) "
    end_if

    You should use a switch/case block rather than all these compares.

    digital man

    ---
    Synchronet Vertrauen Home of Synchronet [vert/cvs/bbs].synchro.net
  • From Frozen Fire@VERT/IMATRIX to Digital Man on Mon Aug 5 12:30:00 2002
    Re: Question
    By: Digital Man to Frozen Fire on Mon Aug 05 2002 04:30:00

    Re: Question
    By: Frozen Fire to Digital Man on Sun Aug 04 2002 03:25 pm

    My question, I need the switch to return the appropriate command ke bbs, what function is best suited to do this? i.e. return str (wher command key needed to do what is needed)

    Actually, I think you want to use UNGETKEY.


    I tried UNGETKEY, and the module went into a loop.. here's the tiny mod..

    !include sbbsdefs.inc
    !define LAST 3

    int m

    cmd_home

    print "\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b \b\b"

    compare m 0

    Stop right there. Why would you be comparing the value of 'm' when you haven even set it to anything?

    if_true
    print "[ Reply"
    else
    print "[ Reply"
    end_if

    compare m 1
    if_true
    print " Reply Mail"
    else
    print " Reply Mail"
    end_if

    compare m 2
    if_true
    print " Next"
    else
    print " Next"
    end_if

    compare m 3
    if_true
    print " Abort ] (?) "
    else
    print " Abort ] (?) "
    end_if

    You should use a switch/case block rather than all these compares.

    digital man


    Thats what I did. Since a defined int defaults to zero, and zero denoted the first line on the light bar.. well :)

    In any event, its working now. Thanks again :)



    z




    ---
    Synchronet The Impact Matrix (impactmatrix.darktech.org)
  • From Yahwe@VERT to Digital Man on Mon Aug 5 12:51:00 2002
    Re: Question
    By: Digital Man to Frozen Fire on Sun Aug 04 2002 02:27 am

    Re: Question
    By: Frozen Fire to All on Sat Aug 03 2002 07:20 pm

    I'm doing a light bar read prompt (saw one on another board, and had to h it).. Similar to a logon matrix, the command is highlighted and kept trac with a variable (i for instance)... the variable is then passed along to switch statement, which in turn will pass the correct command key "A,B,C" to the bbs to preform the command.

    My question, I need the switch to return the appropriate command key to t bbs, what function is best suited to do this? i.e. return str (where str command key needed to do what is needed)

    Actually, I think you want to use UNGETKEY.

    digital man
    man now everyone wants to rip my mods off :), j/k, if u want the check it out i put a part of it on my board.. check it out.

    ---
    Synchronet Vertrauen Home of Synchronet [vert/cvs/bbs].synchro.net
  • From Yahwe@VERT to Frozen Fire on Mon Aug 5 12:52:00 2002
    Re: Question
    By: Frozen Fire to Digital Man on Sun Aug 04 2002 03:25 pm

    Re: Question
    By: Digital Man to Frozen Fire on Sun Aug 04 2002 03:27:00

    Re: Question
    By: Frozen Fire to All on Sat Aug 03 2002 07:20 pm

    I'm doing a light bar read prompt (saw one on another board, and had t it).. Similar to a logon matrix, the command is highlighted and kept t with a variable (i for instance)... the variable is then passed along switch statement, which in turn will pass the correct command key "A,B to the bbs to preform the command.

    My question, I need the switch to return the appropriate command key t bbs, what function is best suited to do this? i.e. return str (where s command key needed to do what is needed)

    Actually, I think you want to use UNGETKEY.

    digital man

    I tried UNGETKEY, and the module went into a loop.. here's the tiny mod..

    !include sbbsdefs.inc
    !define LAST 3

    int m

    cmd_home

    print "\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\ \b\b"

    compare m 0
    if_true
    print "[ Reply"
    else
    print "[ Reply"
    end_if

    compare m 1
    if_true
    print " Reply Mail"
    else
    print " Reply Mail"
    end_if

    compare m 2
    if_true
    print " Next"
    else
    print " Next"
    end_if

    compare m 3
    if_true
    print " Abort ] (?) "
    else
    print " Abort ] (?) "
    end_if

    getkey

    cmdkey ^F
    add m 1
    compare M LAST
    if_greater
    set m 0
    end_if
    pause_reset
    end_cmd

    cmdkey ^]
    sub m 1
    compare m 0
    if_less
    set m LAST
    end_if
    pause_reset
    end_cmd


    switch m
    case 0
    setstr A
    end_case

    case 1
    setstr W
    end_case

    case 2
    setstr ^M
    end_case

    case 3
    setstr Q
    end_case

    end_switch
    printf "it was %d\r\n" m
    cmd_pop

    The end being a debug just to let me know the pointers are straight. You'll notice I am attempting to use setstr to have the BBS message read section pi up the command key, how would I use ungetkey to accomplish this?

    Thanks for your help.



    z




    put the ungetkey command after ur setstr command.
















    ---
    Synchronet Vertrauen Home of Synchronet [vert/cvs/bbs].synchro.net
  • From Tracker1@VERT/RDBBS to DOVE-Net.Baja_Programming on Mon Aug 5 22:55:00 2002
    "Yahwe" <yahwe@VERT> wrote in message...
    man now everyone wants to rip my mods off :), j/k, if u want the check
    it out i put a part of it on my board.. check it out.

    Hey, mine was done quite a bit differently, as you and FF have now
    seen.. ;)

    --
    =======================================================================
    Michael J. Ryan - tracker1 at theroughnecks dot com
    Roughneck BBS: http://www.theroughnecks.net telnet://theroughnecks.net =======================================================================
    Y!: aztracker1 - aim: azTracker1 - icq: 4935386 - msn: see email
    One program for aim/icq/yahoo/msn/irc - http://www.trillian.cc/

    ---
    Synchronet theroughnecks.net, where the men are men, and the women like it
  • From yahwe@VERT/IMATRIX to Yahwe on Tue Aug 6 01:30:00 2002
  • From tracker1@VERT/IMATRIX to Tracker1 on Tue Aug 6 01:32:00 2002
  • From Deathridder@VERT/DBTR to yahwe on Tue Aug 6 07:07:00 2002
    Re: Question
    By: yahwe to Yahwe on Tue Aug 06 2002 04:30 am

    OK here a blank MSG again. Is it me or them ANYBODY? cause it's starting to BUG me!!!!
    DeathRidder ======================================================================
    Down By The River BBS / WEBSITE / (1:229/418) / http://dbtr.dyndns.org
    HTTP, FTP, Telnet, NNTP NewsServer, DoveNet, XP_Linux_Win98_NewsLinks.
    Powered by WINDOWS XP Pro + ISS 5.1 + Synchronet 3.10J Beta ======================================================================

    ---
    Synchronet Down By The River BBS & WebSite / dbtr.dyndns.org
  • From Merlin@VERT/CARSO to Deathridder on Tue Aug 6 19:20:00 2002
    Re: Question
    By: Deathridder to yahwe on Tue Aug 06 2002 11:07 am

    OK here a blank MSG again. Is it me or them ANYBODY? cause it's starting to me!!!!

    No,imgetting them as well, and yes,it is annoying

    Merlin

    ---
    Synchronet CarSo BBs Beverley, UK telnet://carso.darktech.org
  • From Angus Mcleod@VERT/ANJO to Frozen Fire on Mon Aug 5 17:28:00 2002
    Re: Question
    By: Frozen Fire to Digital Man on Mon Aug 05 2002 15:30:00

    Thats what I did. Since a defined int defaults to zero, and zero denoted the first line on the light bar.. well :)

    In any event, its working now. Thanks again :)

    It may _work_ but it is still what they call _erroneous_.

    You should not rely on the un-initialized value of a variable unless the language specification specifically states what that value will be.

    Or unless you are writing drivers for Microsoft...


    ---
    Synchronet Where we BAJA Rob into writing our modules. The ANJO BBS
  • From Angus Mcleod@VERT/ANJO to Deathridder on Tue Aug 6 16:24:00 2002
    Re: Question
    By: Deathridder to yahwe on Tue Aug 06 2002 10:07:00

    Re: Question
    By: yahwe to Yahwe on Tue Aug 06 2002 04:30 am

    OK here a blank MSG again. Is it me or them ANYBODY? cause it's starting to me!!!!

    Blank message?

    Damn! I thought he had finally posted a message worthy of his IQ...


    ---
    Synchronet Where we BAJA Rob into writing our modules. The ANJO BBS
  • From Frozen Fire@VERT/IMATRIX to Angus Mcleod on Wed Aug 7 00:48:00 2002
    Re: Question
    By: Angus Mcleod to Frozen Fire on Mon Aug 05 2002 21:28:00

    Re: Question
    By: Frozen Fire to Digital Man on Mon Aug 05 2002 15:30:00

    Thats what I did. Since a defined int defaults to zero, and zero denoted first line on the light bar.. well :)

    In any event, its working now. Thanks again :)

    It may _work_ but it is still what they call _erroneous_.

    You should not rely on the un-initialized value of a variable unless the language specification specifically states what that value will be.

    Or unless you are writing drivers for Microsoft...



    How did you know? hehehe. In most of the source files that came with SBBS, I did not see any variables initialized, so I assumed the default for anything declared was off, or zero, save for things such as "str", which are used internally.

    Thanks for the feedback :)



    z




    ---
    Synchronet The Impact Matrix (impactmatrix.darktech.org)
  • From Deathridder@VERT/DBTR to Angus Mcleod on Wed Aug 7 12:53:00 2002
    Re: Question
    By: Angus Mcleod to Deathridder on Tue Aug 06 2002 07:24 pm

    Re: Question
    By: Deathridder to yahwe on Tue Aug 06 2002 10:07:00

    Re: Question
    By: yahwe to Yahwe on Tue Aug 06 2002 04:30 am

    OK here a blank MSG again. Is it me or them ANYBODY? cause it's starting me!!!!

    Blank message?

    Damn! I thought he had finally posted a message worthy of his IQ...


    I know i'll go sit in the corner! I've been a bad boy!!!
    <deathridder>

    ---
    Synchronet Down By The River BBS & WebSite / dbtr.dyndns.org
  • From Angus Mcleod@VERT/ANJO to Frozen Fire on Wed Aug 7 21:10:00 2002
    Re: Question
    By: Frozen Fire to Angus Mcleod on Wed Aug 07 2002 03:48:00

    You should not rely on the un-initialized value of a variable unless the language specification specifically states what that value will be.

    In most of the source files that came with SBBS, I
    did not see any variables initialized, so I assumed the default for anything declared was off, or zero, save for things such as "str", which are used internally.

    It's always a good idea to program as though there is a gun pointed at
    your foot.

    if ($x < 0) {
    # Negative $x
    . . .
    } elsif ($x == 0) {
    # Zero $x
    . . .
    } elsif ($x > 0) {
    # Positive $x
    . . .
    } else {
    # impossible
    print "Eeeeeeek!!!";
    exit 1;
    }

    Just because it's physically and mathematically impossible for something
    to happen, doesn't mean it WON'T happen! :-)


    ---
    Synchronet Where we BAJA Rob into writing our modules. The ANJO BBS
  • From Thorny@VERT/THORNY'S to Merlin on Thu Aug 8 04:00:00 2002
    Re: Question
    By: Merlin to Deathridder on Tue Aug 06 2002 11:20 pm

    No,imgetting them as well, and yes,it is annoying


    Odd, I only got a couple and odder still, it didn't annoy me at all, at all.

    Greg 'Thorny' Thornhill
    SysOp, Free State Interactive


    ---
    Synchronet Free State Interactive - thorny.synchro.net
  • From Frozen Fire@VERT/IMATRIX to Angus Mcleod on Thu Aug 8 12:14:00 2002
    Re: Question
    By: Angus Mcleod to Frozen Fire on Thu Aug 08 2002 01:10:00

    Re: Question
    By: Frozen Fire to Angus Mcleod on Wed Aug 07 2002 03:48:00

    You should not rely on the un-initialized value of a variable unless t language specification specifically states what that value will be.

    In most of the source files that came with SBBS, I
    did not see any variables initialized, so I assumed the default for anyth declared was off, or zero, save for things such as "str", which are used internally.

    It's always a good idea to program as though there is a gun pointed at
    your foot.

    if ($x < 0) {
    # Negative $x
    . . .
    } elsif ($x == 0) {
    # Zero $x
    . . .
    } elsif ($x > 0) {
    # Positive $x
    . . .
    } else {
    # impossible
    print "Eeeeeeek!!!";
    exit 1;
    }

    Just because it's physically and mathematically impossible for something
    to happen, doesn't mean it WON'T happen! :-)



    I understand that concept, but you'd have to talk to the hairball with very sharp teeth currently occupying the space at my feet. She would not appreciate such a gesture :-P


    z




    ---
    Synchronet The Impact Matrix (impactmatrix.darktech.org)