Subj : Menu Polling/Defeat Pause To : Corvey From : Digital Man Date : Tue Jan 17 2006 03:45 pm 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 Snapple "Real Fact" #38: Fish cough... Norco, CA WX: 71.0øF, 26% humidity, 0 mph NE wind, 0.00 inches rain/24hrs .