f1fan Posted September 27, 2012 Author Share Posted September 27, 2012 (edited) Okay... getting there. It brings up the presentation. But now it brings up just the screen with "rehearse timings" and not the slideshow. While 1 ;loop indefinitely ShellExecuteWait("C:testMcLarenshopfloorPresentation1.ppt") WinActivate("MaxTalk") WEnd Edited September 27, 2012 by f1fan Link to comment Share on other sites More sharing options...
water Posted September 27, 2012 Share Posted September 27, 2012 You have saved the ppt file as well as a pps (self contained presentation), right? My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
f1fan Posted September 27, 2012 Author Share Posted September 27, 2012 Aaaa yes. Sorry I've got that working now.... Now the problem is when the PowerPoint finishes the other application doesnt load up and the Powerpoint just carries on... While 1 ;loop indefinitely ShellExecuteWait("C:testMcLarenshopfloorPresentation1.ppt") WinActivate("MaxTalk") WEnd Link to comment Share on other sites More sharing options...
water Posted September 27, 2012 Share Posted September 27, 2012 As your code above shows you still call the PPT. Open the PPT, set tzhe presentation properties so the presentation runs only once and then exits, save it as PPS. Call this PPS in your script. This way when the presentation has finished ShellExecuteWait ends and the next statement can be executed. My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
f1fan Posted September 27, 2012 Author Share Posted September 27, 2012 I've done this, and came back with file cannot be found... I save it as a PPS (Powerpoint Slide Show) added the PPS onto the script... also configured so would exit after 1 show of the slideshow... While 1 ;loop indefinitely ShellExecuteWait("C:testMMcLarenshopfloorPresentation1.pps") WinActivate("MaxTalk") WEnd Link to comment Share on other sites More sharing options...
water Posted September 27, 2012 Share Posted September 27, 2012 Isn't this a typo:"C:testMMcLarenshopfloorPresentation1.pps" My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
f1fan Posted September 28, 2012 Author Share Posted September 28, 2012 Ooops. Yeh sorry about that! So it runs..to the end of the slideshow and then it ends. While 1 ;loop indefinitely ShellExecuteWait("C:testMcLarenshopfloorPresentation1.pps") WinActivate("MaxTalk") WEnd Link to comment Share on other sites More sharing options...
water Posted September 28, 2012 Share Posted September 28, 2012 Does this mean that all problems are solved now? My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
f1fan Posted September 28, 2012 Author Share Posted September 28, 2012 Sorry, I should of been more informative. The first part is fine, but it doesn't load up the 2nd application... and thus the continous loop doesn't happen.... Link to comment Share on other sites More sharing options...
water Posted September 28, 2012 Share Posted September 28, 2012 I would suggest the same approach as with the PowerPoint presentation - start the application from within the loop. My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
f1fan Posted September 28, 2012 Author Share Posted September 28, 2012 What do you mean? Sorry, I had no experience with scripting before.. if could show me an example, be real helpful. Thanks Link to comment Share on other sites More sharing options...
water Posted September 28, 2012 Share Posted September 28, 2012 (edited) How do you start the application you want to activate withWinActivate("MaxTalk")right now? Edited September 28, 2012 by water My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
f1fan Posted September 28, 2012 Author Share Posted September 28, 2012 The current script.... "While 1 ;loop indefinitely ShellExecuteWait("C:testMcLarenshopfloorPresentation1.pps") WinActivate("MaxTalk") WEnd" Link to comment Share on other sites More sharing options...
water Posted September 28, 2012 Share Posted September 28, 2012 I mean: With "WinActivate" you try to activate an already running application. How do you start this application? My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
f1fan Posted September 28, 2012 Author Share Posted September 28, 2012 When I run the script, it brings up the presentation runs that and just stays on the "end of slideshow, press exit". I've tried opening the other application so it's there on the screen, but it still doesn't go to the other application and it just runs the presentation... Link to comment Share on other sites More sharing options...
water Posted September 28, 2012 Share Posted September 28, 2012 Looks like a configuration problem with PowerPoint. I'm no PowerPoint guru but I think it should be possible to end the presentation without the need to click a button. My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
water Posted September 28, 2012 Share Posted September 28, 2012 To automatically exit you deactivate an option. Taken from Google: "It's actually a PowerPoint option (weird that they set this as the default!). To turn it off: Open PowerPoint and go to Tools > Options > View > SlideShow and click off all three options. This will eliminate the right clicking/popup issue as well as eliminate the "end of slide show" screen." My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
f1fan Posted September 28, 2012 Author Share Posted September 28, 2012 Yup. I did all this... still same problem Link to comment Share on other sites More sharing options...
water Posted September 28, 2012 Share Posted September 28, 2012 Which version of PowerPoint do you run? My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
f1fan Posted September 28, 2012 Author Share Posted September 28, 2012 2003. 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