02-14-2007, 07:32 AM
ifi(id(10 win("Mr_B" "#32770")))
,int i n=EnumQmThreads(0 0 0 0)
,QMTHREAD* a._new(n)
,for i 0 EnumQmThreads(a n 0 0)
,,_s.getmacro(a[i].qmitemid 1)
,,str q.getwintext(id(20 win("Mr_B" "#32770")))
,,if q="None"or"Running"
,,,_s="Macro1"; _s.setwintext(id(20 win("Mr_B" "#32770")))
,,,goto START
,,else
,,,goto Second
,,,
,,;Second
,,str r.getwintext(id(22 win("Mr_B" "#32770")))
,,if r="None"or"Running"
,,,_s="Macro1"; _s.setwintext(id(22 win("Mr_B" "#32770")))
,,,goto START
,,else
,,,goto Four
,,;Four
,,str x.getwintext(id(23 win("Mr_B" "#32770")))
,,if x="None"or"Running"
,,,_s="Macro1"; _s.setwintext(id(23 win("Mr_B" "#32770")))
,,,goto START
,,else
,,,goto START
;START
int w1;err
w1=win("Notepad")
act w1
hid w1
hid- w1
Hey G. the new QM is great! i found a thread code and thought i could put it to use but so far i am out of luck :wink: if you could please help me fixs the bugs in this code it would make my day
This is what the code is SAPOSE to do.
1. When i run the Macro that this code is stored in (In this case "Macro1") it is saposed to setwintext in an edit in my dialog. The text that it sets just says "Running"
2. I had it working earlyer but there was still bugs in it.
3. It has a strange set up because it sets text on the next available Edit that = "None"or"Running"
4. "None" is the default. so ifwintext= "None" then it will setwintext into that Edit. Ifwintext= "Running" then it goes to the next available Edit.
Thanks a lot G! I hope that you have time to look over my code and point me into the right direction 8)
8)