Hi Vlad,
Thanx, that got me part way there. If I'm on a top level pad of the menu this works fine but if I'm on a pad of a submenu, this only closes the submenu. I tried:
KEYBOARD "{ESC}"
KEYBOARD "{ESC}"
This didn't work either. It was like VFP ignored the second one.
I also tried, KEYBOARD '{F10}' PLAIN CLEAR, but this didn't work either. Any other ideas?
>Hi!
>
>Try: Keyboard "{ESC}"
>
>>I use timers in my main prg and forms to time them out after a certain amount of mouse and keyboard activity. This seems to work fine except when the menu is 'active'.
>>
>>For example, if I start my app and just hit {ALT} to be in the menu, the timer's Timer() event will fire (which quits the app) but the app doesn't actually shut down until I 'deactivate' the menu (i.e. press {ALT} again)
>>
>>Any ideas?
Colin Magee
Team Leader, Systems Development
Metroland Media Group Ltd.
Mississauga, Ontario, Canada
cmagee@metroland.comNever mistake having a career with having a life.