08-28-2010, 05:28 PM
Macro Macro1451
-----------
In QM, copy using menu Edit -> Other formats -> first item. Then simply paste here.
ARRAY(RECT) a
RECT r
int i
;find all images
for i 1 1000000 ;;the 1000000 is just some number greater than the number of images
,if(!scan("Macro1451.bmp" 0 r 128 0 i)) break ;;find image 1, 2, and so on. Exit the loop when not found more.
,a[]=r ;;add coordinates of current image to array
;move mouse to each image
for i 0 a.len
,r=a[i] ;;store a[i] to r. Not necessary, but I like r.left better than a[i].left etc.
,mou r.left r.top
,wait 1
Quote:how can i syntax-highlight the code?
In QM, copy using menu Edit -> Other formats -> first item. Then simply paste here.