srikanthreddy29

want to create GUI window for connecting network share path

2 posts in this topic

Actually i'm looking for GUI window,which i can add share folder path names in the list and when ever i need i should connect to selected path by clicking connect button.

-I'm nt sure wht function should i add to connect.

 

I attached the screen shot which i created

 

Basically i'm looking to add all the network share path in the list,which i have access .so that i can connect easily.

 

#include <GUIConstantsEx.au3>
#include <GuiListBox.au3>
#include <MsgBoxConstants.au3>
Main()
Func Main()
 
Local $iGUIWidth = 600, $iGUIHeight = 500
Local $OK,$Add,$Remove
Local $idListBox,$Add,$Connect
GUICreate("New GUI", $iGUIWidth, $iGUIHeight)
$idListBox = GUICtrlCreateList("List", 10, 10, 400, 200)
$Connect = GUICtrlCreateButton("Connect", 500, 10, 70, 25)
$Add = GUICtrlCreateButton("Add", 500, 40, 70, 25)
$OK=GUICtrlCreateButton("OK", 500, 100, 70, 25)
$Remove=GUICtrlCreateButton("Remove", 500, 200, 70, 25)
 
GUISetState(@SW_SHOW)
 
; Loop until the user exits.
    While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit
        Case $Add
            Main()
 
    EndSwitch
WEnd
EndFunc
 

 

post-38870-0-42308900-1425533848_thumb.p

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