water Posted September 28, 2012 Share Posted September 28, 2012 Here you can find how to remove the black slide at the end of the presentation. 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 I've got rid of the black slide. I mean.... I'm still getting the same script, where it only runs the presentation and not the other application. Link to comment Share on other sites More sharing options...
water Posted September 28, 2012 Share Posted September 28, 2012 But does the presentation end now? Please try this script and tell me if you get the MsgBox.While 1 ShellExecuteWait("C:testMcLarenshopfloorPresentation1.pps") MsgBox(0, "", "Presentation finished!") WinActivate("MaxTalk") 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 28, 2012 Author Share Posted September 28, 2012 The presentation runs, but now with this error after it ends. "While 1 ShellExecuteWait(C:testMclarenshopfloorPresentation1.pps") While^ERROR error: Error in expression." Link to comment Share on other sites More sharing options...
water Posted September 28, 2012 Share Posted September 28, 2012 A " is missing after ShellExecuteWait. It should look like the code I posted in #43. 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 code below. the same as yours in #43.... While 1 ShellExecuteWait("C:testMcLarenshopfloorPresentation1.pps") MsgBox(0, "", "Presentation finished!") WinActivate("MaxTalk") WEnd Link to comment Share on other sites More sharing options...
water Posted September 28, 2012 Share Posted September 28, 2012 (edited) You can't have multiple AutoIt statements in one line! Hence it should be:While 1 ShellExecuteWait("C:testMcLarenshopfloorPresentation1.pps") MsgBox(0, "", "Presentation finished!") WinActivate("MaxTalk") WEnd 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 October 1, 2012 Author Share Posted October 1, 2012 Okay. The presentation works and the message box comes up, but the other application still doesn't load. Also, I don't really want the message box to come up.... what I would like: Presentation plays. then it ends. the other apllication loads up (for certain amount of time) then presentation plays. then it ends. then the other application loads up (for certain amount of time) and this process continues. Link to comment Share on other sites More sharing options...
water Posted October 1, 2012 Share Posted October 1, 2012 (edited) The MsgBox is just to make sure that the presentation has ended. It can be removed. So now we have to check why the other application doesn't come up. Could you please run this script the other application ("MaxTalk" ) is running? #include <Array.au3> AutoItSetOption("WinTitleMatchMode", 2) Global $aWindows = WinList("Max") _ArrayDisplay($aWindows) Edited October 1, 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 October 1, 2012 Author Share Posted October 1, 2012 It's came up with this... Row Col0 Col1 [1] MaxTalk 0x000609D6 In it's own GUI. I ran the script within a new script editor, by the way. Link to comment Share on other sites More sharing options...
water Posted October 1, 2012 Share Posted October 1, 2012 Looks good. What do you get when you run this script? AutoItSetOption("WinTitleMatchMode", 2) Global $iResult While 1 ShellExecuteWait("C:\test\McLarenshopfloorPresentation1.pps") $iResult = WinActivate("MaxTalk") MsgBox(0, "", $iResult) 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 October 1, 2012 Author Share Posted October 1, 2012 We're slowly getting there.. When i ran that script, it would run the Presentation fine and then the other application would come up but with a message box. So I took out the "MsgBoox (), "", $iResult)" And it ran preety smoothly, but the application would come up for around a second and then the presentation would come back up. So Spot on, apart from the duration of the other application ha. Link to comment Share on other sites More sharing options...
water Posted October 1, 2012 Share Posted October 1, 2012 How long do you want to show the application? Or do you want to wait for the user to press a key to continue? 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 October 1, 2012 Author Share Posted October 1, 2012 I don't want any user intervention! Er let's say 3 minutes long, and then it switches back to the presentation. Link to comment Share on other sites More sharing options...
bogQ Posted October 1, 2012 Share Posted October 1, 2012 (edited) then insertSleep(1000*60*3);1000ms 60sec 3minon new empty line just after WinActivate("MaxTalk") Edited October 1, 2012 by bogQ f1fan 1 TCP server and client - Learning about TCP servers and clients connectionAu3 oIrrlicht - Irrlicht projectAu3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related) There are those that believe that the perfect heist lies in the preparation.Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost. Link to comment Share on other sites More sharing options...
water Posted October 1, 2012 Share Posted October 1, 2012 As bogQ suggested: Insert Sleep and your script should exactly do what you want. f1fan 1 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 October 1, 2012 Author Share Posted October 1, 2012 Yup. That seems to have made it work. thanks both of you! Link to comment Share on other sites More sharing options...
water Posted October 1, 2012 Share Posted October 1, 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...
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