Solved

Question For JimBob

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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Comparing dates in Delphi. Greater than/ Less than 3 150
Run video youtube webbrowse 10 61
Delphi...Split view - idea? 1 67
Delphi and Access based Enumeration 9 59
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…
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

786 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