Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Wait for active window with a splash screen
#1
I am trying to have a macro wait until a open a program and do something when the program is opened. My problem is there is a splash screen while the program fully opens. It creates the window behind the splash screen but you cannot use the program until the splash screen is gone. None of the wait commands seem to work for window created, active, etc. The program is Adobe Lightroom. The macro will be running on different machines so the wait time may not always be the same. Any ideas on a way around this?
#2
wait for splash screen window visible
wait for splash screen window destroyed

To get splashscreen window name and class, use menu Tools -> Output -> Log -> Window Events.

Macro
Code:
Copy      Help
run "$program files$\Adobe\Adobe Photoshop Lightroom 2\lightroom.exe" ;;Adobe Photoshop Lightroom 2.2
int w2=wait(30 WV win("Lightroom" "AgWinMainFrame")) ;;main window
int w3=wait(10 WV win("Bezel" "Afx:00400000:*" w2 0x800|32)) ;;splash screen
wait 60 -WV w3 ;;wait for hide

mes "Lightroom now is loaded."


Forum Jump:


Users browsing this thread: 1 Guest(s)