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 Discussion / HELP DISABLING KEYS!!!!!!

Author
Message
NachoMan
22
Years of Service
User Offline
Joined: 14th Apr 2003
Location: United Kingdom
Posted: 30th Jun 2003 22:11
i really need help on how to disable keys!
how can you disable the normal keys such as "f" or "p"
and how can you stop people from exiting your game by stopping alt+f4 working? I NEED HELP!!!!

Nick
BlackXStudios
21
Years of Service
User Offline
Joined: 14th Jun 2003
Location: Canada
Posted: 30th Jun 2003 22:12
Um... I dont know if this would work, dissablekey$()="f" or it might be dissablekey()="f"

Iam probley wrong though.

http://members.lycos.co.uk/pawliukc/logo_site.gif
www.blackxstudios.tk
NachoMan
22
Years of Service
User Offline
Joined: 14th Apr 2003
Location: United Kingdom
Posted: 30th Jun 2003 22:55
no, there is no command like disablekey() - shame though! nice try thnx

any more suggestions? it can work within db, but as soon as it is a .exe file alt+f4 works!

Nick
betpet
22
Years of Service
User Offline
Joined: 16th Jan 2003
Location: United Kingdom
Posted: 1st Jul 2003 13:27
Why not enable the key but map it to do nothing? Or am I talking rubbish? :-s
The Darthster
22
Years of Service
User Offline
Joined: 25th Sep 2002
Location: United Kingdom
Posted: 1st Jul 2003 13:51
Surely by default keys like 'f' or 'p' do nothing until you write code to make them do something? I'm not sure about the others, but there might be a disable systemkeys() command somewhere.

Once I was but the learner,
now, I am the Master.
FiShFuN4eVeR
22
Years of Service
User Offline
Joined: 2nd Feb 2003
Location: Netherlands
Posted: 1st Jul 2003 14:29
Yes, the disable systemkeys command disables keys such as alt-F4, disable escapekey disables the ESC key doh If you don't code the keys like 'f' and 'p', they don't do anything

Lets make free games!
Download them at www.fishsoft.tk
koolaid
22
Years of Service
User Offline
Joined: 26th Jan 2003
Location: Cyberspace
Posted: 1st Jul 2003 18:29
true isnt it f or d wont do anything unless you code it to do something right or am i talking s$it

KOOLAID

Login to post a reply

Server time is: 2025-05-19 13:47:02
Your offset time is: 2025-05-19 13:47:02