PDA

View Full Version : How to refresh GUI app with changes made via object model


kinook
05-02-2007, 03:20 PM
When script (http://www.visualbuild.com/Manual/script.htm) code modifies the current project via the object model (http://www.visualbuild.com/Manual/objectmodel.htm), the GUI app may not immediately update to reflect those changes. To force a refresh of the GUI app from the underlying object model, use the following VBScript code in a Run Script (http://www.visualbuild.com/Manual/runscript.htm) action:
CreateObject("WScript.Shell").SendKeys "{F5}", True
Note: This code may need to be adjusted if F5 is not configured as a keyboard shortcut (http://www.visualbuild.com/Manual/customizekeyboard.htm) for View | Refresh (it is by default).