• baja

    From Ace@VERT/DSTREAM to ALL on Wed Feb 13 13:17:00 2002
    Is there an easy way to do this in baja?ããIf xxxx.bin is running from logon/login, show/do thisãIf it is running from elsewhere (ie. a menu), do this insteadãã---ã þ QMPro 1.53 þ telnet://dsbbs.net - http://www.dsbbs.netã þ Synchronet þ Data Stream - telnet://dsbbs.net - www.dsbbs.netã
  • From PistolGrip@VERT/WASTELND to Ace on Wed Feb 13 20:43:00 2002
    RE: bajaãBY: Ace to ALL on Wed Feb 13 2002 09:17 pmãã > Is there an easy way to do this in baja?ã > ã > If xxxx.bin is running from logon/login, show/do thisã > If it is running from elsewhere (ie. a menu), do this insteadãããSure, you use command line paramters when calling your module from eachãlocation. Then you just need to do a simple check of them to see what code toãexecute.ããYou would execute the module something like:ããexec "*MYMOD -option1 -option2"ãããThen, at the beginning of your module somewhere right before entry point justyãadd a couple lines like this to grab the command line paramters before str getsãover written. (the command line parameters are automatically put into "str"ãwhen you execute a BAJA modules).ãã#########ãcopy cmdline strãstrupr cmdlineã#########ããFrom there is simple checks on the cmdline variable to control where yourãprogram goes.ããPGãã---ã þ Synchronet þ WasteLand BBS þ telnet://wasteland-bbs.com ã
  • From Amcleod@VERT to PistolGrip on Wed Feb 13 22:50:07 2002
    Re: bajaã By: PistolGrip to Ace on Thu Feb 14 2002 04:43 amãã > > If xxxx.bin is running from logon/login, show/do thisã > > If it is running from elsewhere (ie. a menu), do this insteadã > ã > ã > Sure, you use command line paramters when calling your module from eachã > location. Then you just need to do a simple check of them to see what code ã > execute.ããDepending on where it is called you may be able to just check to see if theãuser has logged in already. ã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
  • From Ace@VERT/DSTREAM to PistolGrip on Thu Feb 14 03:39:00 2002
    RE: bajaã >BY: Ace to ALL on Wed Feb 13 2002 09:17 pmããP> > Is there an easy way to do this in baja?ã > >ã > > If xxxx.bin is running from logon/login, show/do thisã > > If it is running from elsewhere (ie. a menu), do this insteadãããP>Sure, you use command line paramters when calling your module from eachã >location. Then you just need to do a simple check of them to see what code tã >execute.ããP>You would execute the module something like:ããP>exec "*MYMOD -option1 -option2"ãããP>Then, at the beginning of your module somewhere right before entry point justã >add a couple lines like this to grab the command line paramters before str geã >over written. (the command line parameters are automatically put into "str"ã >when you execute a BAJA modules).ããP>#########ã >copy cmdline strã >strupr cmdlineã >#########ããP>From there is simple checks on the cmdline variable to control where yourã >program goes.ããWoo! That should work great, thanks!ããWhy strupr? Personal preferance?ãã---ã þ QMPro 1.53 þ telnet://dsbbs.net - http://www.dsbbs.netã þ Synchronet þ Data Stream - telnet://dsbbs.net - www.dsbbs.netã
  • From PistolGrip@VERT/WASTELND to Ace on Thu Feb 14 06:15:00 2002
    RE: bajaãBY: Ace to PISTOLGRIP on Thu Feb 14 2002 11:39 amãã > Woo! That should work great, thanks!ã > ã > Why strupr? Personal preferance?ããNot necessary really, just makes it easier to compare mixed-case parameters.ããPG ãã---ã þ Synchronet þ WasteLand BBS þ telnet://wasteland-bbs.com ã