I have an application which always changes the title of the window depending on what file is open in it. It always follows this convention:
Title - Dolphin Publisher - (Path to file)
e.g.
Spiders Web - Dolphin Publisher - (C:\Users\OJohnson\OneDrive - RNIB\Desktop\Mass Ingest With Links\700433\ncc.html)
The bit that's always constant is:
Dolphin Publisher
I just need the script to wait until this window is open before it proceeds.
I've tried:
WaitWindowOpen>Dolphin*
and
WaitWindowOpen>Publisher*
But it just sits there and does nothing. I thought that perhaps the window was appearing before the script had a chance to get to the WaitWindow Open so I tried:
Code: Select all
IfWindowOpen>Dolphin*
GoTo>Build
Else
WaitWindowOpen>Dolphin*
Endif
Label>Build
With a file open in the program, Code Builder tells me that there are two windows open with the names:
Spiders Web - Dolphin Publisher - (C:\Users\OJohnson\OneDrive - RNIB\Desktop\Mass Ingest With Links\700433\ncc.html)
Publisher
I've tried using either of these with and without and asterix an nothing seems to make a difference. The only thing that works is if I enter the full windows name but this changes every time and I do not know what the title will be as that is generated by the content of the file that is open.
Any ideas?