NetStumbler.org Forums

Go Back   NetStumbler.org Forums > NetStumbler Community > Scripts
Register Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old 08-06-2004   #1 (permalink)
oc768
Registered Member
 
Join Date: Aug 2004
Posts: 8
autosave?

I've been looking throught scripts and havent found one that did this. Has anyone written a script that autosaves the information to the file as soon as a new AP has been found. I know that the program autosaves the info on exit but I need the data to be saved as soon as its found.

Can anyone help me on this one?
oc768 is offline   Reply With Quote
Old 08-06-2004   #2 (permalink)
wrzwaldo
I amuse you?
 
Join Date: Dec 2003
Posts: 9,147
Quote:
Originally Posted by oc768
I've been looking throught scripts and havent found one that did this. Has anyone written a script that autosaves the information to the file as soon as a new AP has been found. I know that the program autosaves the info on exit but I need the data to be saved as soon as its found.

Can anyone help me on this one?
It also saves at a set interval (looks to be every 5 minutes). Yes every 5 minutes. Also curious why you need it saved with every AP found? That could suck if you were in a AP dense area.

Last edited by wrzwaldo : 08-06-2004 at 02:36 PM.
wrzwaldo is offline   Reply With Quote
Old 08-06-2004   #3 (permalink)
Madhadder
General "Noob Basher"
 
Madhadder's Avatar
 
Join Date: Apr 2002
Location: Munich, Germany
Posts: 1,620
What if you just found 50 AP's for WWWD5 then 2min later your pc crashes...
you would loose those AP's and have to go back again. This is why NS saves
the file after every AP, that way if your Lappy dies then you don't loose anthing.
__________________
Legends may sleep, but they never die!!!!
Madhadder is offline   Reply With Quote
Old 08-12-2004   #4 (permalink)
oc768
Registered Member
 
Join Date: Aug 2004
Posts: 8
reply

NS doesnt save after every AP. This is what I want it to do, just in case my lappy dies on me like you were saying.
oc768 is offline   Reply With Quote
Old 08-12-2004   #5 (permalink)
wrzwaldo
I amuse you?
 
Join Date: Dec 2003
Posts: 9,147
Quote:
Originally Posted by oc768
NS doesnt save after every AP. This is what I want it to do, just in case my lappy dies on me like you were saying.
It does however AS every 5 minutes. So at least for now you have some protection until a script get done.
wrzwaldo is offline   Reply With Quote
Old 08-13-2004   #6 (permalink)
Laidback
Laidback Stumbler
 
Laidback's Avatar
 
Join Date: Aug 2002
Location: Madrid
Posts: 65
I think the pearl script saves after AP found...
__________________
Laidback

Laidback Carputer
Laidback is offline   Reply With Quote
Old 08-17-2004   #7 (permalink)
oc768
Registered Member
 
Join Date: Aug 2004
Posts: 8
all I really want is a script that will autosave the data for me. I am settin up a dedicated computer in my car that will power on when the car turns on and then will have the power cut when the car is turned off. Because netstumbler saves when you close the program all my data is lost when I abruptly kill the power. Anyone know how I can just have it save without writing all my info to a db.

I'm thinking a simple script that saved the file every minute or two would work. Or a script that saved the info to the file after every two or three access points were found.

Lemme know
oc768 is offline   Reply With Quote
Old 08-17-2004   #8 (permalink)
wrzwaldo
I amuse you?
 
Join Date: Dec 2003
Posts: 9,147
Quote:
Originally Posted by oc768
all I really want is a script that will autosave the data for me. I am settin up a dedicated computer in my car that will power on when the car turns on and then will have the power cut when the car is turned off. Because netstumbler saves when you close the program all my data is lost when I abruptly kill the power. Anyone know how I can just have it save without writing all my info to a db.

I'm thinking a simple script that saved the file every minute or two would work. Or a script that saved the info to the file after every two or three access points were found.

Lemme know
NS autosaves the file every 5 minutes (as well as on exit)! I do however wish it had a user selectable value.
wrzwaldo is offline   Reply With Quote
Old 08-17-2004   #9 (permalink)
oc768
Registered Member
 
Join Date: Aug 2004
Posts: 8
are you quite sure it actually saves the data to the disc every 5 minutes? I'm going to test this out later today.
oc768 is offline   Reply With Quote
Old 08-17-2004   #10 (permalink)
Thorn
Did you do the math?
 
Thorn's Avatar
 
Join Date: Apr 2002
Location: Villa Straylight
Posts: 10,361
Quote:
Originally Posted by oc768
are you quite sure it actually saves the data to the disc every 5 minutes? I'm going to test this out later today.
I'm positive. Every 5 minutes.
__________________
Thorn
"Read Altas Shrugged. Compare it to today. Repeat as necessary"
Thorn is offline   Reply With Quote
Old 08-24-2004   #11 (permalink)
oc768
Registered Member
 
Join Date: Aug 2004
Posts: 8
autosave

any chance on the next version having an option to set the save time to something other than 5 minutes?
oc768 is offline   Reply With Quote
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
Old 09-05-2004   #13 (permalink)
oc768
Registered Member
 
Join Date: Aug 2004
Posts: 8
post a script

goldfndr would you be willing to post a premade script that does this?

That would be very helpful.
oc768 is offline   Reply With Quote
Old 09-06-2004   #14 (permalink)
mjcason
Registered Member
 
Join Date: Sep 2004
Posts: 5
I second the premade script, if only I could do that myslef...
mjcason is offline   Reply With Quote
Old 09-06-2004   #15 (permalink)
goldfndr
Knight Tooth Puller
 
goldfndr's Avatar
 
Join Date: Aug 2004
Location: Bellevue, WA, USA
Posts: 182
While I could post a script to do it, I think it'd be better to add it to the default script. That way you're less likely to miss any features (e.g. sound).

With the default script saved in a file (e.g. save as default.vbs, make copy as def.vbs, edit def.vbs):
  1. Add the first two lines at the top of the file (actually, anywhere prior to the SUBroutine definitions).
  2. Add the latter line within the OnScanComplete subroutine, just after "End If" and before "End Sub", a couple of lines above the "Dim GPSOk".
Note that it might prompt to save the first time it runs, but I'm hopeful you can handle that once per run.
goldfndr is offline   Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



Google
 
Web NetStumbler.org

All times are GMT -7. The time now is 09:38 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0 ©2007, Crawlability, Inc.


All messages express the views of the author and are for entertainment purposes only. Netstumbler.org cannot be held responsible for the authenticity of the content or the actions of its members. By using this site and its services, you warrant that you will not post any messages that are discriminating, obscene, hateful, threatening, or otherwise violates any laws and you release Netstumbler.org from any future claims of any kind whatsoever including, but not limited to, addiction and loss of productivity. All forum messages, private messages and any other content are properties of Netstumbler.org. Even if publicly available, personal or copyrighted information are not to be posted without the consent of the owner. Distribution of licensed and copyrighted materials in any way not endorsed by the copyright owner is strictly prohibited. You may not use this site and its resources to spam other sites or individuals or perform any action that violates any law. Items sold or bought in the For Sale forum are sold as is and no warranty or insurance of any kind is provided. Netstumbler.org cannot be held responsible for the outcome of any transactions and no warranty of any kind is provided, either express or implied. Vulgar words are not allowed in the subject lines ; they may be used in the message body in any forum. The Administrator, Super Moderators and Moderators of Netstumbler.org have the right to remove, edit, move or close any thread for any reason and to reveal your identity and other known information in the event of a complaint or legal action arising from any message posted by you.