emulating the keyboard - Application control

John Rule johnrule at rcsprogramming.com
Tue Apr 13 15:09:15 EDT 2004


Thanks for the reply...

> you can specifically send keystrokes using AppleScript:

Yeah, I had a feeling it would be easy from Applescript. Most PowerPoint
users work on Windows, however.

There is a unique feature in XP I didn't know existed called 'Serial Keys'.
It is a little lame to tell a customer "you can control your keyboard from
your serial port" though.

JR


> Date: Tue, 13 Apr 2004 08:26:21 +0100
> From: Ian Wood <ian at azurevision.co.uk>
> Subject: Re: emulating the keyboard - Application control
> To: How to use Revolution <use-revolution at lists.runrev.com>
> Message-ID: <DD0FAEEB-8D1B-11D8-96EA-0003935A2896 at azurevision.co.uk>
> Content-Type: text/plain; charset=US-ASCII; format=flowed
>
> Is this on a Mac or on Windows?
>
> I can't help with Windows, but with Mac OS 10.3 (or 10.2 with GUI
> Scripting installed) you can specifically send keystrokes using
> AppleScript:
>
> Tell app "Powerpoint" to activate
>
> tell application "System Events"
> tell process "Powerpoint"
> keystroke "S" using {control down, shift down} -- Starts the
> slideshow from the first slide
> delay 4 -- seconds
> keystroke return -- go to next slide
> end tell
> end tell
>
> Yes, PowerPoint  uses Control instead of Command on a Mac.
>
> For more info about GUI Scripting:
> http://www.apple.com/applescript/uiscripting/
>
> Ian Wood
>
> On 13 Apr 2004, at 04:41, John Rule wrote:
>
> > Is there a native way to emulate the keyboard in another application?
> > For
> > example, 'launching' another app, and then somehow sending commands to
> > that
> > application? Specifically, I had a customer ask me if they can control
> > their
> > Powerpoint presentation from Rev. I looked through the shell command
> > set,
> > and I do not see a way to do it from there...
> >
> > I did do a search through the lists, and the closest tip I found was to
> > convert Powerpoint to 'Keynote', and then export as a .mov file. Not a
> > bad
> > idea, but not practical in my situation.
> >
> > Thanks for any info,
> > John



More information about the use-livecode mailing list