Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ask about condition
#1
well i dont know where to look again, iam trying to know how to use quick macros. and now iam making simple macro.
i want macro left click when some pixel/color in specific area and also wanna make the macro looping.

int w1=act(win("mimo " "mimo "))
lef 407 450 w1 1 ;; 'mimo ...'
wait 0 C 0x6A5757 427 466 w1 1 ;; 'mimo ...'
lef 407 450 w1 1 ;; 'mimo ...'
wait 0 C 0x3785DE 566 522 w1 1
lef+ 407 450 w1 1 ;; 'mimo ...' (problem start from here) ***
wait 0 C 0x3785DE 486 519 w1 1
lef- w1 407 450 w1 ;; 'mimo ...'

when the condition met that "wait 0 C 0x3785DE 566 522 w1 1" left click (press) , i want the left click is release for condition if the color/pixel (0x3785DE) reach X Y that i have define. its like if and else. but quick macros is new for me and it makes me confuse.

in my mind this is that macros would like to run

windows active mimo
a
left click x y
if color 0x00000 x y true then left click x y
if color 1x11111 a b true then left click (pressed) a b
else color 1x11111 c d left click (release)
repeat until color 2x2222 e f true
end if
return a

please give me some advice, where should i look for condition if color in coordinate and also making condition for looping the code before reach "end condition"
#2
Do a forum search for pixel there are a lot of examples close to what your trying to do.


Forum Jump:


Users browsing this thread: 1 Guest(s)