| The timer interface |
|---|
|
The timer interface: (it is not the setTimeout(...) function from scrobj.dll). // The timer interface (window message WM_TIMER) // File: timer.w_js (JScript) var cnt = 1; // // Window.SetTimer(id, ms) Window.SetTimer(8000, 100); // 100 ms function WM_TIMER(id){ var text = "Timer " + id + " Ticks " + cnt; cnt++; Window.Delete(0); Window.TextOut(0,50,50,text); Window.UpdateWindow(); }; |
| The new script host. It is not wscript.exe! |