Sign in to follow this  
Followers 0
Grantgimp

Test to see if PowerPoint is loaded

2 posts in this topic

Can anyone come up with a more reliable way of testing if PowerPoint has fully loaded in 'Slide Show' mode that is just as easy? As you can see my method relies on first screen not having black pixels in certain places that'll work for me 99% of the time. I know that there are other solutions on the forum, but these seem more complicated than mine.

#include "ProcessListProperties.au3"
#include <array.au3>
#include <GUIConstantsEx.au3>
#include <GUIComboBox.au3>
$Directory=@DesktopDir & "\Current Service"
$ApplSrce=@ProgramFilesDir & "\Microsoft Office\OFFICE11\POWERPNT.EXE /s """
Run($ApplSrce & $Directory & "\words-150608.ppt")
WinWait("PowerPoint")
While 1
If PixelGetColor(0, 100) <> 0 and PixelGetColor(0, 200) <> 0 and PixelGetColor(0, 300) <> 0 and PixelGetColor(0, 400) <> 0 and PixelGetColor(0, 500) <> 0 Then
MsgBox(0,"", "opened")
ExitLoop
Else 
ContinueLoop
EndIf
WEnd

Share this post


Link to post
Share on other sites



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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0