Win32::IE::SlideShow - show and manipulate your slides on IE
use Win32::IE::SlideShow; my $show = Win32::IE::SlideShow->new; $show->set( @slides ); while ( $show->has_next ) { $show->next; sleep 1; }
How do you present your slides? PowerPoint isn't so bad, but creating PowerPoint slides is a bit tedious. A bunch of HTML pages (which, of course, can be created by various perl scripts) with a JavaScript controller may be nice if you don't care writing JavaScript, but, as we're perl mongers, why not use perl to control slides, too? Generally speaking, Mech-ing is the best and portable but today I'm going to use Win32::OLE and Internet Explorer to get a bit more complete control.
creates an object and invokes IE if necessary. You can pass several options to fine tune the appearance of IE:
Both can be used to hide other windows but TheaterMode shows some controller(s).
adjust size/position of the IE window.
If set this to true, IE stays on top.
takes an array of complete HTML pages to show, or an array of formatted texts if you provide an on-the-fly converter with set_callback (see below).
If you prefer, you can provide a code reference to convert a formatted text into an HTML page on the fly.
returns the number of slides, which may be used to iterate the slides, or to provide some progress indicator.
moves an internal pointer to the first slide, and shows it, though you usually don't need to use this.
shows the slide which the pointer currently points, and moves the pointer to the next slide and returns a current "page" number, which you may want to pass to a progress indicator, or use as a base to move to another page with "goto" method.
returns true while the object has slide(s) to show yet.
shows the previous slide.
returns the current page number (which starts from 1).
moves the internal pointer to an appropriate slide and shows it.
closes the IE window (if necessary).
HTML::Display::Win32::IE
Kenichi Ishigaki, <ishigaki@cpan.org>
Copyright (C) 2008 by Kenichi Ishigaki.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Win32::IE::SlideShow, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Win32::IE::SlideShow
CPAN shell
perl -MCPAN -e shell install Win32::IE::SlideShow
For more information on module installation, please visit the detailed CPAN module installation guide.