Jump to content
Sign in to follow this  

Windows XP SP2 - Network Connection function

Recommended Posts


Trying to automate the wireless configuration settings on Windows XP SP2 for WPA2 and want to be able to select the wireless adaptor "icon" (do not know what you would call it, control, or something??) on the Network Connections window. (ncpa.cpl). I found a few other scripts on here that allow me to access to Network Connections window via the Run command.

Run('"' & @WindowsDir & '\System32\rundll32.exe" shell32,Control_RunDLL ncpa.cpl)

however the next thing I would like it to do is for the script to "focus in on", select or "high-light" the Wireless Network Connection "icon". This would then allow me to perform a "Send ("^,TAB)" command to get to the properties window and then run through the rest of the wpa2 setup script. I found similar scripts that use basic SEND (RIGHT), Send (DOWN), etc commands to navigate to the wireless network connection icon however I would like to be more precise since the position of the Wireless Network Connection "icon" may not always be in the same postion. Thus right, down commands do not always work on the Network Connections window. Suggestions?

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  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.