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.

Newcomers DBPro Corner / What is DarkBasic's Interaction with Windows

Author
Message
Jon391
22
Years of Service
User Offline
Joined: 13th Oct 2002
Location:
Posted: 19th Oct 2002 00:21
Hi Everyone.
I am huge newbie to DarkBasic so bear with me
Are compiled Dark Basic programs normal windows
apps? why I ask this is because I am working with
another program called girder which allows a remote
control to substitute keyboard commands, however when
I use say a button on a remote, my dark basic program
does not see the keyboard letter. Does anyone have
any idea? I know its a very specific application of
Darkbasic, but and help would be very appreciated.
Mirthin
22
Years of Service
User Offline
Joined: 13th Oct 2002
Location: Land of the Rising Haggis
Posted: 19th Oct 2002 00:49
Do you use a sort of IR receiving device which is attached to the computer? If so, I think it requires windows support like a game controller. In the Control Panel there's Game Options or something like that, and you can add controllers. DB Classic will read these, but if it uses some other kind of interface, you'll have to write a DLL.
The One Ring
22
Years of Service
User Offline
Joined: 15th Sep 2002
Location: United States
Posted: 23rd Oct 2002 17:34
This is because DarkBasic programs use the DirectInput engine to process keystrokes. DirectInput basically sets up a keyboard hook to catch keystrokes fast and effectivly.

As a result, your DarkBasic apps (likely) do not process WM_CHAR, WM_KEYDOWN, or any other keystroke messages that normal Windows apps process.

You could try to read key values from the keyboard entry buffer. DB Pro has a new command to do that (I don't remember what it is though...).

Good luck!

AMD Athlon 900 768MB DDR
ATI Radeon 64MB DDR All-In-Wonder 7500, ATI XPert 128 16MB
Sound Blaster Audigy Gamer w/FireWire Support

Login to post a reply

Server time is: 2024-11-23 18:19:49
Your offset time is: 2024-11-23 18:19:49