Sign in to follow this  
Followers 0
Earthquake

Browse Button

3 posts in this topic

#1 ·  Posted (edited)

Hi Snipez, its me again!

Now I finished my program (the combo with the .ini to read in) and I want to take one step further (I really hated programming, but now its fun :D ):

I've got this .ini file:

[START]

Amount=2

Script1=Anaconda
Anaconda=C:\Cases\anaconda.exe

Script2=Mailer
Mailer=c:\Cases\ClarifyMailer.exe

And I want to create some sort of ".ini customizer" (ITS JUST THE GUI I STARTED FIVE MINUTES AGO, I JUST NEED THE BUTTON DESCRIBED BELOW :wacko: ):

#include <GUIConstants.au3>

GUICreate(".ini Creator for GPSD Tool Launcher", 320,95, -1, -1, -1, 0x00000018)

GUICtrlCreateLabel ("Displayed name",  10, 10, 100)
GUICtrlCreateLabel ("Path of the program",  130, 10, 100)


$NameProgram = GUICtrlCreateInput ("Name", 10,  30, 100, 20) ; Input Box for name
$ProgramPath = GUICtrlCreateInput ("Path", 130,  30, 165, 20) ; Specify the path of the program
$OkButton = GUICtrlCreateButton ("Ok", 250, 65, 60, 20)
$NextButton = GUICtrlCreateButton ("Next", 180,  65, 60, 20) ; Next entry for the .ini REBUILD whole GUI???

GUISetState () 

$msg = 0
While $msg <> $GUI_EVENT_CLOSE
       $msg = GUIGetMsg()
       Select
           Case $msg = $OkButton
               exitloop
       EndSelect
Wend

MsgBox (4096, "drag drop file",$NameProgram)

What I wanted to do is a browse button like this: Posted Image

which opens a Window with the content of the PC. The user should be able to select the file and it should enter the right path in the $ProgramPath Inputbox.

Is it possible?

Edited by Earthquake

Yes, I am a noob! But at least I try to learn!Moddingtech.de - Home of the german Modding-Scene!

Share this post


Link to post
Share on other sites



Hi,

have a look at FileOpenDialog()

And GuiCtrlSetData()

So long,

Mega


Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

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  
Followers 0