goldfndr wrote:Some questions for you.
- Does an existing script serve your needs?
The [thread=12512]Master script[/thread] tries to be the be-all, end-all of NetStumbler scripts and has several examples of how to use the events/data. Possibly a minor change would meet your needs]send a donation to the author[/url]) or a school project or otherwise need some different licensing. - What approaches have you tried so far?
NetStumbler uses an event-driven model. In other words, when something happens in it, it calls your code. Your code doesn't call it. "Don't call us, we'll call you." So, to get the SSID/BSSID/MaxSNR, you'd probably use the OnScanResult function most of the time. And then there are questions like:- Are you only wanting information on a subset of SSIDs/BSSIDs, or all?
- Did you want a maximum/minimum SNR, or a log/table of values?
The AddItemContextMenu function only acts on a given network, it does act on the SSID/BSSID but you'd need to record the SNR using a different event.
And it probably goes without saying that a non-Hermes chipset, while it may give you interesting RSSI readings, won't give you reliable SNR readings.
I hope you won't make me live up to my title.
Ok
, I download your Master script.
[My software is not commercial is only a personal project, bat if a day I’ll become millionaire I make you a big donation
].
The approaches event-driven is for me ok:
If NetStumbler detect a new access point -> give the information of SSID/BSSID/MaxSNR to my Vbproject
If possible I wont ALL the SSIDs/BSSIDs that are connecting to the pc at the moment.
I think that is sufficient that the script write the information in a text file (I download and modify your first version of Master Script):
****************************************
'create file:
Dim OggFile, origine, OggTextStream
origine="G:\Programmi\…\…\Test.txt"
Set fso = CreateObject("Scripting.FileSystemObject")
fso.CreateTextFile (origine)
Set OggFile = fso.GetFile (origine)
Set OggTextStream = OggFile.OpenAsTextStream(2)
…
…
Sub OnScanResult(SSID, BSSID, CapFlags, Signal, Noise, LastSeen)
' SSID : String : SSID (Network name)
' BSSID : String : BSSID (MAC address)
' CapFlags : Integer : 802.11 capability flags
' Signal : Integer : signal level (dBm)
' Noise : Integer : noise level(dBm)
' LastSeen : Time
' write information:
OggTextStream.WriteLine "File with the information"
OggTextStream.WriteLine
OggTextStream.WriteLine SSID
If UseSpeech And Not Spoken_BSSIDs.Exists(BSSID) Then
' TTS.Speak SSID, SVSFlagsAsync
New_SSIDs.Item(SSID) = 1
Spoken_BSSIDs.Item(BSSID) = LastSeen ' Could check and see if it's been a long
time, play again
End If
End Sub
…
…
OggTextStream.close
****************************************
There is an alternative method to have all the Access Points (currently connected) informations?
Thanks for the time