Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
getwintext....same window name....diff windows
#1
Hey, just wondering say i have 3 windows i want to getwintext of...

Win1 = "Comp1 - Windows VPC"
Win2 = "Comp2 - Windows VPC"
Win3 = "Comp3 - Windows VPC"


but the Comp1 - Comp3 could be anything.....how would i getwintext of all of them?

str s
s.getwintext(win("Windows VPC"))
out s

Works but only gets the last one active?

Any ideas how to get all of them??

And finally once it gets them can it populate them into a comboBox in a dialog?

Thanks!
#2
take a look on the last example in help for win

http://www.quickmacros.com/help/index.p ... P_WIN.html
pi
#3
ARRAY(int) a; int i; str sc sn
out "[][9]ALL VISIBLE WINDOWS"
win("" "" "" 0 0 0 a)
for(i 0 a.len)
sn.getwintext(a[i])
out "%s" sn


That does all windows visible and outs there names.....any way to do it only if the window has the words "VPC" in it?
#4
as i wrote before, take a look on the last example
pi
#5
i use vmware ...

Code:
Copy      Help
out "[][9]ALL WINDOWS OF VMWARE"
opt hidden 1
win("" "" "vmware" 0 0 0 a)
for(i 0 a.len)
,sc.getwinclass(a[i])
,sn.getwintext(a[i])
,out "%i '%s' '%s'" a[i] sc sn
pi
#6
KK got it now thanks _pi!


Forum Jump:


Users browsing this thread: 1 Guest(s)