15th October 2013, 05:39 AM | #1 |
Senior Member
Professional user
Join Date: Jun 2006
Posts: 102
|
Please help me save some time
A small, insignificant problem:
each time I open an old AC3D file to see what's inside and look around a little, as I close it back to check the next one I get the question "There are unsaved changes. Save before exiting?" even if I didn't touch a thing but the point of view (which as far as I know doesn't get saved anyway). Well, in so many years I managed to contrive quite a lot of .ac models (never counted them all, but it must be a 4-digit figure), most of them now deeply buried in the fogs of past. Answering "no thanks" only once is a cinch but doing it a hundred times becomes slightly annoying. Does anyone know a way around? Thanks! |
12th November 2013, 08:03 AM | #2 |
Junior Member
Member
Join Date: Aug 2013
Location: London UK
Posts: 22
|
Re: Please help me save some time
The message you see are made by tk_messageBox. There is a fix I posted under the forum "AC3D Scripts and Mods" called "Disable tk_messageBox using global variable".
This replaces tk_messageBox with a function which always returns 'no' (or Yes or Cancel or whatever the button you need to press is labelled). You should of course only replace tk_messageBox while you are performing a long series of changes. Perhaps this function attached to a menu item (in a Tcl script) might help. Code:
proc autoloadsave {} { rename tk_messageBox tk_messageOriginal proc tk_messageBox {args} { return "No" } # # ... do all your scripted operations which require reply No from the save? box # rename tk_messageBox {} rename tk_messageOriginal tk_messageBox } While the tk_messageBox is disabled some other warnings will not appear, possibly using the response you programmed to perform an undesirable action - user beware! |
14th November 2013, 06:26 AM | #3 |
Senior Member
Professional user
Join Date: Jun 2006
Posts: 102
|
Re: Please help me save some time
Thanks Geoffm, I think it should do. Maybe I'll use it just for one huge tide-up session, then back to normality.
I owe you at least 4 days*) of my lifetime *) no kidding: 2 secs to click "no" x ~3000 files... |
|
|