aleph01 Posted October 7, 2014 Share Posted October 7, 2014 I've successfully used ShellExecute in the past, which just perplexes me all the more. The following code gives me an error: This file does not have a program associated with it for performing this action. ShellExecute ("C:\Program Files (x86)\Microsoft Office\Office14\POWERPNT.EXE", "C:\Users\keitht\Desktop\New Microsoft PowerPoint Presentation.ppsx", "", "Show", @SW_MAXIMIZE) It seems that the action in the error is the verb Show in the code, and it's true that powerpnt.exe has no "Show" verb, the slideshow (.ppsx) does. The slideshow is currently opening in Edit mode. How do I get it to open as a slideshow? Thanks, _aleph_ Meds. They're not just for breakfast anymore. Link to comment Share on other sites More sharing options...
JohnOne Posted October 7, 2014 Share Posted October 7, 2014 Try... ShellExecute ("C:\Users\keitht\Desktop\New Microsoft PowerPoint Presentation.ppsx", "", "", "Show", @SW_MAXIMIZE) AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
aleph01 Posted October 7, 2014 Author Share Posted October 7, 2014 JohnOne, Thanks for the suggestions, but I'm getting the same error. It suggests I set up a file association. .ppsx is currently set up to open with PowerPoint. I thought you had to give the executable as your first parameter. _aleph_ Meds. They're not just for breakfast anymore. Link to comment Share on other sites More sharing options...
JohnOne Posted October 7, 2014 Share Posted October 7, 2014 Leave the verb blank. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
aleph01 Posted October 7, 2014 Author Share Posted October 7, 2014 That did it! Thanks, JohnOne! Working script: ShellExecute ("C:\Users\keitht\Desktop\New Microsoft PowerPoint Presentation.ppsx", "", "", "", @SW_MAXIMIZE) Thanks again _aleph_ Meds. They're not just for breakfast anymore. Link to comment Share on other sites More sharing options...
JohnOne Posted October 7, 2014 Share Posted October 7, 2014 Ace. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. 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