Discussion Locked

Disable using Esc in PowerPointViewer 97

0 helpful
8 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I want to ensure that end-users can not disrupt an automatic timed slide show. The slide show starts from an ole embedded object in Access97. While it is running a number of things are happening, including the running of a KRONOS Script file that they are not supposed to see. How do I FORCE them to sit back and watch the entire show.

(Maybe even display an error message if they try to click, tab, page-down, esc, etc.)

The Access program will be on a NT PC with the bare minimums and PowerPointViewer and Access 97. The Access program will start in start up the main screen is maximized & modal; I have keypress events in place that will keep them from exploring.

8 replies

by roc180

I would trap the KeyDown Event on the OLE object and the form and have KeyCode=0 that will nullify any keystrokes they may try to enter. From there you can get as creative as you want:
If KeyCode=27 Then '27=ESC
KeyCode=0
Msgbox "Stop That"
Else
KeyCode=0
End if

Good luck users can be tricky

Neal Martinelli

by sheryl v

It was on track if I were working with a bound object, unfortunately, it's an unbound object frame and I'm still stuck. Appreciate the response tho!

by sheryl v

Still looking for solution, unfortunately, an Unbound Object frame, has no 'key' events or any other easily apparent method for trapping user events. HELP!!!!!

by Member 35772270

Have you tried creating an application with VB or C++, disable the keys that you want and use splash screens to display what you want and let Access do its thing in the background.

by sheryl v

Was able to get the kronos script to completely run in the background, so Access maintains focus, gave up on powerpoint didn't use VB, don't know C++ - yet :)
Have an image control in there that changes images on the on timer event. In any event (no pun intended) Thanks a bunch for the input!

by donq

Hay Sheryl,

I like Roc180's "Stop That" idea too. We must have our fun u know!!!

Never tried this with Esc but you might construct an AutoKeys macro that uses the RunCode Action to set Esc to a zero length string. Be sure to reset everything once your slideshow is complete. Don Quigg

by sheryl v

I already had the autokeys except they didn't work once PPT started, I have any keys except #'s, keyboard & numpad, backspace & enter causing the PC to reboot. The autokeys didn't work once PowerPoint "took over" so I ended up getting rid of using PPT as I was able to get the kronos script to completely run in the background, so Access maintained focus. I have an image control in there that changes images on the on timer event to make the 30+ seconds of data crunching seem shorter. I DO like "Stop That!" too! I will use it somewhere sometime, however, if I put that in here, while the message box is up users could do CTRL-ALT-DEL & then quit access & go somewhere else that they are not supposed to on this particular PC. Thanks for theeffort!

This discussion is closed to new replies.