Sign in to follow this  
Followers 0
Paulie

from .Au3 to powerpoint

9 posts in this topic

If i wanted to view a powerpoint presentation after running an .au3 compiled to .exe, how would i do it without like the powerpoint startup screen and stuff, just play the slide show, and that was it,

how would i do that?

ty

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

If i wanted to view a powerpoint presentation after running an .au3 compiled to .exe, how would i do it without like the powerpoint startup screen and stuff, just play the slide show, and that was it,

how would i do that?

ty

I'm not sure if he ever posted anything on it, but you might do a search for LxP+PowerPoint. He was big into PowerPoint, and quite active on the forum, with a wealth of knowledge, before school/teaching took over his time.

Not really an answer, but maybe some help if he did.

Edit:

The second one, Jdeb gives an example of how to show:

http://www.autoitscript.com/forum/index.ph...8&hl=PowerPoint

http://www.autoitscript.com/forum/index.ph...2&hl=PowerPoint

Edited by SmOke_N

[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

Share this post


Link to post
Share on other sites

Thanks Smoke, Those links gave me an idea, however, me and my no0biness with command lines and special ways to run prgrams and whatever it is that JDeb was talking about was WAY beyond my understanding, :">

it was so beyond me, that I was unsure as to how to mod it to work with my ppt,

all my stab-in-the-dark guesses return errors, and i dunno how to do this

problem is, I need it to run the ppt directly in show form, (preferably) without the 3 min loading time of the ppt program itself.

I do not know where on the comp the user is going to have the files, but i know the .exe and the .ppt are in the same place, so i think i'll need to figure out how to use "@ScriptDir" in the running of the ppt

I need direction :D

ty

Share this post


Link to post
Share on other sites

Very Simple Question.

1st you have to save the ppt presentation as a pps file.

(File>Save As... From File Type select Powerpoint Slideshow)

Then you can just double-click the pps file you just created!

#)

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

Very Simple Question.

1st you have to save the ppt presentation as a pps file.

(File>Save As... From File Type select Powerpoint Slideshow)

Then you can just double-click the pps file you just created!

#)

Thanks! Now i understand the difference between ppt and pps

Now i just need to figure out how to make it auto run when you click the button on the popup GUI or press the space bar Hotkey

Edited by Paulie

Share this post


Link to post
Share on other sites

*Bump*

Could someone please help me

I just need to know how to make a script (or modify smoke's examples) to fit my code with my ppt/pps presentation, and so the file will run as long as in the script dir

PLEASE help me

This project is due tommarow(sp)

ty

Share this post


Link to post
Share on other sites

#8 ·  Posted (edited)

Could you post both presentation and AutoIt scripts here and I'll see what I can do.

#)

okay, heres autoit code

CODE

#include <GUIConstants.au3>

;---Hotkeys---

Hotkeyset("{ESC}", "Force_Quit")

Hotkeyset("{SPACE}", "Skip_intro")

;---Variables---

Global $button_[4], $label_[4], $Intro_label_[4], $left, $top_[4], $number, $i, $n,$intro_button_[1]

;---Intro Gui build---

WinMinimizeAll()

$intro = GuiCreate("", @DesktopWidth+5, @DesktopHeight, -1,-1, $WS_POPUP, $WS_EX_TOPMOST)

GUISetBkColor(0x00000)

GUISetState()

IntroWords(1, 100, 0, 250, 10, 250, 550, 200, "The Tragedy of...", 50, 500, "Signature", 0xff0000)

IntroWords(2, 225, 0, 175, 10, 175, 1000, 400, "Romeo and Juliet", 100, 500, "Signature", 0xFFFFFF)

IntroWords(3, 600, 1024, 425, -10, 425, 500, 50, "Created By: Paul Sandels", 20, 500, "Signature", 0xFFFFFF)

$Intro_button_[0] = GuiCtrlCreatebutton("Press ""Space"" to Begin", 500, 700, 200, 30)

GuiSetState()

;---Display/detect---

While 1

$message = GUIGetMsg()

If $message = $GUI_EVENT_CLOSE then exitloop

If $message = $Intro_button_[0] then Skip_intro()

Wend

;---Fuctions---

Func IntroWords($round, $top, $left, $limit, $steps, $lessthan, $width, $height, $label, $size, $weight, $font, $color)

$Intro_label_[$round] = GUICtrlCreateLabel($label, $left, $top, $width, $height)

GUICtrlSetFont( -1, $size, $weight, 0, $font)

GuiCtrlSetcolor(-1, $color)

For $left = $left to $limit step $steps

Sleep(75)

Sleep(10)

GUICtrlSetPos($Intro_label_[$round], $left, $top, $width, $height)

Sleep(10)

Next

Sleep(500)

EndFunc

Func Force_Quit()

Exit 0

EndFunc

Func Skip_intro()

GUISetState(@SW_HIDE)

Run(@comSpec & " /c start @Scriptdir & "R&JPaulSandels.ppt"", "", @SW_HIDE)

Endfunc

Powerpoint (Whole thing in one slide) :D Edited by Paulie

Share this post


Link to post
Share on other sites

#9 ·  Posted (edited)

This may be too late to help... but you could look into the PowerPoint Presentation Viewer.

It's considerably lighter-weight than the full program. And I just tested it and if you run it as

PPTVIEW.exe "YourPowerPointPres.ppt"
then it will open it up and launch you straight to it :D Edited by exodius

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0