Re: Menu Polling/Defeat Pauseã > By: Corvey to Digital Man on Tue Jan 17 2006 04:46 amã > ã > > DM > While sitting at the Ctrl-P prompt or the Inter-BBS prompt or whileã > inã > > DM > multi-node chat, instant messages and telegrams are receivedã > "instantlã > > DM > Someã > > DM > 3rd party command shells implement constant polling of messages atã > allã > > DM > prompts.ã > > ã > > C > Ok, those prompt are what I like, how can I make the main menu andã > gaã > > C > menã > > C > be "instantly" like the CTRL-P prompt?ã > > ã > > DM > The main menu, it depends on which command shell you're using.ã > Basicalã > > DM > youã > > DM > need an "inkey loop" instead of calling getkey. See the example inã > > DM > sbbsimsg.js.ã > > DM > This same method can be applied to the prompts in exec/xtrn_sec.jsã > > DM > (external programs section).ã > ã > > In sbbsimsg.js I see:ã > > ã > > "key=console.inkey(K_UPPER, 500);"ã > > ã > > but I'm not sure in where in xtrn_sec.js to place code to make it work.ã > > ã > > ã > > I am noob, can you be more precise, from and where to place code to makeã > thiã > > work for me?ã > ã > The first step would be to replace the line "xtrn_section" with "execã > ?xtrn_sec" in each of your command shell source files (exec/*.src) andã > recompile with Baja. Otherwise, the internal (native C) version of theã > externalã > program menu will be displayed instead of the exec/xtrn_sec.js module.ã > ã > The second step would be to replace the 2 calls to console.getnum() inã > xtrn_sec.js with a loop, similar to that found in sbbsimsg.js:ã > ã > while(bbs.online && !(bbs.sys_status&SS_ABORT)) {ã > key=console.inkey(K_UPPER, 500);ã > }ã > ã > inside that loop you'll need to figure out what number the user is typing ãandã > print that number, detect a carriage-return ('\r') and continue on the ãscript.ã > If you have no programming knowledge or patience to learn, then this task isã > probably beyond your abilities.ã > ã > digital manã ããYes, probably beyond my abilities.. It's difficult stuff for me comprehend ãeverything about java, c++. etc, but I've pick up bits and pieces along the ãway and still know very little, but with a desire to learn more. ããMay I suggest you incorporate this into telnet? It's the main ingredient to ãmake the BBS totally real-time. I would appreciate you considering making ãthis prompt a reality.. ãããThanks,ãCorveyã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
Sysop: | Karloch |
---|---|
Location: | Madrid, Spain |
Users: | 54 |
Nodes: | 8 (0 / 8) |
Uptime: | 129:05:13 |
Calls: | 700 |
Files: | 17,895 |
D/L today: |
128 files (60,769K bytes) |
Messages: | 66,010 |