Sign in to follow this  
Followers 0
mrjoli021

run script after wifi connection

2 posts in this topic

I have an rsync script that runs the backups. I would like this scipt to run only when I connect to my home wifi. I am looking for a way to run the script after I connect to my wifi

Share this post


Link to post
Share on other sites



Use this code to detect whether it is connected or not:

#include <WinAPIEx.au3>

While Not _WinAPI_IsNetworkAlive()
    Sleep(100)
WEnd
MsgBox(4096, "IsNetworkAlive", "Network connected!")
Need this UDF:

Regards,

João Carlos.


http://forum.autoitbrasil.com/ (AutoIt v3 Brazil!!!)

Somewhere Out ThereJames Ingram

somewh10.png

dropbo10.pngDownload Dropbox - Simplify your life!
Your virtual HD wherever you go, anywhere!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0