Subj : Re: Dumb question 2 To : John From : Nelgin Date : Tue Dec 01 2020 07:33 pm John wrote: > Hi Folks: > > I am starting to learn Jscript. Simple thing, how do I print something that has a CTRL A code or @LASTON@ ? I am using the userlist.js, I would ideally like to use the print or writeln command. Coming from Turbo/Free pascal, Jscript is not easy, having to unlearn the structued way. This is what I have so far: > > // A sample user listing script for Synchronet v3.1+ > > // $Id: userlist.js,v 1.6 2019/01/11 09:37:25 rswindell Exp $ > > "use strict"; > > var str; > > require("sbbsdefs.js", 'USER_DELETED'); > load("sbbsdefs.js"); > load("bajalib.js"); > var lastuser = system.lastuser; > var s = baja.print > var u = new User; > > var logons = u.logons; > > printf("Alias Handle Address Location Connection Logons Security\n"); > s ("tes"); print ("@LASTON@"); You'd need to use console.putmsg since that's the only method that'll display @-Codes. http://wiki.synchro.net/custom:javascript However the proper way would probably to use javascript objects. I've not looked but I'm sure there's one to do what you need. https://nix.synchro.net/jsobjs.html --- þ Synchronet þ End Of The Line BBS - endofthelinebbs.com .