Jump to content

Recommended Posts

Posted

Greetings AutoIT Users,

Can someone post a better way to start netconnections. I searched the forums and could not find anything. Below is the code I am using now but I am sure there is a better way...

Run("control.exe netconnections")

WinWaitActive("Network Connections")

Send("My VPN{ENTER}")

WinWaitActive("Connect My VPN")

Send("password{ENTER}")

Sleep(15000)

Posted

how we can create some for you without we have the exe file?

I am not sure about this, but if you are talking about the "control.exe" file referenced on the first line of the script it is part of Windows XP. It just starts the "control panel".

Posted

Maybe rundll32.exe can be used to start the VPN directly without opening up the control panel's "Network Connection" folder. I am still searching Google but nothing yet...

Posted

Greetings AutoIT Users,

Can someone post a better way to start netconnections. I searched the forums and could not find anything. Below is the code I am using now but I am sure there is a better way...

Run("control.exe netconnections")

WinWaitActive("Network Connections")

Send("My VPN{ENTER}")

WinWaitActive("Connect My VPN")

Send("password{ENTER}")

Sleep(15000)

This should start your connection:

run("RunDll32.exe Rnaui.dll,RnaDial My VPN")

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...