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 / What Keys?

Author
Message
Cookyzue
21
Years of Service
User Offline
Joined: 12th Oct 2003
Location: Who Cares?!
Posted: 18th Oct 2003 02:15
The only keys i can set are Cltrl, space, up, down etc. how do i use the others like a key or f10?
andrew11
22
Years of Service
User Offline
Joined: 23rd Feb 2003
Location: United States
Posted: 18th Oct 2003 02:47
First, you run this program:



You hold the button you want to work, then remember the number on screen, and exit. Then, you put this into your program when controlkey() or spacekey() would go.



where keycode is the number you saw.

For example,


3 is the code for the 2 button.

"All programmers are playwrites and all computers are lousy actors" -Anon
Cookyzue
21
Years of Service
User Offline
Joined: 12th Oct 2003
Location: Who Cares?!
Posted: 18th Oct 2003 05:15
thanks andrew11!

Login to post a reply

Server time is: 2025-05-21 14:10:54
Your offset time is: 2025-05-21 14:10:54