Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] Frequently Asked Questions > Scripting
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 05-02-2007, 03:20 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
How to refresh GUI app with changes made via object model

When script code modifies the current project via the object model, 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 action:
Code:
CreateObject("WScript.Shell").SendKeys "{F5}", True
Note: This code may need to be adjusted if F5 is not configured as a keyboard shortcut for View | Refresh (it is by default).
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is On



All times are GMT -5. The time now is 01:14 AM.


Copyright © 1999-2023 Kinook Software, Inc.