---

REMOTING CONTROL INTERFACE - WHAT TYPE  IS  AN APP/SCRIPT AND ITS API  IN USE COVERAGE ?  

---


Typing command ‘?’ displays the
type of an app/script ( Client, Server, Client & Server or Standalone ) and usage counters

of methods,  properties and events from within the current process ( app or script host: wscript.exe/cscript.exe ).

 

For some instance, experiences have shown that viewing ScriptEZ.API usage and coverage (methods, properties and events calls)

could actually bring some quick benefits to programmers because this feature instantly gives them:

 

*       A feedback of statistical information and "complexity" of code which is involved into an application or a script.

*       A realtime proof of regular/correct API use and smoothness (or bottleneck) of the component’s API itself at runtime.

*       A great help in code debugging, since counters of calls can give precious clues to paths through which code is running.

 

 

For example, here are below API ( methods, properties and events calls ) usage counters, duration and app type when connecting

to a script or app (with NPTelnet.exe - Named Pipe Telnet) tool:

 

+ Counter of methods and properties calls: [count] (id)

 . [1] (3) CreateSocketClientObjectEx(0 ms)

 . [1] (5) ConnectSocketServerObject(10 ms)

 . [16] (7) SendSocketObjectData(0 ms)

 . [1] (10) EnableSocketObjectDataEncryption(0 ms)

 . [16] (13) SetConsoleTitle(0 ms)

 . [1] (14) SetCPUCoreAffinity(0 ms)

 . [16] (18) PeekSocketClientObjectStatsOnReceivedData(2 ms)

 . [1] (24) GetSocketObjectVersion(0 ms)

 . [17] (25) FreeBSTR(0 ms)

 . [1] (29) CreateTaskQueueObject(0 ms)

 . [1] (30) AddTask(0 ms)

 . [1] (53) AppRegister(0 ms)

 . [1] (55) FreeString(0 ms)

 . [1] (56) ConvertStringToBSTR(0 ms)

 . [1] (60) ShowConsoleWindow(0 ms)

 . [3] (84) Echo(3 ms)

 . [112] (113) ProbeMemoryStatus(5 ms)

 . [1] (130) IsRegistryValueReadable(1 ms)

 . [16] (132) GetCurrentSessionUserInactivity(0 ms)

 . [1] (134) GetWindowsVersion(0 ms)

 . [48] (145) HostnameToIPAddress(0 ms)

 ___ Used methods: 21/189, aka 10.45% of coverage

 

+ Counter of events calls (callback): [count] (id)

 . [1] (2) onConnectionState(0 ms)

 . [1] (3) onData(0 ms)

 . [17] (4) onRun(30 ms)

 . [1] (10) AppEventHelp(0 ms)

 ___ Used events: 4/15, aka 26.67% of coverage

 

Script file is........[C:\Test\PCStatistics.vbe]

Owner process is..[C:\WINDOWS\System32\wscript.exe]

...App is Client

...Auto-reconnect (tcp/ip only): 1