On Wed, 16 Jan 2008 16:42:12 +0100, Jawade wrote:
> How can I detect the ****ft, Control and Alt key in FreeBASIC 32-bit?
The MultiKey(scancode) function re****ts the status of a given key.
The scancodes you want are:
Control: &h1D
Left ****ft: &h2A
Right ****ft: &h36
Alt: &h38
Note that the function returns TRUE (-1) if the key is pressed, otherwise
FALSE (0). I usually define those hex values as constants, to make the
code easier to read: CONST CtrlKey = &h1D...
This is all in the FreeBASIC manual. You should have the file FB-manual-
chm-12.dec.2007.chm. In Linux, you need a CHM viewer to read it; which
one depends on your desktop environment. In any of the Debian-family
distros, just do a Synaptic search on 'CHM viewer'.


|