Subj : CAPTCHA mod or something like that To : acn From : Digital Man Date : Mon Jan 17 2022 12:35:17 Re: CAPTCHA mod or something like that By: acn to Digital Man on Mon Jan 17 2022 02:41 pm > Hi DM, > > > Waiting for someone to hit ESC in your login module would be just a couple > > lines of JS code. Something like: > > > print("Press ESC to login..."); > > while(bbs.online && console.getkey(K_NOECHO) != KEY_ESC); > > > (K_NOECHO is defined in sbbsdefs.js and KEY_ESC is defined in key_defs.js) > > I've tried adding these lines to the top of login.js (copied to mods/), just > before "bbs.logout()". > > But this is displayed *after* answer.msg/banner1.msg... > > Would it have any side-effects if I remove answer.msg/banner1.msg and let > them get displayed at the beginning of login.js after the "Press ESC to > login" message? Another way to do that would be to add at the top of your banner*.msg file: @exec:yourmod@ (EXEC in uppercase) then create exec/yourmod.js with those lines you want to execute before the body of the banner (and answer.* file) is displayed. -- digital man (rob) Breaking Bad quote #13: I got twenty bucks that says he's a beaner. - Hank Norco, CA WX: 58.9øF, 78.0% humidity, 2 mph WNW wind, 0.00 inches rain/24hrs --- SBBSecho 3.14-Linux * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705) .