Hello,
In regards to LibFunc, if the lowest handle is 65556, what is the highest?
I need to cycle through window handles, looking for a particular title.
JRL helped me out with a routine that does this, but I modified it for another
macro. If the windows searched for are not found, I need the loop to exit.
If it finds the windows then it jumps out with an if statement.
Code: Select all
Repeat>GWres
Add>kk,1
// 2=Identify the handle of the window below the specified handle(GWres)
LibFunc>user32,GetWindow,GWres,%GWres%,2
//Let>Window_%kk%=%GWres%
GetWindowNames>GWres,title,class
//If>class=Shell_TrayWnd,Done
if>title=%IsOpen_Var_1%
let>IsOpen1=1
add>asd,1
endif
if>title=%IsOpen_Var_2%
let>IsOpen2=1
add>asd,1
endif
if>asd>1,Done
Until>GWres=0
Repeat>GWres
rest of macro...............
Until>???? (highest handle?)
Make sense?
Thanks.