for as this:
Code: Select all
For a=0 To 3:m+50
OpenWindow(a,m,m,150,100,"",#PB_Window_MinimizeGadget)
Next
ourThreadID = GetCurrentThreadId_()
Repeat:Select WaitWindowEvent()
Case #PB_Event_CloseWindow:Quit = 1
Default:foregroundThreadID = GetWindowThreadProcessId_(GetForegroundWindow_(), 0)
If (foregroundThreadID <> ourThreadID)
Debug 9
;...
EndIf
EndSelect:Until Quit = 1