getasynckeystate() had what I needed :)
Now I've got another stupid question.. Is it possible to draw anything directly onto the desktop/over active windows? Sort of like a superlayer on top of everything (look at control panel > display > settings > identify monitors - the numbers showing there, that's what I mean) - and if so, what would be needed to do this?
Now I've got another stupid question.. Is it possible to draw anything directly onto the desktop/over active windows? Sort of like a superlayer on top of everything (look at control panel > display > settings > identify monitors - the numbers showing there, that's what I mean) - and if so, what would be needed to do this?
'prints out keys hit/pressed in win32, irregardles of what is focused Framework BRL.RamStream Import BRL.StandardIO Import pub.win32 Extern "win32" Function GetAsyncKeyState(character) EndExtern Local loop = True While loop Delay 40 For Local i = 8 To 222 Local state = getasynckeystate(i) Select state Case 32767 Print "special key hit: "+Chr(i)+" ("+i+") "+state Case 32768 Print "special key down: "+Chr(i)+" ("+i+") "+state Case -32767 Print "key hit: "+Chr(i)+" ("+i+") "+state If i = 27 Then loop = False Case -32768 Print "key down: "+Chr(i)+" ("+i+") "+state EndSelect Next Wend