AutoGUI not working as intended anymore - "Show/Hide Preview Window" broken
AutoGUI not working as intended anymore - "Show/Hide Preview Window" broken
I'm having some trouble with AutoGUI, as the "Show/Hide Preview Window" button is not working anymore. As soon as I create a new project with a blank GUI, it works for this specific file. Other, existing files don't work anymore. I've seen some other, not answered threads in here. Maybe someone is so kind to help in this matter?
Re: AutoGUI not working as intended anymore - "Show/Hide Preview Window" broken
I forgot: to reproduce you open AutoGUI, create a new GUI. add a button or any other element and save the file. When you close and re-open, it should be impossible to open the preview. Also, in the top tab, where the filename is displayed, the icon to its left changes from a blank document symbol to a document symbol with a purple-ish "H" inside.
I hope this helps
I hope this helps
Re: AutoGUI not working as intended anymore - "Show/Hide Preview Window" broken
Code: Select all
Re: AutoGUI not working as intended anymore - "Show/Hide Preview Window" broken
If you are referring to "Editor Mode" and "Design Mode", my understanding is that you should be saving the GUI as a .session, not just saving the GUI, if you want to work on it later. The Saved sessions are .session versus .ahk. Then you would load the session.
However, I have run into problems with multiple saved sessions, where this feature stopped working for unknown reasons. Even deleting and then unzipping updated versions of AutoGUI didn't help. In those situations, you could import your GUI, that was saved as a .ahk.
This then works to get back the GUI, where you can play with it in "Design Mode", as long as you saved it as a .ahk. It will not help to recover the .session files created by AutoGUI. I would suggest saving the GUI as both a .session and a .ahk, to make sure that if anything happens, you can always recover it and work on it with AutoGUI later. Just a workaround, I'm sure or hope there is a better way.
However, I have run into problems with multiple saved sessions, where this feature stopped working for unknown reasons. Even deleting and then unzipping updated versions of AutoGUI didn't help. In those situations, you could import your GUI, that was saved as a .ahk.
Code: Select all
"File", "Import", and then "Parse Script".
This then works to get back the GUI, where you can play with it in "Design Mode", as long as you saved it as a .ahk. It will not help to recover the .session files created by AutoGUI. I would suggest saving the GUI as both a .session and a .ahk, to make sure that if anything happens, you can always recover it and work on it with AutoGUI later. Just a workaround, I'm sure or hope there is a better way.
Re: AutoGUI not working as intended anymore - "Show/Hide Preview Window" broken
Looks like there's some confusion going on here.
- Scripts generated by the GUI designer are not saved in a special file format. If you want to reopen it later in the GUI designer, you have to inform AutoGUI to do so by going to File > Import GUI.
- The session file is simply a list of all opened filenames, also indicating the active file. In the same way, when you save a session in a web browser, only the addresses are saved, not the page contents.
- Scripts generated by the GUI designer are not saved in a special file format. If you want to reopen it later in the GUI designer, you have to inform AutoGUI to do so by going to File > Import GUI.
- The session file is simply a list of all opened filenames, also indicating the active file. In the same way, when you save a session in a web browser, only the addresses are saved, not the page contents.
Sessions should be saved in "AutoGUI\Sessions" or (if there is no permission to write in the folder) "%APPDATA%\AutoGUI\Sessions". If not, they will not appear in the Sessions submenu, and they can only be loaded from there. I have to substitute the save dialog in this case, because it allows the session file to be saved elsewhere.SOTE wrote:I have run into problems with multiple saved sessions, where this feature stopped working for unknown reasons.
Re: AutoGUI not working as intended anymore - "Show/Hide Preview Window" broken
If I understand you correctly, you meant sessions to just be links to presently opened GUIs that you are working on, so the file should always be saved as .AHK. If the person wants to play with it in "Designer Mode" later, then File > Import GUI > Parse Script. That's pretty much how I do it.Alguimist wrote:Looks like there's some confusion going on here.
- Scripts generated by the GUI designer are not saved in a special file format. If you want to reopen it later in the GUI designer, you have to inform AutoGUI to do so by going to File > Import GUI.
- The session file is simply a list of all opened filenames, also indicating the active file. In the same way, when you save a session in a web browser, only the addresses are saved, not the page contents.
Sessions should be saved in "AutoGUI\Sessions" or (if there is no permission to write in the folder) "%APPDATA%\AutoGUI\Sessions". If not, they will not appear in the Sessions submenu, and they can only be loaded from there. I have to substitute the save dialog in this case, because it allows the session file to be saved elsewhere.SOTE wrote:I have run into problems with multiple saved sessions, where this feature stopped working for unknown reasons.
I think where people possibly get confused is thinking sessions was a saved format, because when first designing the GUI, you can come back to it before closing AutoGUI. Also, Parse Script says (Not Recommended) which likely refers to Windows Cloning (that can be used for Non-AHK programs). However, the File > Import GUI > Parse Script option works for .AHK scripts and your own AHK scripts made with AutoGUI, allowing you to go back into "Designer Mode" anytime later to make more changes.
Anyway, your program is very good, and is a good way to make GUIs.
Re: AutoGUI not working as intended anymore - "Show/Hide Preview Window" broken
I was tripped up by this as well. Brand new to AHK and working on my first "program". One more note for others that are new to AutoGUI and are getting stuck with F11 "Show/Hide Preview Window" not working.
You need to close the .AHK file BEFORE doing File > Import GUI > Parse Script > your.AHK file. If you dont close from the file tabs near the bottom first it will fail to parse with no message.
To the Author of AutoGUI, "thank you". Its difficult to get started on your first projects in AHK if one is not a software developer. Your program is extremely helpful and I would probably have given up without it.
You need to close the .AHK file BEFORE doing File > Import GUI > Parse Script > your.AHK file. If you dont close from the file tabs near the bottom first it will fail to parse with no message.
To the Author of AutoGUI, "thank you". Its difficult to get started on your first projects in AHK if one is not a software developer. Your program is extremely helpful and I would probably have given up without it.
- manehscripts
- Posts: 126
- Joined: 03 May 2019, 16:10
Re: AutoGUI not working as intended anymore - "Show/Hide Preview Window" broken
Thank you!Todd L wrote: ↑19 May 2019, 09:45I was tripped up by this as well. Brand new to AHK and working on my first "program". One more note for others that are new to AutoGUI and are getting stuck with F11 "Show/Hide Preview Window" not working.
You need to close the .AHK file BEFORE doing File > Import GUI > Parse Script > your.AHK file. If you dont close from the file tabs near the bottom first it will fail to parse with no message.
To the Author of AutoGUI, "thank you". Its difficult to get started on your first projects in AHK if one is not a software developer. Your program is extremely helpful and I would probably have given up without it.
-----------------------------------------------------------
Stop to think, shut up to resist, and act to win!
Stop to think, shut up to resist, and act to win!
Re: AutoGUI not working as intended anymore - "Show/Hide Preview Window" broken
Has the issue with show/hide preview window in autogui been resolved in recent updates, and are there any workarounds for this problem?Todd L wrote: ↑19 May 2019, 09:45Insta ProI was tripped up by this as well. Brand new to AHK and working on my first "program". One more note for others that are new to AutoGUI and are getting stuck with F11 "Show/Hide Preview Window" not working.
You need to close the .AHK file BEFORE doing File > Import GUI > Parse Script > your.AHK file. If you dont close from the file tabs near the bottom first it will fail to parse with no message.
To the Author of AutoGUI, "thank you". Its difficult to get started on your first projects in AHK if one is not a software developer. Your program is extremely helpful and I would probably have given up without it.
I think it's a valuable tool, and I'd like to use it effectively for my AHK projects.
Re: AutoGUI not working as intended anymore - "Show/Hide Preview Window" broken
This did not work for me. It simply does nothing.You need to close the .AHK file BEFORE doing File > Import GUI > Parse Script > your.AHK file
However when I run the saved ahk script for the GUI and clone it with the Window Cloning Tool, it produces an editable GUI.
But on my first use of it there was one missing widget out of ten. So, not 100% reliable.
I use the version made for AHK v2: https://github.com/samfisherirl/Easy-Auto-GUI-for-AHK-v2
Who is online
Users browsing this forum: No registered users and 9 guests