cypher175 Posted March 2, 2010 Share Posted March 2, 2010 Need to refresh the "Network Connections" window..?? I made a lil script that enables/disables the NIC Icon on the system tray, the only hold up is that a refresh or something needs to be made for the icon to display or hide after the setting has been made.. If i right click refresh in the "Network Connections" Window it successfully hides/displays the icon.. So i need some way to do this refresh without mouse clicks or key inputs though.. is there any other way to do a refresh or what not to get the icon to display/hide after the setting has been made..?? Link to comment Share on other sites More sharing options...
PsaltyDS Posted March 2, 2010 Share Posted March 2, 2010 Try to ControlSend() "{F5}" to the window. Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
cypher175 Posted March 3, 2010 Author Share Posted March 3, 2010 Would there be any other way to do this without opening the "Network Connections" window at all..?? Link to comment Share on other sites More sharing options...
PsaltyDS Posted March 3, 2010 Share Posted March 3, 2010 If there is no Network Connections window, then there are no Network Connections window icons to worry about refreshing. What do actually want to do? Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
cypher175 Posted March 4, 2010 Author Share Posted March 4, 2010 well if you change the reg value to show or hide the lan icon then there needs to be a refresh for it to take affect.. but i dont want to open the "Network Connections window" to do a refresh - thats why im asking.. after the reg key has been changed to show or hide the LAN icon, how can i do a refresh to make the reg change i made take affect without having to open any windows..?? are there any dll/api calls or something like that, that can do the refresh of explorer.exe or something..?? Link to comment Share on other sites More sharing options...
PsaltyDS Posted March 4, 2010 Share Posted March 4, 2010 Maybe get the handle to the system tray toolbar and use it in _WinAPI_UpdateWindow()? Not tested. Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law 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