?
Solved

Question For JimBob

Posted on 1998-03-13
5
Medium Priority
?
201 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 200 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

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…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

752 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