Log in

View Full Version : Key Holding help!



Hugolord
05-15-2007, 05:31 PM
Hi i know again one of my noob questions pop-up and you guys (some) are really annoyed so just if anyone feels like answering well here it goes!

I was wondering if there is a similar procedure like : If (IsFKeyDown(2))

But instead of checking the 'F' keys it checks if both Ctrl + lets say A of if alt + x are down does anyone know?

To the one who replies TY :p

[/Offtopic] I'm a Lesser Demon! yay (not sure how tho lol :P [Offtopic/]

Pentti
05-15-2007, 05:42 PM
function IsKeyDown(C: Char): Boolean;
program New;
begin
repeat
wait(20)
until(IsKeyDown('a'))
Writeln('A is down')
end.

program New;
begin
repeat
wait(20)
until(IsFunctionKeyDown(0))
Writeln('Shift is down')
end.

You should read the SCAR manual, man. :D

Hugolord
05-15-2007, 07:25 PM
Its on the Manual?! oh woops srry guys

And TYVM Pentti :D

Gratz on your 1000s!