Hi everyone
I was wondering if someone has a example as how I can capture the Key combo of Ctl & Alt & Insert (almost like the Ctrl, Alt and Delete combo) as I would like to use this to load a "hidden" menu with in my program
if someone has the code for the Ctrl & alt and delete then I could adapt that
Meany thanks :)
Capture Ctl & Alt & Insert
-
- Posts: 2958
- Joined: Jun 02, 2015 16:24
Re: Capture Ctl & Alt & Insert
Hello,
maybe you can try this from D.J.Peters. I used it times ago, but I don't remember well what I got. It will work for 32bits anyway. I don't know for 64. And in any case you can ask the author if you think it does the job, he is a cool man :)
viewtopic.php?f=7&t=2289&p=16566#p16566
maybe you can try this from D.J.Peters. I used it times ago, but I don't remember well what I got. It will work for 32bits anyway. I don't know for 64. And in any case you can ask the author if you think it does the job, he is a cool man :)
viewtopic.php?f=7&t=2289&p=16566#p16566
Re: Capture Ctl & Alt & Insert
Code: Select all
#include "fbgfx.bi"
dim as integer specialKeyPressed
while not multikey(fb.SC_ESCAPE)
if multikey(fb.SC_CONTROL) and multikey(fb.SC_ALT) and multikey(fb.SC_INSERT) then
if specialKeyPressed = 0 then
specialKeyPressed = 1
print "specialKey Pressed"
end if
else
if specialKeyPressed = 1 then
specialKeyPressed = 0
print "specialKey Released"
end if
end if
sleep 1
wend
Print "End"
Re: Capture Ctl & Alt & Insert
Thanks for the advice guys. would this work on Linux? (and I know I am pushing it but would it work on DOS?)
Re: Capture Ctl & Alt & Insert
My piece of code works on linux. Can't say anything about DOS.
Re: Capture Ctl & Alt & Insert
Ok I’ll try it and let you know :)