Big Brother of VBScript
I'm working with a VBA macro for M. FrontPage 2000, and I would know when the user switch between the open pages of the application. I've tried with the different events that VBA and the object model offers and I think there is no way to obtain this notification. So I've tried with PeekMessage and WM_SETFOCUS. I've no problems to detect keyboard or mouse events with my code, but I don't catch WM_SETFOCUS nor WM_KILLFOCUS:
PeekMessage(msgMessage, 0, WM_SETFOCUS, WM_SETFOCUS, 0)
I can see by Spy++ that there is a WM_SETFOCUS message sent to the child window that the user switch to, but it I can't intercept it through PeekMessage.
Are protected these messages? It is possible to receive the notification I'm interested in?
Thanks in avanced,
F. Xavier Lloré
|file: /Techref/language/basic/vbs.htm, 1KB, , updated: 2013/7/23 09:34, local time: 2019/11/14 02:16,
|©2019 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions?|
<A HREF="http://techref.massmind.org/techref/language/basic/vbs.htm"> Visual Basic</A>
|Did you find what you needed?|
Welcome to massmind.org!
Welcome to techref.massmind.org!