Thread: autosave?
View Single Post
Old 09-03-2004   #12 (permalink)
goldfndr
Knight Tooth Puller
 
goldfndr's Avatar
 
Join Date: Aug 2004
Location: Bellevue, WA, USA
Posts: 182
You can trigger a manual save via a script.

Get an existing VBScript-based script and put in these two lines near the top:

Code:
dim SHO
set SHO=CreateObject("WScript.Shell")
You might already have a CreateObject("WScript.Shell") in your code, if so then it'd be better to exploit the already-used variable.

Then, in the OnScanResult subroutine, add this line (substituting for SHO each time if you already had CreateObject("WScript.Shell") assigned to something else)
Code:
if SHO.AppActivate("Network Stumbler") then SHO.SendKeys("^s")
That sends a Control+S (save) to an application with Network Stumbler in the title. If you have more than one window with such a title, results might not be predictable.
goldfndr is offline   Reply With Quote