Solved

Question For JimBob

Posted on 1998-03-13
5
199 Views
Last Modified: 2010-04-06
Hi there,

i paid 20 of my points to look at an answer you gave to the question on "Hotkeys".
[qid=10037742]

but unfortunately you have sent the answer by email to the original poster & i didn't get any info.
i am wondering whether you would be willing to give the answer again (for another 50 pts :-)
[in case you need to send an email send it to ahalya@iname.com]

0
Comment
Question by:ahalya
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 5

Expert Comment

by:JimBob091197
ID: 1360478
Hi

I have mailed you the sample app, but you needn't have worried about the points.

JB
0
 
LVL 7

Author Comment

by:ahalya
ID: 1360479
Thx a lot for your mail.

However, what'll happen if i'm playing a "DOS game" when my boss comes around :-)

Ok,  my question is:
KBHooks  seem to work only for win applications.  How can i go about catching the keystrokes when a "DOS" session is active ?

Awarding points is to say thank you. please even if you don't have comment about my above DOS dilemma, please hit answer with a blank. i just want to award you your grade !

Thx again.
 
0
 
LVL 5

Accepted Solution

by:
JimBob091197 earned 50 total points
ID: 1360480
Hi

I'm afraid that I don't know how to trap keys when in DOS.  Keyhooks are only for Windows (or a DOS window), but not DOS in full-screen mode.

Cheers,
JB
0
 
LVL 7

Author Comment

by:ahalya
ID: 1360481
Jim,

oops, i didn't explain myself clearly.

i wanted to how to trap keys from a "DOS Window" in Win95.
Your sample program works ONLY when the active window is not a "DOS window".
When i have a DOS window active pressing the Hotkeys doesn't do anything.

Hotkey isn't working for me regardless of whether it's DOS full screen or DOS Window.

Thx anyway,
s.


btw,
regarding capturing keys DOS (is it still alive :-), i have done it in the past. You write a TSR and hook KBIntVec using the SetInterruptVector  function in TP7.  Unlike its' windoze counterpart, that "really" captures the KB.

0
 
LVL 5

Expert Comment

by:JimBob091197
ID: 1360482
Hi

I see.  I thought the hook would trap keys in a DOS "Window" because Explorer shortcuts work from a DOS Window.  I have a shortcut to my screensaver (Ctrl+Alt+S) which does work from a DOS "Window."  I didn't try it with SetWindowsHookEx...  ;-)

JB
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question