USB Control Of Powerpoint


Closed Thread
Results 1 to 7 of 7
  1. #1
    Join Date
    Oct 2005
    Posts
    35

    Question USB Control Of Powerpoint

    Hello,

    Part of my PIC project involves the control of Powerpoint presentation slides which can be addressed by keyboard entry (1 enter, 2 enter etc.). I have set up a serial to USB converter cable and by using Serout in a loop I am able to port and verify the nesessary digits to the MCS serial communicator through the USB port.


    'Serial to USB control test

    Val = 49
    loop:

    Serout PORTE.1,N2400,[val,13]
    val=val+1
    if val = 53 then
    val = 49

    endif
    pause 2000
    goto loop


    However, when Powerpoint is set to show slides by manual control, nothing happens. A Keyboard entry changes slides but it does not respond to the USB inputs sent by the PIC. I have also tested with a numerical USB keypad, which does work. I tried different com ports. How do I get the USB input to look like a keyboard or keypad input to Powerpoint.
    Last edited by Homerclese; - 10th March 2007 at 19:29.
    Thanks,
    Homerclese

  2. #2
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898

    Default

    in my opinion, you will have to do a little application which will send commands to Powerpoint

    have a look at that
    http://officeone.mvps.org/vba.html
    http://skp.mvps.org/vb/pptvbwnd.htm
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  3. #3
    Join Date
    Oct 2005
    Posts
    35

    Question

    I didn' see anything on those sites that looked useful. I think I need a patch that will take characters input to com4 and make them look like they came from the keyboard. A USB keypad I have does what I want. What is the difference between this and characters coming from the pic Serout
    Thanks,
    Homerclese

  4. #4
    Join Date
    Feb 2003
    Posts
    432

    Default

    Quote Originally Posted by Homerclese View Post
    I didn' see anything on those sites that looked useful. I think I need a patch that will take characters input to com4 and make them look like they came from the keyboard. A USB keypad I have does what I want. What is the difference between this and characters coming from the pic Serout
    Take a look at "Accessability Options" in windows. There is an option to accept a "keyboard" input from the serial port which is intended to be used with some of the equipment used by people with severe motor disabilities who can only control things by suck/blow or eye movements etc

    Its under the "General" Tab in accessability options. "Serial Keys" Serialkey devices allow alternate access to mouse and keyboard features.

    HTH
    Last edited by keithdoxey; - 13th March 2007 at 22:04.
    Keith

    www.diyha.co.uk
    www.kat5.tv

  5. #5
    Join Date
    Oct 2005
    Posts
    35

    Question

    Thanks,
    I have investigated your suggestion with mixed results. In the Powerpoint setup screen I am able to select items in the text boxes by having the pic send ascii codes for keys 1 through 7 with return. But when in the slideshow mode there is no response. The show is set for manual control - repeating till esc key. I seem to be able to control dialog boxes but not the actual slide selections. Am I not "focused" on the show screen?
    Thanks,
    Homerclese

  6. #6
    Join Date
    Feb 2003
    Posts
    432

    Default

    Quote Originally Posted by Homerclese View Post
    Thanks,
    I have investigated your suggestion with mixed results. In the Powerpoint setup screen I am able to select items in the text boxes by having the pic send ascii codes for keys 1 through 7 with return. But when in the slideshow mode there is no response. The show is set for manual control - repeating till esc key. I seem to be able to control dialog boxes but not the actual slide selections. Am I not "focused" on the show screen?
    Well it was worth a try

    Powerpoint is a strange beast at te best of times. We used to have a problem with "Screen Burn" on CRT projectors at work and ensured that all PCs had screen savers enabled. Unfortunately it still didnt save the projectors because presenters would leave corporate powerpoint presentations on the screen usually of the first or last slide which was always the company logo.

    Powerpoint disables all screensavers so the projectors still got burnt

    Can you get your PIC to fake either a PS2 or USB keyboard instead ?

    We used to have a Kodak slide projector IR remote control that was interfaced to the cursor keys on a keyboard for controlling Powerpoint because it had better range than cordless mice and was 100% reliable.
    Keith

    www.diyha.co.uk
    www.kat5.tv

  7. #7
    Join Date
    Oct 2005
    Posts
    35

    Question

    Yes, exactly. That is what I'm trying to do. Make my USB input look like it's a USB keyboard or keypad. Is there some built in code or "tag" within these devices that makes the PC recognize them as human input devices?
    Thanks,
    Homerclese

Similar Threads

  1. USB CDC Communications for Dummies!
    By Squibcakes in forum USB
    Replies: 104
    Last Post: - 15th January 2014, 13:43
  2. Simple USB Comms Problem
    By awmt102 in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 6th January 2010, 20:17
  3. One USB keyboard to Two USB Ports
    By picnaut in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 11th June 2009, 00:04
  4. USB PIC without USB Connection
    By Tissy in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 26th December 2005, 17:39
  5. Servo Control with USB and PIC16C745
    By Alejandro in forum USB
    Replies: 2
    Last Post: - 12th September 2005, 20:06

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts