A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Powerpoint, Publisher and Visio » Powerpoint
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Keyboard or MouseClick event in SlideShow Mode



 
 
Thread Tools Display Modes
  #1  
Old July 13th, 2008, 07:16 PM posted to microsoft.public.powerpoint
Mike
external usenet poster
 
Posts: 1
Default Keyboard or MouseClick event in SlideShow Mode

Hello,

can someone please help me with the following?

How can I make PowerPoint in SlideShow mode react to a keyboard or
mouse-click event? KeyUp/Down/Pressed are for forms only. And there seems to
be no equivalent to the OnKey method that is available in Excel VBA.

The scenario is the following: Each slide in the slide show shows two
pictures for the user to choose. Each slide is therefore timed for about 60
seconds during which the user should make his choices. There are no buttons
or anything else on a slide. The Macro should recognize which key or mouse
button the user has pressed, e.g.key "A" or left mouse button for the left
picture, and key "B" or right mouse button for the right picture. These are
saved in a variable and then shown to the user on the last slide.

Is there anything in VBA for PowerPoint to recognize which button was
pressed?


Thanks very much,
Mike


  #2  
Old July 14th, 2008, 02:33 AM posted to microsoft.public.powerpoint
Chirag
external usenet poster
 
Posts: 595
Default Keyboard or MouseClick event in SlideShow Mode

Hi,

One of the ways to know which key was pressed is to subclass the slide show
window. You need to know the concepts behind Window and message handling and
Windows APIs.

Another way is to create keyboard shortcuts for the duration of your slide
show or those slides. Much of the ground-work is already done for you in
Shortcut Manager for PowerPoint add-in at
http://officeone.mvps.org/ppsctmgr/ppsctmgr.html. You need to use Shortcut
Manager SDK to enable you to handle keyboard shortcuts.

- Chirag

PowerShow - View multiple PowerPoint slide shows simultaneously
http://officeone.mvps.org/powershow/powershow.html

"Mike" wrote in message
...
Hello,

can someone please help me with the following?

How can I make PowerPoint in SlideShow mode react to a keyboard or
mouse-click event? KeyUp/Down/Pressed are for forms only. And there seems
to be no equivalent to the OnKey method that is available in Excel VBA.

The scenario is the following: Each slide in the slide show shows two
pictures for the user to choose. Each slide is therefore timed for about
60 seconds during which the user should make his choices. There are no
buttons or anything else on a slide. The Macro should recognize which key
or mouse button the user has pressed, e.g.key "A" or left mouse button for
the left picture, and key "B" or right mouse button for the right picture.
These are saved in a variable and then shown to the user on the last
slide.

Is there anything in VBA for PowerPoint to recognize which button was
pressed?


Thanks very much,
Mike


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 03:32 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.