Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
mutiple windows with simuliar names
#13
4 some reason when i use that code i get invalid syntaxt error. but if i change it 2 this it works fine.

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])
,out at[i]
I'm having trouble with a couple of commands not responding
wait 0 WV id(2000 x)
if(IsWindowVisible(id(123 x)));err
x is the wintext ami doing some thing wrong every other command like that works but something with the if(IsWindowVisible and 0 WV 4 some reason isn't repsonding.Any suggetsions?Also once the windows are found and assigned a global varialbe is there a way 2 get the macro 2 run a Fun 4 each window found?


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)