maestrith / AHK-Studio

Created with AHK Studio
http://www.maestrith.com
363 stars 68 forks source link

Fix gui.xml crashes #207

Open dmtr99 opened 4 years ago

dmtr99 commented 4 years ago

I often encounter crashes caused by gui.xml

It crashes by the following error:

Error: Invalid option.
Specifically w h
"3834: Gui,%b%:Show,%pos%"

Is it possible to put this line in a Try{ }Catch{ } statement to catch this error?

If this error occured, we could replace the cause of the crash: gui.xml by a previous version and restart AHK Studio. You could even read the last opened file from the crashed gui.xml and use the latest Backup gui.xml in combination with the last opende file.

You could even tell the user that a crash occured and if it is ok to use a backup gui.xml, but from my opinion, this is not even necessary.

This would be a huge improvement.

AHK Studio is a mindblowing program, by the way, I use it a lot.

dmtr99 commented 4 years ago

I actually made a script to do this externally, but maybe you can implement the same idea inside AHK Studio, but for now users can use the following script to run AHK-Studio: https://www.autohotkey.com/boards/viewtopic.php?f=6&t=69389

rediffusion commented 4 years ago

AHK Studio is a mindblowing program.

Aha, yes!

FYI, I don't have that issue with Gux.xml.