Solved

Question For JimBob

Posted on 1998-03-13
5
191 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
  • 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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

708 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now