Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
mutiple windows with simuliar names
#12
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.


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)