Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / CTRL & S to save...

Author
Message
simonuk74
23
Years of Service
User Offline
Joined: 3rd Nov 2002
Location:
Posted: 11th May 2003 17:43
how would I code this, :
standard, hold left ctrl(scancode 29 ) and by pressing `s` ( code 31 ), or any key, for that matter, to get the code to run a command / function.

I have tried the following :




and this :



it seems that the scancode that is returned to the code it the fist key I press, is there a command to refresh the scaning of the keyboard, so that once it has recognised the holding of the crtl key, it then waits for the next key press ?

TIA
Andy Igoe
23
Years of Service
User Offline
Joined: 6th Oct 2002
Location: United Kingdom
Posted: 11th May 2003 17:45
If keystate(29) and keystate(31)
rem Do stuff
endIf

Pneumatic Dryll
simonuk74
23
Years of Service
User Offline
Joined: 3rd Nov 2002
Location:
Posted: 11th May 2003 17:50
Ah, thanks!

That would be not being bothered to read my manual then!

David T
Retired Moderator
23
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 11th May 2003 19:04


I can't remember the ascii value for "s".

You are the th person to view this signature.
Programmers don't die, they just Gosub without return....

Login to post a reply

Server time is: 2026-07-11 13:57:02
Your offset time is: 2026-07-11 13:57:02