Vindicator209 Posted September 20, 2006 Share Posted September 20, 2006 Ok, so i have a series of powerpoint shows, and i made a gui to open them one after another, back to back, to save time...but what command do i use? I tried: Run("X.pps") and FileOpen("X.pps") What do i use to get the thing open????!! [center]"When you look at old, classic games like Snake, you often put it off because it's such a simple game, but it's only when you actually try and create your own unique game from scratch, do you finally appreciate those games."[/center][center]Don't ask for answers if you haven't TRIED yet![/center][center]Most answers can be answered in the help file! Use it![/center] Link to comment Share on other sites More sharing options...
CoderDunn Posted September 20, 2006 Share Posted September 20, 2006 (edited) As stated in the AutoIt3 help file FAQ, only certain files can "Run". Try doing Run('POWER POINT EXE "PATH OF .pps"',"DIR OF POWERPOINT EXE") Hallman Edited September 20, 2006 by Hallman Link to comment Share on other sites More sharing options...
Vindicator209 Posted September 20, 2006 Author Share Posted September 20, 2006 oh yea! i forgot u need to state the program to open it with!! [center]"When you look at old, classic games like Snake, you often put it off because it's such a simple game, but it's only when you actually try and create your own unique game from scratch, do you finally appreciate those games."[/center][center]Don't ask for answers if you haven't TRIED yet![/center][center]Most answers can be answered in the help file! Use it![/center] Link to comment Share on other sites More sharing options...
Vindicator209 Posted September 20, 2006 Author Share Posted September 20, 2006 I cant figure this out.. first of all whats dir? i thought it meant the directory address: MsgBox(0,"Start","This will start show, continue?") Run('POWERPOINT.EXE X.pps',"C:\Program Files\Microsoft Office\OFFICE11\POWERPNT.EXE") [center]"When you look at old, classic games like Snake, you often put it off because it's such a simple game, but it's only when you actually try and create your own unique game from scratch, do you finally appreciate those games."[/center][center]Don't ask for answers if you haven't TRIED yet![/center][center]Most answers can be answered in the help file! Use it![/center] Link to comment Share on other sites More sharing options...
CWorks Posted September 20, 2006 Share Posted September 20, 2006 (edited) Run('POWERPOINT.EXE X.pps',"C:\Program Files\Microsoft Office\OFFICE11\")orRun('POWERPOINT.EXE X.pps',@ProgramsDir & "\Microsoft Office\OFFICE11\")hmm nope but this works change PATH-TO to the path of X.ppsRun(@ProgramFilesDir & "\Microsoft Office\OFFICE11\POWERPNT.EXE PATH-TO\X.pps")i'm so stupid it's @ProgramFilesDir not @ProgramsDir Edited September 20, 2006 by CWorks Link to comment Share on other sites More sharing options...
Vindicator209 Posted September 20, 2006 Author Share Posted September 20, 2006 yea i know how the heck could you miss that?!!i mean...totally...how could you miss the thing that has that thing with the thing...ok ill shut up now... (*wait whats the differecnce?) lol [center]"When you look at old, classic games like Snake, you often put it off because it's such a simple game, but it's only when you actually try and create your own unique game from scratch, do you finally appreciate those games."[/center][center]Don't ask for answers if you haven't TRIED yet![/center][center]Most answers can be answered in the help file! Use it![/center] Link to comment Share on other sites More sharing options...
schlitzy Posted January 24, 2007 Share Posted January 24, 2007 Hi, I tried exactly, the same thing, opening a .pps file, however, this is supposed to work on different systems with different setups and different versions of Powerpoint. Therefore, I would like to read the directory of the POWERPNT.EXE from the Registry. This is not a problem and I can start PowerPoint with the following code: $powerpnt = regread("HKEY_CLASSES_ROOT\MSPowerPoint\protocol\StdFileEditing\server","") run($powerpnt)oÝ÷ Ø©l¢^Ø^¦W°ØZºÚ"µÍ[ ][ÝÐÎÌLÔÑÔSSQIÌLÓRPÔÔÓÑÑPÑIÌLÓÑPÑLLIÌLÔÕÑTVHÎÌLÐYÙÙTYÚIÌLÐYÙÙÉ][ÝÊoÝ÷ Øz0z÷«ø¯&®¶sbb33c·÷vW'çBÒ&Vw&VBgV÷C´´Uô4Ä54U5õ$ôõBb3#´Õ5÷vW%öçBb3#·&÷Fö6öÂb3#µ7FDfÆTVFFærb3#·6W'fW"gV÷C²ÂgV÷C²gV÷C²§'Vâb33c·÷vW'çBfײgV÷C²Â3¢b3#´&vvW"Õ&W6b3#´&vvW&âç2gV÷C² I get an error message. Why? Link to comment Share on other sites More sharing options...
Danny35d Posted January 24, 2007 Share Posted January 24, 2007 Did you try ShellExecute()? AutoIt Scripts:NetPrinter - Network Printer UtilityRobocopyGUI - GUI interface for M$ robocopy command line Link to comment Share on other sites More sharing options...
MHz Posted January 24, 2007 Share Posted January 24, 2007 (edited) However, if i try$powerpnt = regread("HKEY_CLASSES_ROOT\MSPowerPoint\protocol\StdFileEditing\server","") run($powerpnt & ", C:\Bagger-Praesi\Baggern.pps")I get an error message.Why?Look at your code close with the comma inside the string. Edited January 24, 2007 by MHz Link to comment Share on other sites More sharing options...
schlitzy Posted January 24, 2007 Share Posted January 24, 2007 ShellExecute worked great! Thanks a lot! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now