xG00BERx Posted November 12, 2013 Share Posted November 12, 2013 When I use the command Run ( "C:\Program Files (x86)\AssistUO\AssistUO.exe" ) If the Autoit file that I double click to run is on my desktop it will generate all new files like it would If I had never ran the program before on my desktop giving me errors and other funky things... If I put the AutoIt file inside the same folder as where the Run Directory is it will do fine and loads fine because it uses the old files that it needs to use and such... I am wondering how i can leave my AutoIt file on my desktop but where it will generate the files and use the files where the path is set rather then trying to sit there and regenerate everything. I hope somebody understands and I thank you for your time -xG00BERx Link to comment Share on other sites More sharing options...
Danyfirex Posted November 12, 2013 Share Posted November 12, 2013 Use @ProgramFilesDir instead. @ProgramFilesDir & "AssistUOAssistUO.exe" saludos Danysys.com AutoIt... UDFs: VirusTotal API 2.0 UDF - libZPlay UDF - Apps: Guitar Tab Tester - VirusTotal Hash Checker Examples: Text-to-Speech ISpVoice Interface - Get installed applications - Enable/Disable Network connection PrintHookProc - WINTRUST - Mute Microphone Level - Get Connected NetWorks - Create NetWork Connection ShortCut Link to comment Share on other sites More sharing options...
Developers Jos Posted November 12, 2013 Developers Share Posted November 12, 2013 Set the workdir parameter in the Run() statement to the location the files are located. Jos Danyfirex 1 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...
Moderators Melba23 Posted November 12, 2013 Moderators Share Posted November 12, 2013 xG00BERx,That description of your problem is about as much use as a chocolate fireguard. In fact as you could eat a chocolate foreguard - less use. You say if you place the script in the Run directory (whatever that means) it works - have you tried setting the workingdir parameter to that path so that the script knows where to look if it is not actually within it? M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
xG00BERx Posted November 13, 2013 Author Share Posted November 13, 2013 xG00BERx, That description of your problem is about as much use as a chocolate fireguard. In fact as you could eat a chocolate foreguard - less use. You say if you place the script in the Run directory (whatever that means) it works - have you tried setting the workingdir parameter to that path so that the script knows where to look if it is not actually within it? M23 What I mean by placing it in tht Directory si actually placing the file with all this code inside of it in that directory physically going to the Program files assistUo and so forth.... Thats when it works if I keep it on my desktop it will get messed up. Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted November 13, 2013 Moderators Share Posted November 13, 2013 xG00BERx,Which is what I imagined you probably meant. So have you tried what Jos and I suggested and set the workingdir parameter? M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area 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