Solved

Question For JimBob

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

Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

696 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