View Single Post
Old 12th November 2013, 08:03 AM   #2
Geoffm
Junior Member
Member
 
Geoffm's Avatar
 
Join Date: Aug 2013
Location: London UK
Posts: 22
Default 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 
}
You could implement 2 menu items - one to disable the tk_messageBox and one to re-enable it.

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!
Geoffm is offline   Reply With Quote