f1fan Posted September 27, 2012 Share Posted September 27, 2012 Hi All, How do I create a script that would allow a slideshow to run and then after it had finished an aplication then would show for a set duration and then this process to repeat it self continously? Not had zero/much experience in scripting. Sorry! Be preety awesome if could get this working Thanks. Link to comment Share on other sites More sharing options...
water Posted September 27, 2012 Share Posted September 27, 2012 Welcome to AuotIt and the forum!"How do I create a script that would allow a slideshow to run and then after it had finished (use RunWait) an aplication then would show for a set duration (use RunWait) and then this process to repeat it self continously? (use While/WEnd)" 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 Thank you! Aaaa, yes it was easier then I thought it would be to create. Just set up the slideshow to go through the slides around 10 seconds and then time it with how many seconds that are on the script and then sorted left to run everyday hah. Thanks! Link to comment Share on other sites More sharing options...
water Posted September 27, 2012 Share Posted September 27, 2012 Glad to be of service 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 Actually, is there anything within the script that I could create so the other application will be brought up after the Slideshow has finished? and then repeats this.. At the moment, I'm just doing the slideshow on a timer and it's not working properly. Link to comment Share on other sites More sharing options...
water Posted September 27, 2012 Share Posted September 27, 2012 Can you post the code you have so far? 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 While 1 ;loop indefinitely WinActivate("PowerPoint Slide Show - [McLarenshopfloorPresentation]") Sleep(30000) ;sleep 30 seconds WinActivate("MaxTalk") Sleep(30000) ;sleep 30 seconds WEnd Link to comment Share on other sites More sharing options...
water Posted September 27, 2012 Share Posted September 27, 2012 (edited) You could have better control if you start the PowerPoint Slide Show from within your script. Is that possible? Edited September 27, 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 27, 2012 Author Share Posted September 27, 2012 I have haven't I? I used the AutoIT tool to select the first slideof the slideshow and then copeid and pasted the name into the script. This then brings up the first page of the slideshow and then from here the automatic process from PowerPoiint then goes on untill 30 seconds when the new application starts. Link to comment Share on other sites More sharing options...
water Posted September 27, 2012 Share Posted September 27, 2012 I was thinking about something like: While 1 ShellexecuteWait("YourPowerPointPresentation.PPS") RunWait("another.exe") WEnd 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 don't understand where I would put this? Sorry! Link to comment Share on other sites More sharing options...
water Posted September 27, 2012 Share Posted September 27, 2012 How do you start the PowerPoint presentation 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 27, 2012 Author Share Posted September 27, 2012 I open up the slideshow (on first slide) and then I bring up the Task Manager and then start the script. Link to comment Share on other sites More sharing options...
water Posted September 27, 2012 Share Posted September 27, 2012 This could by done by your script too. Then it is much easier to wait until the presentation has finished and to start the second program. 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 huh? I don't understand. I don't mind opening up the slideshow this way and then starting the script (once I've done this, then it won't be touched again unless a problem occurs) Just want it so when the SlideShow finishes the other program loads up. Then when that's done, it goes back to the slideshow and so on... Link to comment Share on other sites More sharing options...
water Posted September 27, 2012 Share Posted September 27, 2012 That's exactly the problem. How do you determine that the presentation has finished when you start it manually? If started by the script function ShellexecuteWait automatically returns to the script when the presentation has finished. Therefore I suggest to start the presentation by the AutoIt script. You could even let the user select the presentation etc. 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 Okay... where do I put that new bit of script into my existing script? Link to comment Share on other sites More sharing options...
water Posted September 27, 2012 Share Posted September 27, 2012 Replace WinActivate("PowerPoint Slide Show - [McLarenshopfloorPresentation]")withShellExecuteWait("yourpresentation.pps")and remove the Sleep statements that follow, 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 It says it cannot find the presentation.... While 1 ;loop indefinitely ShellExecuteWait("McLarenshopfloorPresentation.pps") WinActivate("MaxTalk") WEnd I've also tried While 1 ;loop indefinitely ShellExecuteWait(" PowerPoint Slide Show - [McLarenshopfloorPresentation]") WinActivate("MaxTalk") WEnd Link to comment Share on other sites More sharing options...
water Posted September 27, 2012 Share Posted September 27, 2012 Then you'll have to specify the while path to the presentation like "C:presentationsMcLarenshopfloorPresentation.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...
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