Am 2007-01-08 schrieb Bughunter:
If you only use a DOS window, try this code:
(freebasic 0.16)
---8<-------
#include once "windows.bi"
do
If GetAsyncKeyState(16) < 0 then print "SHIFT key pressed"
If GetAsyncKeyState(17) < 0 then print "CTRL key pressed"
If GetAsyncKeyState(18) < 0 then print "ALT key pressed"
sleep 50 'only to make it slower
loop until GetAsyncKeyState(13) < 0 'Return will stop the loop
sleep
---8<-------
See also:
http://www.activevb.de/tipps/vb6tipps/tipp0070.html
--
Mit freundlichen Gren
Jgen Bors
---