sub OnScanResult (SSID,BSSID,CapFlags,Signal,Noise,LastSeen)
	'dim fso, fl, ts, count 
	if SSID = "tmobile" then
	set fso = CreateObject("Scripting.FileSystemObject") 
	set ts = fso.OpenTextFile("c:\nsfiles\ap.txt", 2, True) 'r=1,w=2,a=8
	'count = count + 1
	'ts.WriteLine(LastSeen) 
	'ts.Write("SSID : ") 
	'ts.WriteLine(SSID) 
	'ts.Write("BSSID : ") 
	'ts.WriteLine(BSSID) 
	'ts.Write("Signal : ") 
	ts.WriteLine(Signal) 
	'ts.Write("Noise : ") 
	'ts.WriteLine(Noise) 
	'ts.Write("Count : ") 
	'ts.WriteLine(Count)
	ts.Close() 
	'MsgBox("VR9S7")
	end if
End Sub 

sub OnScanComplete (FoundNew,SeenBefore,LostContact,BestSNR) 
	'dim fso, fl, ts 
	'set fso = CreateObject("Scripting.FileSystemObject") 
	'set ts = fso.OpenTextFile("c:\nsfiles\signal_strength.txt", 8, True)
	'ts.Write("FoundNew : ") 
	'ts.WriteLine(FoundNew) 
	'ts.Write("SeenBefore : ") 
	'ts.WriteLine(SeenBefore) 
	'ts.Write("LostContact : ") 
	'ts.WriteLine(LostContact) 
	'ts.Write("BestSNR : ")
	'ts.WriteLine(BestSNR) 
	'ts.Close() 
End Sub
