Big Brother of VBScript
See also:
Questions:
Dears,
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: 2005/8/11 23:33, local time: 2008/7/4 22:22,
38.103.63.16:LOG IN
|
| ©2008 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? Please DO link to this page! Digg it! <A HREF="http://www.piclist.com/techref/language/basic/vbs.htm"> Visual Basic</A> |
| Did you find what you needed? |
|
o List host: MIT, Site host massmind.org, Top posters @20080704 Apptech, Jinx, Xiaofan Chen, David VanHorn, Alan B. Pearce, Bob Axtell, William \Chops\ Westfield, Cedric Chang, Gerhard Fiedler, bean, * Page Editors: James Newton, David Cary, and YOU! * Roman Black of Black Robotics donates from sales of Linistep stepper controller kits. * Ashley Roll of Digital Nemesis donates from sales of RCL-1 RS232 to TTL converters. * Monthly Subscribers: Shultz Electronics, Larry Williams, David VanHorn, Bryan Whitehouse, Timothy Weber, David Challis. Peter Todd. on-going support is MOST appreciated! * Contributors: Neil Narwani, David Cary, Elemer AM Nyiry, Philip J Taylor, Gus Calabrese of Omegadogs.com, Gautama Venegas, Patrick B. Murphy, William Chops Westfield, Peter Todd, Leslie Ellis |
|
.