Jump to content

Lang

Members
  • Posts

    7
  • Joined

  • Last visited

Lang's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. But that is not the issue. The issue is that The Info box doesn't see those links and therefore can't directly select them. Instead, I have to click on a set of mouse co-ordinates. This is a problem if the resolution is changed between runs. Try going to that control panel page and using the Window Info tool and see if you can see those links as objects.
  2. I'm trying to automate the Vista Wireless Zero client for wireless configuration and I'm having multiple issues. I'm uncertain at this time if these are bugs or programming mistakes, but I have made a script for people to try out. You will need a wireless card that is named 'Wireless' or rename the adapter variable to match your wireless card's name. Below is my sample code that goes through my list of problems in a step by step manor with comments showing alternate things that work and the issues I am having. Any help is much appreciated! I have added a code box and attached the same. CODEglobal $NCTITLE = "Network Connections" global $NETWORKSCONTROL = "SysListView321" global $adapter = "Wireless" Run ("control.exe ncpa.cpl") WinActivate ($NCTITLE) sleep (100) ControlListView($NCTITLE, "", $NETWORKSCONTROL, "Select", ControlListView($NCTITLE,"",$NETWORKSCONTROL,"FindItem",$adapter) ) ControlSend($NCTITLE, "", $NETWORKSCONTROL, "+{F10}") ControlSend($NCTITLE, "", $NETWORKSCONTROL, "o") sleep(200) WinActivate ("Connect to a network") ;This should work but doesn't ControlClick ("Connect to a network", "", 1007) sleep(200) ;This will work, but I want to use ID's! ;Send("{TAB}{TAB}{ENTER}") ;sleep(200) WinActivate ("Network and Sharing Center") ;No way to make this one work. The links on the left aren't even seen by the AutoIT Info viewer ; Instead I'm clicking mouse location, but if my res isn't set right, I'm SOL. MouseClick("",130,235) sleep(200) ; At this point I need a list of currently configured connections so I can delete them ;See what the listview returns for the number of items. Try changing the number of network connections. ;I always get the same #. $ListCount = ControlListView("Manage Wireless Networks","",1,"GetSubItemCount") ConsoleWrite ("Number of network connections: " & $ListCount & @CRLF) ; Alo of note, if you click on a connection, the option to delete appears, but ; once again, the info box does not show this item.
×
×
  • Create New...