Jump to content

Recommended Posts

Posted

Hi,

I am trying to use AutoIT's Send commands to create a VPN connection, but when i use WinWaitActive the script pauses even though the text i specified is on the screen.

For instance,

WinWaitActive("New Connection Wizard", "Network Connection Type")

Send("{LALT}ON")

It just pauses at WinWaitActive even though the text "network connection type" is listed.

Am i doing something wrong?

Thanks,

Jason

Posted

well it seems right..

Have you copied it directly from the AutoIt window info?

If you haven't check if there is a space before the title like " New Connection Wizard"

Regards

interesting. Hmm...how do i copy it from the AutoIT window info? Also, it's the second part that is failing. If i remove it, it works fine. The "New Connection Wizard portion works.

Posted

Hi,

I am trying to use AutoIT's Send commands to create a VPN connection, but when i use WinWaitActive the script pauses even though the text i specified is on the screen.

For instance,

WinWaitActive("New Connection Wizard", "Network Connection Type")

Send("{LALT}ON")

It just pauses at WinWaitActive even though the text "network connection type" is listed.

Am i doing something wrong?

Thanks,

Jason

Are you sure it's not seeing the window? I ask because I think your Send() is wrong and should be:
Send("!ON")

:)

Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
Posted

Are you sure it's not seeing the window? I ask because I think your Send() is wrong and should be:

Send("!ON")

:)

Well, i thought so at first too, but when i removed the second part, the "Network Connection Type," it worked fine.
Posted

Ok i figured it out once i used the window info program. It turns out that there are a lot of "&" symbols used in that text. Once i placed them in the proper location, it worked fine.

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
×
×
  • Create New...