If the "New document starts scanning" checkbox is enabled in Options (or "HKCU\Software\Bogosoft\NetStumbler\Settings\A uto Start Scan" is 1, for those who use the registry), I'd like it if NetStumbler would call OnEnableScan shortly after initializing the scripting engine. I'm working around it by checking for an initial instance every time a call to OnScanComplete occurs, but adding this call would allow a reduction of overhead.
Additionally, I'd like it if NetStumbler would call OnDisableScan shortly before stopping the scripting engine when it is asked to exit. I'm working around this by setting a value in the registry every time a call to OnScanComplete occurs, but adding this call would allow a reduction of overhead. Alternatively, or additionally, a call to OnExit (or something similar) would be helpful for cleanup purposes.
Here's a 6-line script that allows one to test these experiences:
Sub OnEnableScan()
MsgBox "EnableScan"
End Sub
Sub OnDisableScan()
MsgBox "DisableScan"
End Sub