SoftPerfect WiFi Guard

Launching an executable on detection

Started by Sam

Sam

Launching an executable on detection   23 September 2020, 08:36

I've got the licence. Thanks for the quick help earlier. A few last questions though:
Are there parameters that I can pass to the 'launch executable on detection' event? E.g. device name, MAC address...
And does it use the new 'only one event per new unknown device' change?

Thanks!
Sam.
SoftPerfect Support forum - Ann avatar image
Ann

Re: Launching an executable on detection   23 September 2020, 08:44

At the moment no parameters are passed, and the executable is only launched once per scan regardless how many devices were detected, as long as there is at least one detection.

We haven't found a clever way of passing multiple rows of data, but it's possible to extract and use it with sqlite3 from sqlite-tools. You could execute a batch script with something like this, which will dump all unknown devices:
sqlite3 "C:\Users\UserName\AppData\Local\WiFi Guard\WiFi Guard.DB" "SELECT * FROM DEVICE WHERE KNOWN = 0"

You can also export that to a CSV file; and there is a bunch of other options, see via:
sqlite3 --help
Sam

Re: Launching an executable on detection   23 September 2020, 09:11

Thanks, that'll do just fine. Perhaps you could do a one-execution-per-device, to easily include parameters? Or just a JSON array? But I guess that'd get too complicated for normal users.

Cheers,
Sam.

Reply to this topic

Sometimes you can find a solution faster if you try the forum search, have a look at the knowledge base, or check the software user manual to see if your question has already been answered.

Our forum rules are simple:

  • Be polite.
  • Do not spam.
  • Write in English. If possible, check your spelling and grammar.

Author:

Email:

Subject

A brief and informative title for your message, approximately 4–8 words:

     

Spam prevention: please enter the following code in the input field below.

 ********   ********  **    **  ********   **      ** 
 **     **  **        **   **   **     **  **  **  ** 
 **     **  **        **  **    **     **  **  **  ** 
 **     **  ******    *****     **     **  **  **  ** 
 **     **  **        **  **    **     **  **  **  ** 
 **     **  **        **   **   **     **  **  **  ** 
 ********   **        **    **  ********    ***  ***  

Message: