Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

want to create GUI window for connecting network share path

$
0
0

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


Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>