Greenhorn Posted January 25, 2008 Share Posted January 25, 2008 Moin, I want to open the default network connection window and want to know if it's possible by calling a *.dll function. So, please, is there somebody who knows the way to do it ? If you don't know what I mean, here is a similar example: Eigenschaften von Taskleiste und Startmenü = Properties of Taskbar and Start Menu ; Schnellstartleiste anzeigen. Run('rundll32.exe shell32.dll,Options_RunDLL 1') WinWait('Eigenschaften von Taskleiste und Startmenü', 'Taskleiste') WinSetState('Eigenschaften von Taskleiste und Startmenü', 'Taskleiste', @SW_HIDE) ControlClick('Eigenschaften von Taskleiste und Startmenü', 'Taskleiste', 'Button5') Sleep(150) ;ControlClick('Eigenschaften von Taskleiste und Startmenü', 'Taskleiste', 'Button12') Sleep(150) ;ControlClick('Eigenschaften von Taskleiste und Startmenü', 'Taskleiste', 'Button11') Exit I would be very delighted if sombody knows the solution ! Greetz Greenhorn Link to comment Share on other sites More sharing options...
rover Posted January 25, 2008 Share Posted January 25, 2008 Run("rundll32.exe shell32,Control_RunDLL ncpa.cpl") have a look at this thread and search for 'Netsh' Help opening Network Connection Properties. I see fascists... Link to comment Share on other sites More sharing options...
Greenhorn Posted January 25, 2008 Author Share Posted January 25, 2008 This is nearly what I am searching for, thank you very much, rover ! Excuse my bad explanation, but I ment the 'window' below ... Greetz Link to comment Share on other sites More sharing options...
rover Posted January 27, 2008 Share Posted January 27, 2008 a WMI script call to 'Win32_PerfRawData_Tcpip_NetworkInterface' will give you almost all the info on that dialog.try the 'scriptomatic' tool on the forumsearching the forum for 'network connection' will bring up some examples of automating the dialogssearching google for a dll solution brought up these results:apparently there is a problem with displaying that dialog outside of explorer process.How do I display "Local Area Connection Status" dialog programmatically?http://www.themssforum.com/VC/disp-Local/Programmatically launch Network Connection Statushttp://groups.google.com/group/microsoft.p...96b8089d334437c'runmenu' program referenced in above link available herehttp://www.eluent.com/runmenu.htmMSDN: Displaying and Changing PropertiesINetCfgComponent::RaisePropertyUi()http://search.msdn.microsoft.com/search/De...&lang=en-usmore rundll32 commands here.Dx21 | RunDLL32 Referencehttp://www.dx21.com/SCRIPTING/RUNDLL32/REF...P?ISF=0&P=A I see fascists... 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