Jump to content
Sign in to follow this  
eagle4life69

How Can I do Browse

Recommended Posts

eagle4life69

Okay here is my Script All I need for now is how do I make the Brwose Buttons work and make it so when the file is found the input text next to the Browse will show the files full directory path

#include <GuiConstants.au3>

GuiCreate("Podcast/Netcast RSS Feed Updater", 392, 422,-1, -1 , BitOR($WS_OVERLAPPEDWINDOW, $WS_CLIPSIBLINGS))

$Input_1 = GuiCtrlCreateInput("File", 20, 30, 130, 20)
GuiCtrlCreateLabel("Podcast/Netcast RSS Feed Updater", 110, 10, 190, 20)
$Button_3 = GuiCtrlCreateButton("Browse", 160, 30, 60, 20)
$Input_4 = GuiCtrlCreateInput("MP3 File", 20, 60, 130, 20)
$Button_5 = GuiCtrlCreateButton("Browse", 160, 60, 60, 20)
$Input_6 = GuiCtrlCreateInput("Show Title", 240, 30, 140, 20)
$Input_7 = GuiCtrlCreateInput("Shows Author", 240, 60, 140, 20)
$Input_8 = GuiCtrlCreateInput("Show Subtitle", 20, 130, 200, 20)
$Input_9 = GuiCtrlCreateInput("Shows Summary", 20, 180, 350, 50)
$Input_10 = GuiCtrlCreateInput("http://", 20, 260, 350, 20)
$Input_11 = GuiCtrlCreateInput("Show Keywords", 20, 320, 350, 50)
GuiCtrlCreateLabel("Seperate With Coma's", 20, 370, 110, 20)
GuiCtrlCreateLabel("Shows Keywords", 20, 300, 110, 20)
GuiCtrlCreateLabel("MP3 URL", 20, 240, 80, 20)
GuiCtrlCreateLabel("Show's Summary", 20, 160, 130, 20)
GuiCtrlCreateLabel("Show's Subtitle", 20, 110, 90, 20)
GuiCtrlCreateLabel("Show Explicit", 270, 90, 90, 20)

$Combo_17 = GuiCtrlCreateCombo("Yes", 260, 110, 100, 21)
GUICtrlSetData(-1,"No|Clean") 
GuiSetState()
While 1
    $msg = GuiGetMsg()
    Select
    Case $msg = $GUI_EVENT_CLOSE
        ExitLoop
    Case Else
        ;;;
    EndSelect
WEnd
Exit

Thanks for your help

Share this post


Link to post
Share on other sites
/dev/null

Okay here is my Script All I need for now is how do I make the Brwose Buttons work and make it so when the file is found the input text next to the Browse will show the files full directory path

See help file sample of GuiCtrlCreateButton(). You must extend your message loop.

Cheers

Kurt


__________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf *

Share this post


Link to post
Share on other sites
eagle4life69

See help file sample of GuiCtrlCreateButton(). You must extend your message loop.

Cheers

Kurt

Thanks I think I got it

Case $msg = $Browse_File
        $var = FileOpenDialog("File File", @DesktopCommonDir & "", "Images (*.jpg;*.bmp)|Videos (*.avi;*.mpg)", 1 + 4 )

        If @error Then
            MsgBox(4096,"","No File(s) chosen")
        Else
            $var = StringReplace($var, "|", @CRLF)
            MsgBox(4096,""," " & $var)
            GUICtrlSetData($Input_1,$var,"")
        EndIf

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.