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 / Escape key code

Author
Message
Jordash
22
Years of Service
User Offline
Joined: 20th Jan 2003
Location:
Posted: 2nd Feb 2003 03:56
Is their any inkey()$ way to figure out if user pressed escape key when escape key quit is turned off?
John H
Retired Moderator
22
Years of Service
User Offline
Joined: 14th Oct 2002
Location: Burlington, VT
Posted: 2nd Feb 2003 04:11
Disable escapekey turns off the escape key

RPGamer

Current - RPG: Eternal Destiny : Help Wanted!
http://www.halbrosproductions.netfirms.com
Dont ask those questions! Read the help files lazy!
indi
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 2nd Feb 2003 06:19
disable escapekey


do

if escapekey() =1
do stuff here
end
endif
sync
loop

DarkSith
22
Years of Service
User Offline
Joined: 8th Nov 2002
Location: United Kingdom
Posted: 5th Feb 2003 11:26
Here, try these:
Checking if Escape Key is pressed

do
if escapekey()=1 then stuff here
sync
loop


or
Disable the escape key

DarkSith


do
disable escapekey
sync
loop

Dark Basic: My Favourite!

Login to post a reply

Server time is: 2025-08-08 11:44:50
Your offset time is: 2025-08-08 11:44:50