﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
158	ControlClick not working on some Vista windows.	llombard@…		"AutoIT Version: 3.2.10.0 

This problem is observed trying to click the ""Open Network and Sharing Center"" Link on the ""Connect to a network"" window in Vista. You will need a wireless card on a vista machine in order to run this script. The script expects the card name to be 'Wireless' but this can be changed by changing the $adapter variable. I have put in two different ControlClick attempts, both of which should work, but do not. I have commented them as such. I have attached the code as well.

CODE
{{
global $NCTITLE                 = ""Network Connections""
global $NETWORKSCONTROL         = ""SysListView321""
global $adapter                    = ""Wireless""

;Launch Network Properties page
Run (""control.exe ncpa.cpl"")

WinActivate ($NCTITLE)
sleep (100)

;Select wireless adaptor
ControlListView($NCTITLE, """", $NETWORKSCONTROL, ""Select"", ControlListView($NCTITLE,"""",$NETWORKSCONTROL,""FindItem"",$adapter) )
sleep (200)

;Get drop down options for Adaptor - same as right click
ControlSend($NCTITLE, """", $NETWORKSCONTROL, ""+{F10}"")
sleep (100)

;select Connect/Disconnect
ControlSend($NCTITLE, """", $NETWORKSCONTROL, ""o"")    
sleep(200)

WinActivate (""Connect to a network"")


;Both of these variants should work but don't
ControlClick (""Connect to a network"", """", 1007)
ControlClick (""Connect to a network"", """", ""SysLink4"")
}}"	Bug	closed		AutoIt	3.2.10.0		No Bug		
