12-30-2006, 10:04 AM
ARRAY(int) a
GetWindowList 0 "NOTEPAD" 1|2 0 0 a
int i
ARRAY(str)+ at
for i 0 a.len
,;if(!wintest(a[i] "window name" "window class")) continue ;;you can use this if a may contain windows that you don't need
,at[at.redim(-1)].getwintext(a[i])
for i 0 a.len
,out at[i]
Array at will be global if you declare it with +, as in this example. In other functions also insert
ARRAY(str)+ at
, and use at[0], at[1], etc instead of g_w?text.
GetWindowList 0 "NOTEPAD" 1|2 0 0 a
int i
ARRAY(str)+ at
for i 0 a.len
,;if(!wintest(a[i] "window name" "window class")) continue ;;you can use this if a may contain windows that you don't need
,at[at.redim(-1)].getwintext(a[i])
for i 0 a.len
,out at[i]
Array at will be global if you declare it with +, as in this example. In other functions also insert
ARRAY(str)+ at
, and use at[0], at[1], etc instead of g_w?text.