Erlend Posted December 3, 2006 Share Posted December 3, 2006 (edited) HelloI got a tip from a forum user at forums.altiris.com, here: http://forums.altiris.com/messageview.aspx...p;enterthread=yRun("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 XPI 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: Edited December 3, 2006 by Erlend Link to comment Share on other sites More sharing options...
Helge Posted December 3, 2006 Share Posted December 3, 2006 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>) ; <-- Link to comment Share on other sites More sharing options...
Erlend Posted December 4, 2006 Author Share Posted December 4, 2006 Here is the output of the debug:And here is the info from autoID: Link to comment Share on other sites More sharing options...
Erlend Posted December 4, 2006 Author Share Posted December 4, 2006 Here is the new debug line Link to comment Share on other sites More sharing options...
Erlend Posted December 4, 2006 Author Share Posted December 4, 2006 (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 December 4, 2006 by Erlend Link to comment Share on other sites More sharing options...
Erlend Posted December 4, 2006 Author Share Posted December 4, 2006 thanks for the help Helge the problem is solved Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now