[comp.os.msdos.misc] PAUSE key

bobz@truevision.com (Bob Zigon) (03/09/91)

How do i detect when the user has pressed the PAUSE key on the
101 key keyboard? A keycode/scancode does not seem to be generated
(atleast according to the Norton Guides).

Any hints or suggestions are appreciated.

Thanks

Bob Zigon

sguerke@brahms.udel.edu (Stephen Guerke) (03/09/91)

In article <1991Mar08.165737.16390@truevision.com> bobz@truevision.com (Bob Zigon) writes:
>How do i detect when the user has pressed the PAUSE key on the
>101 key keyboard? A keycode/scancode does not seem to be generated
>(atleast according to the Norton Guides).
>
>Bob Zigon

According to the WINN ROSCH HARDWARE BIBLE the make code for the pause
key is E1 1D E1 9D C5.  The Pause key apparantly does not generate a
break code.  (according to the tables in the book, the Pause key is
the only one that does not generate a break code - telling the bios
that it has been released - the make code tells the bios that the key
has been pressed , the break code tells it that the key has been
released).  It seems that any break code will release the pause key
:).
Hope this helps.




 

rkl@cbnewsh.att.com (kevin.laux) (03/11/91)

In article <1991Mar08.165737.16390@truevision.com>, bobz@truevision.com (Bob Zigon) writes:
> How do i detect when the user has pressed the PAUSE key on the
> 101 key keyboard? A keycode/scancode does not seem to be generated
> (atleast according to the Norton Guides).

	The scancode for Pause/Break is 0E1h.  You need to hook Int 09h
because the scancode is interpreted by the keyboard handler and puts the
handler into a loop until it gets a valid character.

-- 
________________________________________________________________________________
	R. Kevin Laux				Email: rkl1@hound.att.com
	AT&T Bell Labs				Voice: (908) 949-1160
	Holmdel, NJ 07733			Fax:   (908) 949-0959