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 / Input to other windows porgrams.

Author
Message
Tim Ballisto
21
Years of Service
User Offline
Joined: 10th Feb 2004
Location: Right behind you.
Posted: 8th Nov 2004 04:11
In DBC, is there a way to, for example, control the mouse and keyboard, and have them send the input to other programs?

Like, instead of "if"s, you could use them as commands:
keystate 17=1
mouseclick()=1


Programs for programmers.
blanky
20
Years of Service
User Offline
Joined: 3rd Aug 2004
Location: ./
Posted: 8th Nov 2004 04:57
Uhh DarkBasic uses DirectInput, which is ONE WAY ONLY.

External devices --> Your program

There's probably some kind of API DLL that does what you want, but NO WAY can you do anything like that inside a DB program using just the DB language.

[img src="http://blanky.pt-web.net/cmd.gif"]
Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 9th Nov 2004 14:06
I beleive you can control the input via API.
Just by sending virtual messages ( simple really ), but I doubt that you will be able to have it do this while the calling thread is not active ( ie, the DB window isn't on-top ), so I think you may be outta luck there... Although, if you want to, have a look at API-Guide, that will help you find the necessary API calls.

Jess.


Team EOD :: Programmer/All-Round Nice Guy
Aust. Convention!
Tim Ballisto
21
Years of Service
User Offline
Joined: 10th Feb 2004
Location: Right behind you.
Posted: 12th Nov 2004 08:17
where is this API guide, i've already tried searching.


Programs for programmers.
Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 12th Nov 2004 12:45
Tim,
A 10 second search in Google, got me this page;

http://www.mentalis.org/agnet/apiguide.shtml

Please do try harder next time.

Jess.


Team EOD :: Programmer/All-Round Nice Guy
Aust. Convention!
Tim Ballisto
21
Years of Service
User Offline
Joined: 10th Feb 2004
Location: Right behind you.
Posted: 13th Nov 2004 03:37
sorry, I thought it was a guide on these forums.


Programs for programmers.
MSon
20
Years of Service
User Offline
Joined: 13th Jul 2004
Location: Earth, (I Think).
Posted: 13th Nov 2004 03:54 Edited at: 13th Nov 2004 03:55
Hi JessTicular

Thats Quite an Impressive Guide you Found...
Should be quite useful...
Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 15th Nov 2004 11:49
MSon,
It's good, but it's not the best.

For a fully comprehensive list of functions and all other stuff API, then you're best off looking at the MSDN Library.
Althought most of it is assuming you are using C++, so there's alot to learn before you can convert the codes and functions given ( personally, I don't know C++, but picked up what I needed to know along the way )

Jess.


Team EOD :: Programmer/All-Round Nice Guy
Aust. Convention!

Login to post a reply

Server time is: 2025-05-24 12:32:05
Your offset time is: 2025-05-24 12:32:05