JohnOne Posted July 6, 2014 Posted July 6, 2014 You need to return a value from it. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans.
Srex Posted July 6, 2014 Author Posted July 6, 2014 aaah sorry i forgot the $sFileSelectFolder is the full path (except for the name) Case $ButtonBrowseOutputLoc $sFileSelectFolder = FileSelectFolder("Select output location", "") If Not @error Then $OutPutLoc = $sFileSelectFolder & '\settings.ini' StringReplace($OutPutLoc, "\\", "\") GUICtrlSetData($InputCheatDir, $OutPutLoc) This is what I did and it still says I tried making this func: func _GetFullPath() return $OutPutLoc = $sFileSelectFolder & '\settings.ini' EndFunc and then I called it into the other part like so: Case $ButtonBrowseOutputLoc $sFileSelectFolder = FileSelectFolder("Select output location", "") If Not @error Then _GetFullPath() StringReplace($OutPutLoc, "\\", "\") GUICtrlSetData($InputCheatDir, $OutPutLoc) EndIf but then it returns:'>
Developers Jos Posted July 6, 2014 Developers Posted July 6, 2014 Should be: $OutPutLoc = StringReplace($OutPutLoc, "\\", "\") Jos 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.
Srex Posted July 6, 2014 Author Posted July 6, 2014 (edited) IT WORKS NOW 'I have 1 more problem, idk who to give "answered" thingy xD so many people helped me thanks to every single one of you guys Dont worry I'll be back to bug you guys Edited July 6, 2014 by Srex
JohnOne Posted July 6, 2014 Posted July 6, 2014 I believe >this post to be the best solution. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans.
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