Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[solved] reset int w and a.findff to avoid w1 and a1...etc
#6
do your function perform at the same time or 1 after the other?
>>Yes

you can make the w variable into a global variable
Then that same w variable(window handle) would be available to use in all your functions without declaring it again
>>Will try this.

your could also pass it to the function as an argument when you run the function
>>Will learn more.

somehow i get the feeling you might need to read more in qm help
>> I do try, but it's hard for me to find answers there. I often find I can only get solutions by coming to the forum. Just recently, Gintaras gave me an answer that I would never discover on my own. EVER. lol. I had to use a reverse for loop to make array.remove(element) work.

I have coding experience in pascal from highschool from I'm not a coder by trade.

Do you understand what this line does?
int w=win("Mozilla Firefox" "Mozilla*WindowClass" "" 0x4)
>> yes

Is there a way to "reset" the w or a so that teach time I activate a window, it can be referred to as just "w" and each time I find an acc.object, it's just "a"?


I'll try illustrate the problem better.

I need to find an accessible object to select a section of the screen. After that, I MAY or MAY NOT need to grab another accessible object (2nd object), followed again by I MAY or MAY NOT need to grab another accessible object (3rd object).

Depending on what I do, I may need to address that 3rd object as a1 or a2. That's where the code potentially breaks. If I were able to "reset" the a so the reference is always to a - not a1, a2, etc then I will have stability.

Does that make more sense?


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)