Ah, that's a bug in Simba.simba, it should be:
SCAR Code:
function IsFKeyDown(FKey : integer) : boolean;
begin
if not InRange(FKey,1,12) then
raiseexception(erCustomError,'FKey not in range 1..12');
result := IsKeyDown(VK_F1 + FKey - 1);
end;
For now, you can use IsKeyDown(VK_F10).

Originally Posted by
Cazax
IsFKeyDown is true when you press the key, not when it's already pressed(the event of KeyDown and KeyUp, not only KeyDown) so 25 milliseconds is too fast to press a key. Try wait(500) and press F10 many times.
EDIT: Hmm it's not working either...
No, it's true when the key is down