Older Version Newer Version

Alyce Alyce Jan 23, 2006

open "test" for window as #1
#1 "trapclose [quit]"
notice "Watch the mainwin, then minimize the window."
timer 1000, [check]
wait
[quit] close #1:end
 
[check]
handle = hwnd(#1)
calldll #user32, "IsIconic",_
handle as ulong,_   'handle of window
result as boolean   'returns true if window is minimized
if result then
print "Is minimized."
else
print "Is not minimized."
end if
wait

- Alyce Alyce Jan 23, 2006