Hi,
Once vrut.quit() is called the program stops execution, that's why the win32ui commands aren't being called. Try running the win32ui commands before vrut.quit(). This should work fine since the main vizard program is a separate process than the winviz program. So your keyboard handler should look something like this:
def mykeyboard(key):
if key == 'q':
import win32ui
window = win32ui.FindWindow('WorldvizVizardClass',None)
window.SendMessage(16,0,0)
vrut.quit()
Hope that works!
-- farshid
|