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.

Author
Message
D Man
22
Years of Service
User Offline
Joined: 3rd Oct 2002
Location: Germany
Posted: 17th Feb 2003 22:11
Is there any possibility to get the key currently pressed by the user if the user is not in a dark basic program?
I mean if I start a DBPro program, which starts a none DBPro program and I want to test if the user already pressed a key and which one.
"If you can't make it good
make it look good."
Bill Gates
MrTAToad
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 17th Feb 2003 22:22
You would need to get the non-DB program to send a message back to the DB program, whenever a key is pressed. Wouldn't be that hard, as long as both programs are running...

Good news everyone! I really am THAT good...
http://www.nickk.nildram.co.uk/ for great plug-ins - oh my, yes!
D Man
22
Years of Service
User Offline
Joined: 3rd Oct 2002
Location: Germany
Posted: 17th Feb 2003 22:48
How could I achieve this, if this non-DB program where...let's say Microsoft Word(or simply the notepad)?

"If you can't make it good
make it look good."
Bill Gates
MrTAToad
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 17th Feb 2003 22:53
You can only do it if its your own program (where you can define how you send data back). It wont work for, say, Word, unless you write a macro that can detect all keypresses and say, writes them to a file.

Its much easier doing it the other way around...

Good news everyone! I really am THAT good...
http://www.nickk.nildram.co.uk/ for great plug-ins - oh my, yes!
D Man
22
Years of Service
User Offline
Joined: 3rd Oct 2002
Location: Germany
Posted: 17th Feb 2003 22:56
Too bad .

"If you can't make it good
make it look good."
Bill Gates
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 18th Feb 2003 01:25
Couldn't you sub-class the window from the source program? I don't know whether you can do this to a window you don't own though.
MrTAToad
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 18th Feb 2003 10:56
No idea - never tried it...

Good news everyone! I really am THAT good...
http://www.nickk.nildram.co.uk/ for great plug-ins - oh my, yes!

Login to post a reply

Server time is: 2025-05-18 07:22:48
Your offset time is: 2025-05-18 07:22:48