Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

CTRL-ALT-F1 keycode

0 views
Skip to first unread message

SNIE

unread,
Sep 22, 1998, 3:00:00 AM9/22/98
to
Can anyone tell me how to generate a Ctrl-Alt-F1 and a Ctrl-Alt-F2 in a
program ?

This keystokes are used to switch from a french to a english keyboard
setting backwards and forwards under dos or dos-mode when launching KEYB FR
in the autoexec.bat

I have the command to send any scancode to DOS or Windows, but I do not know
the keycode I must generate for Ctrl-Alt-F1 or Ctrl-Alt-F2

Thanks for your contribution.
(and sorry for my bad english)

jean-franco...@wanadoo.fr
Mayotte Island (Indian Ocean)


ScottMcP

unread,
Sep 23, 1998, 3:00:00 AM9/23/98
to

It would take "keystroke" operations to do this:
Ctrl down
Alt down
F1 down
and then up, up, up.

Here's an example for sending Alt-F:
keybd_event( VK_MENU,0, 0, 0); // ALT down
keybd_event( 'F', 0, 0, 0 );
keybd_event( 'F', 0, KEYEVENTF_KEYUP, 0 );
keybd_event( VK_MENU,0, KEYEVENTF_KEYUP, 0 ); // Alt up

0 new messages