Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Disabling Escape key

365 views
Skip to first unread message

Nick

unread,
Jul 24, 2000, 3:00:00 AM7/24/00
to
Anyone know how to disable the escape key so that a user is forced to exit
by a predefined route?

I have a client who MUST show caveats at the end of a presentation to remain
within his industry's rules.

Thanks in advance

Nick

PK Huntzinger

unread,
Jul 24, 2000, 3:00:00 AM7/24/00
to
Nick,
Check the thread a couple of weeks ago on "keyboard block" and see if
any of those suggestions (the serious ones, at least) will do for you.

Kathy

Steve Rindsberg

unread,
Jul 24, 2000, 3:00:00 AM7/24/00
to
That reminds me ... thanks, PK.

Oh Shyaaaaaammmmmmmm .....?

Once you've killed the keyboard with that nasty little trick of yours, is it
possible (via another call to the same DLL) to get it back? Had a look for
this in MSKB but I quickly got buried in C code that haven't a clue how to
read. ,-)


--
Steve Rindsberg, PowerPoint MVP
PPT FAQ - http://www.rdpslides.com/pptfaq
RnR PPTools - http://www.rdpslides.com/pptools
ZAP! for service bureaus - http://www.rdpslides.com/zap

PK Huntzinger <ka...@tsc.com> wrote in message
news:397C7EE8...@tsc.com...

Shyam Pillai

unread,
Jul 25, 2000, 3:00:00 AM7/25/00
to
Steve,

> Once you've killed the keyboard with that nasty little trick of yours,
> is it
> possible (via another call to the same DLL) to get it back?

I just wish it were that easy... but it isn't :

I tapped into the Win 95/98 keyboard driver to invoke the 'disable'
function, which does not take any arguments, using rundll32.exe. Now
windows invokes this call only under two situations:
1) when the system is shutting down and keyboard input is no longer
desired.
2) when the system launches a full screen ms-dos app.

The function basically restores the default keyboard interrupt (9) to the
original keyboard handler. If you invoke the disable function is invoked
in 95/98 & open a full screen dos session the keyboard will function
perfectly.

Now the enable function of the keyboard driver takes a couple of
arguments - address of the keyboard event callback function & virtual-key
state array which contains the state of virtual keys. The hitch lies in
getting the address of the keyboard event handler without writing code.
Hence I've been unble to work out a commandline for restoring it. When I
do, I'd be glad to post it.


--
Regards
Shyam Pillai
Please reply to the newsgroup only

http://home.onestop.net/shyam
http://officetips.homepage.com

Steve Rindsberg

unread,
Jul 25, 2000, 3:00:00 AM7/25/00
to
> The function basically restores the default keyboard interrupt (9) to the
> original keyboard handler. If you invoke the disable function is invoked
> in 95/98 & open a full screen dos session the keyboard will function
> perfectly.

Ah, that's a neat one to know. I'm not sure why, but ... <g>

> Now the enable function of the keyboard driver takes a couple of
> arguments - address of the keyboard event callback function & virtual-key
> state array which contains the state of virtual keys. The hitch lies in
> getting the address of the keyboard event handler without writing code.

Bingo. That's where I ran into the wall. You too? Man, that makes me feel
lots better. <g>

Shyam Pillai

unread,
Jul 25, 2000, 3:00:00 AM7/25/00
to

If the intent is to take care of the accidental Escape key...

Try cranking up the slowkeys setting in accessibility options.

Control Panel|Accessibility options|Keyboard tab
Check Use filter keys. Click Settings..
In filter options check 'Ignore quick keystrokes and slow down the repeat
rate' option
Click 'Settings'
In the 'Slow keys' frame, increase the 'Keys must be held down ' option to
the max value (2) seconds
Click OK, OK & Ok

Now the user would have to keep the Esc key pressed for 2 seconds to quit
out of the show.


--
Regards
Shyam Pillai
Please reply to the newsgroup only

