Ticket #157: Auto-fail.au3

File Auto-fail.au3, 690 bytes (added by llombard@…, 15 years ago)

Script to get to the problem window.

Line 
1global $NCTITLE                 = "Network Connections"
2global $NETWORKSCONTROL         = "SysListView321"
3global $adapter                                 = "Wireless"
4
5Run ("control.exe ncpa.cpl")
6
7WinActivate ($NCTITLE)
8sleep (300)
9
10ControlListView($NCTITLE, "", $NETWORKSCONTROL, "Select", ControlListView($NCTITLE,"",$NETWORKSCONTROL,"FindItem",$adapter) )
11sleep (200)
12
13ControlSend($NCTITLE, "", $NETWORKSCONTROL, "+{F10}")
14sleep (100)
15
16ControlSend($NCTITLE, "", $NETWORKSCONTROL, "o")       
17sleep(200)
18
19WinActivate ("Connect to a network")
20
21
22;Both of these variants should work but don't
23ControlClick ("Connect to a network", "", 1007)
24ControlClick ("Connect to a network", "", "SysLink4")
25
26