Jump to content

Newbie Help with WinWaitActive


Recommended Posts

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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
Link to comment
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
 Share

  • Recently Browsing   0 members

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