Sorry im quite new to AHK. I'm trying to create a loop command that will play an MP4 and then close when the title of the software we use is present. It almost works and seems to activate when needed, just doesn't loop and stay open. Any help would be greatly appreciated:
Code: Select all
SetTitleMatchMode, 2
Loop,
{
IfWinExist, Breeze Systems Photobooth -
{
WinGetTitle, Title, Breeze Systems Photobooth -
if title contains video_processing
{
Run, C:\Users\PaulC\Google Drive\Pauls Work\MyFunPhotoBooth\Templates\Mirror\Animations\MFPB Videos\2b.mp4 --fullscreen
Sleep, 7000
WinClose Movies & TV
Exit,
}
}
}