Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
If>Color>Goto?
#1
I'm a little new to the whole QM thing (A week or two now) But I've been coding in pascal based auto programs for year's. Anywho, I'm a little stuck when it come's to this procedure. I don't know how to really express it properly, But basically I need it to repeat one part until it detect's a certain color in a place, then goto the other part and repeat that til a color shows up and cycle on until the macro is stopped. The lines Bracketed with "?__?" are the parts I'm having issues with =(

Macro Test
Code:
Copy      Help
int w1=act(win("- - VMware Workstation" "VMUIFrame"))
lef 440 425 w1

rep
,;G1
,lef 200 800 w1
,key "Test" Y
,'CA{}
,if (Color:0x29AAD6) goto G2?

rep
,;G2
,lef 410 425 w1 Y
,key "Test2" Y
,'CA{}
,?if (?Color:0x29AAD6?) goto G1?

I know it's pretty simple, But I have no idea what I'm doing =S I've been stuck on it for a few day's now I haven't been able to find anything helpful =(

Thanks ahead for helping out a noobcake like myself =D
#2
Macro Macro2068
Code:
Copy      Help
int w1=act(win("- - VMware Workstation" "VMUIFrame"))
lef 440 425 w1

;G1
rep
,lef 200 800 w1
,key "Test" Y
,'CA{}
,if(pixel(200 800 w1)=0x29AAD6) break

rep
,lef 410 425 w1
,key "Test2" Y
,'CA{}
,if(pixel(410 425 w1)=0x29AAD6) goto G1


Forum Jump:


Users browsing this thread: 1 Guest(s)