ioliver Posted March 10, 2004 Share Posted March 10, 2004 This is what I'm working with: ; GUI Test ; March 10, 2004 GUICreate("AutoIt 3 - Create a New Folder GUI", 250, 150) GUISetControl("Label", "Enter a name for the New Folder", 5, 10) GUISetControl("Input", "NEW FOLDER NAME", 5, 35) GUISetControl("Button", "Ok", 15, 75) GUIExecute() I don't know how to code for AutoIt to create a new folder with the name in the Input Box when the Ok Button is pressed. I tried reading the Doc's (chm) file but I'm not able to follow it. Right now I'm just playing around with the GUI, but if any has any ideas please let me know. Thanks again. This forum has been a big help. Ian Oliver Ohh, I never mentioned it before, but thanks to the creator(s) of AutoIt, it's a great product that saves me a lot of time at work. It's eaiser to use than VBScript and just as powerful, at least for what I need to do. Thanks again. "Blessed be the name of the Lord" - Job 1:21Check out Search IMF Link to comment Share on other sites More sharing options...
jpm Posted March 10, 2004 Share Posted March 10, 2004 This is what I'm working with: ; GUI Test ; March 10, 2004 GUICreate("AutoIt 3 - Create a New Folder GUI", 250, 150) GUISetControl("Label", "Enter a name for the New Folder", 5, 10) GUISetControl("Input", "NEW FOLDER NAME", 5, 35) GUISetControl("Button", "Ok", 15, 75) GUIExecute() I don't know how to code for AutoIt to create a new folder with the name in the Input Box when the Ok Button is pressed. I tried reading the Doc's (chm) file but I'm not able to follow it. Right now I'm just playing around with the GUI, but if any has any ideas please let me know. Thanks again. This forum has been a big help. Ian Oliver Ohh, I never mentioned it before, but thanks to the creator(s) of AutoIt, it's a great product that saves me a lot of time at work. It's eaiser to use than VBScript and just as powerful, at least for what I need to do. Thanks again.You have to change a little bit your script to check which button has been click GUI Test ; March 10, 2004 GUICreate("AutoIt 3 - Create a New Folder GUI", 250, 150) GUISetControl("Label", "Enter a name for the New Folder", 5, 10) $n=GUISetControl("Input", "NEW FOLDER NAME", 5, 35) $ok=GUISetControl("Button", "Ok", 15, 75) GUIExecute() if $ok=GuiRead() then ; needed if you close not by the "OK" button $input=GuiRead($n) ; do what you want with the input value endif Good AutoIt-gui Link to comment Share on other sites More sharing options...
ioliver Posted March 11, 2004 Author Share Posted March 11, 2004 Thanks for your help. Ian "Blessed be the name of the Lord" - Job 1:21Check out Search IMF 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