Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Array Help
#1
Is there anything wrong with this. This is just an example. Im still learning.

Code:
Copy      Help
,str a = "Notepad"
,rep
,,ARRAY(str) s.create(10)
,,int i
,,for i 0 10
,,,if(!IsWindowVisible(id(15+a))); err
,,,break
,,,but+ id(15+i "Notepad")
#2
it's better to set your var initializations outside the rep/for statment.
you dont need the rep if your going to use 'for'.

im not sure what youre trying to do with the window info and trying to add a number to a string but here's basically what i was talking about.


Code:
Copy      Help
str a = "Notepad"
ARRAY(str) s.create(10)
int i
for i 0 10
,if(!IsWindowVisible(id(15+a))); err
,break
,but+ id(15+i "Notepad")
An old blog on QM coding and automation.

The Macro Hook


Forum Jump:


Users browsing this thread: 1 Guest(s)