Is there anyone, who knows how to change to a specific window when the screensaver stops? I want to return to the standard window (the director menu) even when another window/app was active before the screensaver started. Here's my script, that doesn't work :-(:
on exitFrame me
-- Handle of Screensaver:
WinHandle = baFindWindow( "" , "WellwasserBluescreen" )
if (gStatus = "Screensaver" ) then
OK = baWindowToFront( baWinHandle() )
gStatus = "Anwendung"
-- Screensaver aktiv:
if (baActiveWindow() = WinHandle) then
gStatus = "Screensaver"
go to the frame
Have you looked at baActivateWindow()?