Skrip Posted November 5, 2006 Share Posted November 5, 2006 While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $nMsg = $Button1 $e_address = FileSelectFolder("Select Gmod Folder...", @HomeDrive, 4, $address) GUICtrlSetData($Input1, $e_address) Case $nMsg = $Button2 $ddir = _FileListToArray($List1) EndSwitch WEnd Why exactly does it constantly do the $Button1 funtions? The FileSelectFolder keeps coming up. Will not stop. How do I fix this? [left][sub]We're trapped in the belly of this horrible machine.[/sub][sup]And the machine is bleeding to death...[/sup][sup][/sup][/left] Link to comment Share on other sites More sharing options...
Developers Jos Posted November 5, 2006 Developers Share Posted November 5, 2006 Why exactly does it constantly do the $Button1 funtions? The FileSelectFolder keeps coming up. Will not stop.How do I fix this?What is the value of $Button1 ? 0 maybe ? SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Skrip Posted November 5, 2006 Author Share Posted November 5, 2006 $Button1 = GUICtrlCreateButton("Browse", 8, 40, 401, 25, 0) [left][sub]We're trapped in the belly of this horrible machine.[/sub][sup]And the machine is bleeding to death...[/sup][sup][/sup][/left] Link to comment Share on other sites More sharing options...
Thatsgreat2345 Posted November 5, 2006 Share Posted November 5, 2006 all i want to say is you can save yourself a variable by just putting the function fileselectfolder as the data part of guictrlsetdata Link to comment Share on other sites More sharing options...
Developers Jos Posted November 5, 2006 Developers Share Posted November 5, 2006 Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $Button1 $e_address = FileSelectFolder("Select Gmod Folder...", @HomeDrive, 4, $address) GUICtrlSetData($Input1, $e_address) Case $Button2 $ddir = _FileListToArray($List1) EndSwitch SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. 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