Grantgimp Posted January 3, 2010 Posted January 3, 2010 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
somdcomputerguy Posted January 4, 2010 Posted January 4, 2010 You can use the AutoIt Window Info Tool (AU3Info) to see pretty much everything that AutoIt will be able to see. - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change.
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