• Question

    From Matt Munson@PBBS to All on Saturday, July 01, 2000 05:41:00
    Has anyone programmed a Baja based voting booth?

    ---
    ■ Synchronet ■ The Parallel BBS
  • From PistolGrip@WASTELND to Matt Munson on Saturday, July 01, 2000 09:15:00
    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@IMATRIX to All on Saturday, August 03, 2002 20:20:00
    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 to Frozen Fire on Sunday, August 04, 2002 03:27:54
    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
  • From Frozen Fire@IMATRIX to Digital Man on Sunday, August 04, 2002 16:25:00
    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 to Frozen Fire on Monday, August 05, 2002 04:30:30
    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
  • From Frozen Fire@IMATRIX to Digital Man on Monday, August 05, 2002 16:30:00
    @TZ: ffffc12c
    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 to Digital Man on Monday, August 05, 2002 16:51:49
    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.
  • From Yahwe to Frozen Fire on Monday, August 05, 2002 16:52:43
    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.















  • From Tracker1@RDBBS to DOVE-Net.Baja_Programming on Tuesday, August 06, 2002 02:55:00
    "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@IMATRIX to Yahwe on Tuesday, August 06, 2002 05:30:00
  • From tracker1@IMATRIX to Tracker1 on Tuesday, August 06, 2002 05:32:00
  • From Deathridder@DBTR to yahwe on Tuesday, August 06, 2002 11: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 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@CARSO to Deathridder on Tuesday, August 06, 2002 23:20:00
    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@ANJO to Frozen Fire on Monday, August 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 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@ANJO to Deathridder on Tuesday, August 06, 2002 20:24:00
    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@IMATRIX to Angus Mcleod on Wednesday, August 07, 2002 04:48:00
    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@DBTR to Angus Mcleod on Wednesday, August 07, 2002 16:53:00
    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@ANJO to Frozen Fire on Thursday, August 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 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@THORNY'S to Merlin on Thursday, August 08, 2002 08:00:00
    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@IMATRIX to Angus Mcleod on Thursday, August 08, 2002 16:14:00
    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)