topten Posted December 8, 2014 Share Posted December 8, 2014 With this line of code I can connect my VPN Run('rasphone -d "My VPN"') $hWnd = WinWait("[CLASS:#32770]", "Connection to My VPN", 10) $Title = 'Connection to My VPN' $process = WinGetHandle(WinGetTitle($Title)) ControlClick($process, "", "[CLASS:Button; INSTANCE:4]") Is it possible to check, whether VPN has connected or not Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted December 8, 2014 Moderators Share Posted December 8, 2014 You can check the ip address you have when connected to the VPN. For example, one of my customers uses 10.10.181.x for their SSL VPN. Just check for the existence of those octets, and look at @IPAddress in the help file. "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now