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 / Using CTRL and ALT

Author
Message
FieldDoc
23
Years of Service
User Offline
Joined: 30th May 2003
Location: London, UK
Posted: 23rd Jun 2003 22:57
In my game, I would like to use the key combination [CTRL+X]. Is this possible and if so, how do I use it?
Life is like a penis:
When it's soft you can't beat it, when it's hard you get screwed.
Andy Igoe
23
Years of Service
User Offline
Joined: 6th Oct 2002
Location: United Kingdom
Posted: 23rd Jun 2003 23:11
I think this will work.



Pneumatic Dryll
FieldDoc
23
Years of Service
User Offline
Joined: 30th May 2003
Location: London, UK
Posted: 24th Jun 2003 00:19
Thanks PD...works like a charm! May I ask you a question? I heard that you had included a font with one of your games (I think the font was called Jedi something or other). How do include a font and install it on the users PC if you want to use a font that may not be installed as standard on some PCs?

Life is like a penis:
When it's soft you can't beat it, when it's hard you get screwed.
andrew11
23
Years of Service
User Offline
Joined: 23rd Feb 2003
Location: United States
Posted: 24th Jun 2003 00:26
Just move it into the C:\Windows\FONTS\ folder. Or if you are really daring, edit the registry.

"All programmers are playwrites and all computers are lousy actors" -Anon
Click Here!!!
TheCyborg
23
Years of Service
User Offline
Joined: 6th Oct 2002
Location: Denmark
Posted: 24th Jun 2003 00:44
Someone send this to me once (don't remember who..):
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

You can register a font (temporarily) like this:

Load DLL "gdi32.dll",1
success = call dll(1,"AddFontResourceA","MyFont.TTF")
Delete DLL 1

and remove it:

Load Dll "gdi32.dll",1
call dll 1,"RemoveFontResourceA","MyFont.TTF")
Delete DLL 1

The variable returns the number of Fonts that were installed. In this case (TTF-Files)
either 1 or 0. If the function returns "0" you can skip the RemoveFontResource part,
although the font will not be removed anyway (unless you overwrote the original font).

Nothing special yet --> http://thecyborg.lunaticsworld.com/
andrew11
23
Years of Service
User Offline
Joined: 23rd Feb 2003
Location: United States
Posted: 24th Jun 2003 01:10
Oh.. thanks.. I didn't know that.

"All programmers are playwrites and all computers are lousy actors" -Anon
Click Here!!!
TheCyborg
23
Years of Service
User Offline
Joined: 6th Oct 2002
Location: Denmark
Posted: 24th Jun 2003 01:13
NP :-P

Nothing special yet --> http://thecyborg.lunaticsworld.com/

Login to post a reply

Server time is: 2026-07-17 19:34:05
Your offset time is: 2026-07-17 19:34:05