Jump to content

from .Au3 to powerpoint


Recommended Posts

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

Link to comment
Share on other sites

  • Moderators

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

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.

Link to comment
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

Link to comment
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!

#)

Link to comment
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!

#)

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
Link to comment
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

Link to comment
Share on other sites

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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...