This works for me:
`Load in required DLL - This is a Window's System API DLL that is basically used to control most things to do with the Window's themselves.
user32 As Integer = 1
Load DLL "user32.dll",user32
`Get handle ( unique ID ) to the calling ( this ) window
hwnd As DWord
hwnd = Call DLL(user32,"GetActiveWindow")
do
`Check if this Window is "iconic" ( minimised )
iconic = Call DLL(user32,"IsIconic",hwnd)
If iconic <> 0
End
EndIf
loop
Maybe you just forgot to loop it
[center]int N30F15H,a=1; do { N30F15H++; } while (a==1);

[center]