Skip to content

Latest commit

 

History

History
132 lines (89 loc) · 2.12 KB

PLUGINS.MD

File metadata and controls

132 lines (89 loc) · 2.12 KB

nnCron plugins

  • File: plugins/complist.spf

  • File: plugins/mailslot.spf

  • File: plugins/process.spf

  • File: plugins/procwin.spf

Usage: PROC-CLOSE: procname.exe PROC-CLOSE: xxxx.exe e.g. PROC-CLOSE: winword.exe


  • File: plugins/test.spf

  • File: plugins/time.spf) Author: Nicholas Nemtsev Description: Time operations. Words: FILE-TIME:, FILE-ATIME:, FILE-WTIME:, CUR-FTIME, FTIME- Usage: FILE-TIME: filename ( -- d ) d - is a 64-bit value representing the number of 100-nanosecond intervals since January 1, 1601

Example: CUR-FTIME FILE-TIME: xxx.txt FTIME- 300 > \ curtime-filetime>300sec IF FILE-DELETE: xxx.txt THEN


  • File: plugins/timesync.spf

Author: Nicholas Nemtsev

Description: Time synchronization by Time Protocol

Usage: TP-SYNC: server-name user-value variables (use these after TP-SYNC): TP-SYNC-RESULT - 0 if ok, otherwise winsock error code TP-SYNC-DELAY - delay of server respond in ms

Example: #( time_adjust OnceADay Rule: ONLINE? Action: TP-SYNC: time.nist.gov TP-SYNC-RESULT 0<> IF CLEAR-ONCE MSG: "Can't synchronize time" ELSE TMSG: "Time is synchronized." 10 THEN )#

Time server list

time.nist.gov

clock.psu.edu

finch.cc.ukans.edu

ntp.css.gov

ntp.lth.se

ntp.maths.tcd.ie

ntp0.cornell.edu

ntp-1.ece.cmu.edu

ntp-2.ece.cmu.edu

ntp2a.mcc.ac.uk

Rolex.PeachNet.EDU

salmon.maths.tcd.ie

sundial.columbia.edu

time.nrc.ca

timelord.uregina.ca

timex.cs.columbia.edu

Timex.PeachNet.EDU


  • File: plugins/win.spf

  • File: plugins/win2tray.spf Author: Nicholas Nemtsev Description: Place windows to system tray Usage: WIN-TO-TRAY: "pattern"

  • File: plugins/windows.spf Author: Nicholas Nemtsev Description: Useful words for windows mainpulation VISIBLE? MINIMIZED? Usage:

    WIN-EXIST: "xxx" IF WIN-HWND VISIBLE? 0= IF WIN-SHOW: "xxx" THEN THEN

    : LOG-WIN-TITLE ( a u -- ) S" win-title.log" LOG ; ... Action: ['] LOG-WIN-TITLE WIN-ENUM ...


  • File: plugins/words.spf