Sign in to follow this  
Followers 0
Erlend

Wireless settings - Windows XP SP2

6 posts in this topic

#1 ·  Posted (edited)

Hello

I got a tip from a forum user at forums.altiris.com, here: http://forums.altiris.com/messageview.aspx...p;enterthread=y

Run("C:\SetupSNK.exe")
WinWait("Wireless Network Setup Wizard", "Do you want to add this computer to the wireless network")
ControlClick("Wireless Network Setup Wizard", "Do you want to add this computer to the wireless network", 1)
WinWait("Wireless Network Setup Wizard", "You have successfully added this computer to the wireless network")
ControlClick("Wireless Network Setup Wizard", "You have successfully added this computer to the wireless network", 2)

I am Norwegian and we use the Norwegian version of Windows XP

I transelated the script into norwegian, but it dosn't work:

Run("C:\SetupSNK.exe")
WinWait("Installasjonsveiviser for trådløst nettverk", "Vil du legge denne datamaskinen til det trådløse nettverket TEST1?")
ControlClick("Installasjonsveiviser for trådløst nettverk", "Vil du legge denne datamaskinen til det trådløse nettverket TEST1?", 1)
WinWait("Installasjonsveiviser for trådløst nettverk", "Datamaskinen har blitt lagt til i det trådløse nettverket TEST1")
ControlClick("Installasjonsveiviser for trådløst nettverk", "Datamaskinen har blitt lagt til i det trådløse nettverket TEST1", 2)

When i start the compiled script it stops at the firs dialog box:

Posted Image

Edited by Erlend

Share this post


Link to post
Share on other sites



Hei Erlend.

I think your problem is that you've specified the wrong controlID at the third parameter

for your ControlClick (both of them actually). Use the "AutoIt Window Info" tool included

in AutoIt to get the correct controlID. Look under ClassNameNN there and you will most

likely see that it says "Button1" or something similar.

Modify the controlID and you should be good to go.

Opt("TrayIconDebug", 1) ; <-- shows current line when hovering over tray-icon

$title = "Installasjonsveiviser for trådløst nettverk"

Run("C:\SetupSNK.exe")

WinWait($title, "Vil du legge denne datamaskinen til det trådløse nettverket TEST1?")
ControlClick($title, "Vil du legge denne datamaskinen til det trådløse nettverket TEST1?", <change this>) ; <--
WinWait($title, "Datamaskinen har blitt lagt til i det trådløse nettverket TEST1")
ControlClick($title, "Datamaskinen har blitt lagt til i det trådløse nettverket TEST1", <change this>) ; <--

Share this post


Link to post
Share on other sites

Here is the output of the debug:

Posted Image

And here is the info from autoID:

Posted Image

Posted Image

Share this post


Link to post
Share on other sites

Here is the new debug line

Posted Image

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

Here is the current script (dosn't work)

Opt("TrayIconDebug", 1) 

$title = "Installasjonsveiviser for trådløst nettverk"

Run("C:\SetupSNK.exe")

WinWait($title, "Vil du legge denne datamaskinen til det trådløse nettverket TEST1?")
ControlClick($title, "Vil du legge denne datamaskinen til det trådløse nettverket TEST1?", 1) 
WinWait($title, "Datamaskinen har blitt lagt til i det trådløse nettverket TEST1")
ControlClick($title, "Datamaskinen har blitt lagt til i det trådløse nettverket TEST1", 2)
Edited by Erlend

Share this post


Link to post
Share on other sites

thanks for the help Helge the problem is solved ;)

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  
Followers 0