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 / disable all keys how must i make that

Author
Message
nicky
23
Years of Service
User Offline
Joined: 14th Jan 2003
Location:
Posted: 15th Jan 2003 01:08
i want to make a joke with my father
but i want to make a program that disable all
control keys but how do i make that

just for fun
Terabyte
23
Years of Service
User Offline
Joined: 28th Dec 2002
Location: UK
Posted: 15th Jan 2003 15:48
simple:
disable escapekey
disable systemkeys or disable system keys i can't remember which

be carefull with the next!!!!
lock backbuffer
this stops your screen from being refreshed remember to unlock it afterwards!!!
you'll know about it if you don't

I have a word of advice...
..don't piss on an electric fence!
nicky
23
Years of Service
User Offline
Joined: 14th Jan 2003
Location:
Posted: 15th Jan 2003 16:25
thanks i will try it

indi
23
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 16th Jan 2003 02:28
sync on
sync rate 0

make object cube 1,10

do

if keystate(scancode())<>0 then msg$ = "press a key"
if keystate(scancode())=0 then msg$ = " Hey press a key"
text 10,10,msg$
sync
loop

Login to post a reply

Server time is: 2026-06-11 20:57:10
Your offset time is: 2026-06-11 20:57:10