Re: Hotkeys and win32lib apps
- Posted by Tone Škoda <tskoda at email.si> Nov 23, 2004
- 574 views
You have to use WM_SYSKEYDOWN or WM_SYSCHAR. Christian Cuvier wrote: > > I wanted to trap Alt-Home to perform some procsing of my own in a Win32 app. > Ok, just trap WM_KEYDOWN and look for VK_HOME and AltMask. Simple, and don't > forget returnValue(0) so as to avoid the default processing of the Home key. > > But this only works halfway. Using a french keyboard, this correctly > identifies the right alt key, but not the left alt key. The latter works > correctly however, as it activates menu items in the expected way. > > Do I need to set up my own event loop so that it includes the > TranslateAccelerator() API func so that I can trap these left alt-things? > > CChris > >