DigDeep Posted October 21, 2016 Posted October 21, 2016 Not sure if this is actually possible or not. I am running the code TEST.EXE from a location. After the actions, changing the text of the button "TEST" to "DONE". Until here all looks fine and I am able to see the button with the new TEXT applying the GUISETState to verify. But I want to have the code with these changes to be saved to a different directory $Dest. And here is the issue. If I am copying the file from Source to new Destination... the new file does not show the changes made. It looks like the changes made are within the code itself but does not apply to the actions. Is there any way, I can save the file with the new changes to a different directory? Please Help... $Src = @WorkingDir & '\Test.exe' ; Getting Script running location $Dest = @DocumentsCommonDir & '\Test Folder' DirCreate($Dest) $Button = GUICtrlCreateButton("Test", 40, 64, 187, 33) GUICtrlSetData($Button, "Done") ; Changing Text of the GUI Button Sleep(1000) FileCopy($Src, $Dest, 1) ; Copy Source file with the new changes to Destination Directory
l3ill Posted October 21, 2016 Posted October 21, 2016 (edited) Normally if you want buttons, settings etc to be saved between settings you save them to an INI file. See my sig for an example. Or did I misunderstand your situation...? Edited October 21, 2016 by l3ill My Contributions... SnippetBrowser NewSciTE PathFinder Text File Manipulation FTP Connection Tester / INI File - Read, Write, Save & Load Example
DigDeep Posted October 21, 2016 Author Posted October 21, 2016 The reason I am changing TEXT in the GUI Button and trying to save the code to a different location with the new changes made so that I can launch the code later from the new location and it should run showing the Button Text with the changes made. Hope I am not confusing here. Not sure of the INI part. I'll check that once...
l3ill Posted October 21, 2016 Posted October 21, 2016 In that case the ini file would have to follow the code. ( be part of the package ) My Contributions... SnippetBrowser NewSciTE PathFinder Text File Manipulation FTP Connection Tester / INI File - Read, Write, Save & Load Example
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