I have looked and seen some info on minimizing windows. I would like to minimize a window and then once minimize detect it's minimized so it does not keep trying to minimize the window.
The thing I am missing and can't find is some why to detect that the window is now minimized and then skip that part of code unless it's not minimized.
This is what I have so far and everytime it executed it trys to minimize the window even though it's been minimized. I have it keep checking so that if the window is not minimized to minimize it.
label>startofcode
IfWindowOpen>C:\Downloads,min,z1
goto>z1
srt>min
WindowAction>2,C:\Downloads
end>min
label>z1
more code.
goto>startofcode
minimize window and then detecting it's minimized
Moderators: JRL, Dorian (MJT support)
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
GetWindowHandle>C:\Downloads,hWnd
LibFunc>user32,IsIconic,r,hwnd
If>r=0
//window is NOT minimized
Else
//window IS minimized
Endif
LibFunc>user32,IsIconic,r,hwnd
If>r=0
//window is NOT minimized
Else
//window IS minimized
Endif
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?