Sign in to follow this  
Followers 0
xcxooxl

user set path..

5 posts in this topic

i want to make a program that writes a file in some user directory

and it got alot of kinds so i want that user will have a gui so he can set the patch of the folder in it

like setting the var value with gui..

how can i do that?

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

i want to make a program that writes a file in some user directory

and it got alot of kinds so i want that user will have a gui so he can set the patch of the folder in it

like setting the var value with gui..

how can i do that?

You can start by making a GUI using the GUI commands, like GUICreate()

Then look up Macro Reference - Directory in the help file to find out how to get the user directories.

Edited by BALA

[font="Comic Sans MS"]BA-LA[/font]http://ba-la.110mb.comJoin my community, CLICK HEREAlternative links to my site:http://www.ba-la.tkhttp://www.ba-la.co.nrContact me if you would like to help with some of my projects: joeythepirate@gmail.com

Share this post


Link to post
Share on other sites

no its not that macro cant help here

i want a gui where

it will ask the user

where is your game directory?

and there will be a browse button

where he can set it

its like the user can set the $var by it

how can i do that?

Share this post


Link to post
Share on other sites

Perhaps try this:

$target = FileSelectFolder("Select Target..", "::{20D04FE0-3AEA-1069-A2D8-08002B30309D}", 1)
If $target = "" Then $target = "No Directory Selected"
Msgbox(0,"","Your selected directory: " & $target)

Kurt


Awaiting Diablo III..

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