Jump to content
Sign in to follow this  
GreatBarrier86

Newbie Help with WinWaitActive

Recommended Posts

GreatBarrier86

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

Share this post


Link to post
Share on other sites
newbiescripter

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

Share this post


Link to post
Share on other sites
GreatBarrier86

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.

Share this post


Link to post
Share on other sites
PsaltyDS

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

Share this post


Link to post
Share on other sites
GreatBarrier86

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.

Share this post


Link to post
Share on other sites
GreatBarrier86

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.

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  

×