http://home.onestop.net/shyam
http://officetips.homepage.com

"Steve Rindsberg" <drop...@someplace.else> wrote in message
news:u7E745b9$GA....@cppssbbsa02.microsoft.com...


> That reminds me ... thanks, PK.
>
> Oh Shyaaaaaammmmmmmm .....?
>

> Once you've killed the keyboard with that nasty little trick of yours,
is it

Austin Myers

unread,
Jul 25, 2000, 3:00:00 AM7/25/00
to

Steve,

I still think it's easier (cheaper?) to buy a programmable keyboard. <g>
About $30.

Austin Myers
PowerPoint MVP Team

Shyam Pillai

unread,
Jul 25, 2000, 3:00:00 AM7/25/00
to
Steve,
I do have working prototype of a keyboard handler for both the main
powerpoint window as well as the Slide Show window which can filter out
keys. This can also be made to assign shortcut keys to run user created
macros ( I like this feature - lazy that I am). Can be used to override
the default behaviour of the PowerPoint shortcut/accelerator keys.
Includes a work around for the 5 min restriction in Kiosk mode. All this
functions well however it is not in a presentable end user format
currently. If you would like to have a look I'd be glad to mail you a copy
when I'm done working on it. Intend to post it on the site when done but
still too early days for posting in it's present form.

Steve Rindsberg

unread,
Jul 25, 2000, 3:00:00 AM7/25/00
to
I *love* this guy!

--
Steve Rindsberg, PowerPoint MVP
PPT FAQ - http://www.rdpslides.com/pptfaq
RnR PPTools - http://www.rdpslides.com/pptools
ZAP! for service bureaus - http://www.rdpslides.com/zap

Shyam Pillai <Sh...@Asia.com> wrote in message
news:OrTClOl9$GA....@cppssbbsa02.microsoft.com...


> If the intent is to take care of the accidental Escape key...
>
> Try cranking up the slowkeys setting in accessibility options.
>
> Control Panel|Accessibility options|Keyboard tab
> Check Use filter keys. Click Settings..
> In filter options check 'Ignore quick keystrokes and slow down the repeat
> rate' option
> Click 'Settings'
> In the 'Slow keys' frame, increase the 'Keys must be held down ' option to
> the max value (2) seconds
> Click OK, OK & Ok
>
> Now the user would have to keep the Esc key pressed for 2 seconds to quit
> out of the show.
>
>

> --
> Regards
> Shyam Pillai
> Please reply to the newsgroup only
>
> http://home.onestop.net/shyam
> http://officetips.homepage.com
>

Steve Rindsberg

unread,
Jul 25, 2000, 3:00:00 AM7/25/00
to

I'd love to see it, Shyam. I may not be able to get around to peeking for a
while, though, so if you'd rather wait until you've whipped it further into
shape, just shoot it along whenever you like. Thanks.

--
Steve Rindsberg, PowerPoint MVP
PPT FAQ - http://www.rdpslides.com/pptfaq
RnR PPTools - http://www.rdpslides.com/pptools
ZAP! for service bureaus - http://www.rdpslides.com/zap

Shyam Pillai <Sh...@Asia.com> wrote in message

news:OCdiypl9$GA....@cppssbbsa02.microsoft.com...


> Steve,
> I do have working prototype of a keyboard handler for both the main
> powerpoint window as well as the Slide Show window which can filter out
> keys. This can also be made to assign shortcut keys to run user created
> macros ( I like this feature - lazy that I am). Can be used to override
> the default behaviour of the PowerPoint shortcut/accelerator keys.
> Includes a work around for the 5 min restriction in Kiosk mode. All this
> functions well however it is not in a presentable end user format
> currently. If you would like to have a look I'd be glad to mail you a copy
> when I'm done working on it. Intend to post it on the site when done but
> still too early days for posting in it's present form.
>

0 new messages