-
Question
From
Matt Munson@VERT/PBBS to
All on Sat Jul 1 05: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 09: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 20: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 Sun Aug 4 03:27:54 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 16: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 04:30:30 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 16: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 16:51:49 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 16:52:43 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 Tue Aug 6 02:55:00 2002
-
From
yahwe@VERT/IMATRIX to
Yahwe on Tue Aug 6 05:30:00 2002
ã
-
From
Deathridder@VERT/DBTR to
yahwe on Tue Aug 6 11: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 23: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 21: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 20: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 04: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 16: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 Thu Aug 8 01: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 08: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 16: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)ã