xcxooxl Posted February 9, 2007 Share Posted February 9, 2007 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? Link to comment Share on other sites More sharing options...
BALA Posted February 9, 2007 Share Posted February 9, 2007 (edited) i want to make a program that writes a file in some user directoryand it got alot of kinds so i want that user will have a gui so he can set the patch of the folder in itlike 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 February 9, 2007 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 Link to comment Share on other sites More sharing options...
xcxooxl Posted February 9, 2007 Author Share Posted February 9, 2007 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? Link to comment Share on other sites More sharing options...
xcal Posted February 9, 2007 Share Posted February 9, 2007 You'll want to look up FileSelectFolder(). How To Ask Questions The Smart Way Link to comment Share on other sites More sharing options...
_Kurt Posted February 9, 2007 Share Posted February 9, 2007 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.. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now