bonjour ..... j'aurais besoin d'un peu d'aide
label>start
wait>3
label>debut
wait>1
press F8
if>colorpixel=,suite
repeat>debut
label>suite
wait>1
press F1
...
I would like to make a macro. Repeat "press f8" until the programme find the good color "1118482" in the pixel position "508,590". If he din't find it he restart "debut", if he find it he go to "suite"
help please.
aide please :°)
Moderators: Dorian (MJT support), JRL
- Bob Hansen
- Automation Wizard
- Posts: 2475
- Joined: Tue Sep 24, 2002 3:47 am
- Location: Salem, New Hampshire, US
- Contact:
Hi Olivier!
Trying changing FROM:
Trying changing FROM:
TO:label>start
wait>3
label>debut
wait>1
press F8
if>colorpixel=,suite
repeat>debut
label>suite
wait>1
press F1
...
Lines with changes are in bold red.label>start
wait>3
label>debut
wait>1
press F8
GetPixelColor>508,590,Color
If>%Color%=1118482,suite
Goto>debut
label>suite
wait>1
press F1
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!
Bob
A humble man and PROUD of it!
thanks Bob .....
label>debut
wait>1
press F8
GetPixelColor>508,590,Color
If>%Color%=1118482,suite
Goto>debut
label>suite
This is the good macro for my exemple, but is it possible to pu a time inside.
wait>1
label>debut
play this macro 2 minutes after goto,fin
press F8
Getpixelcolor>508,590,color
if>%color%=1118482,suite
goto>debut
label>suite
...
goto>debut
label>fin
...
label>debut
wait>1
press F8
GetPixelColor>508,590,Color
If>%Color%=1118482,suite
Goto>debut
label>suite
This is the good macro for my exemple, but is it possible to pu a time inside.
wait>1
label>debut
play this macro 2 minutes after goto,fin
press F8
Getpixelcolor>508,590,color
if>%color%=1118482,suite
goto>debut
label>suite
...
goto>debut
label>fin
...
- Bob Hansen
- Automation Wizard
- Posts: 2475
- Joined: Tue Sep 24, 2002 3:47 am
- Location: Salem, New Hampshire, US
- Contact:
The quick answer is YES, but need clarification on this line:
1A. play this macro....2 minutes after.....goto, fin
1B. play this macro 2 minutes......after goto, fin
1C. play this macro.......2 minutes after goto.......fin
2. More clarification needed about "goto,fin":
2A. after goto ???? , ...then finish? (goto fin)
2B. or, is this really Goto>fin
3. What does "this macro" mean on that line?
1. Need some punctuation to make sense of what you wantplay this macro 2 minutes after goto,fin
1A. play this macro....2 minutes after.....goto, fin
1B. play this macro 2 minutes......after goto, fin
1C. play this macro.......2 minutes after goto.......fin
2. More clarification needed about "goto,fin":
2A. after goto ???? , ...then finish? (goto fin)
2B. or, is this really Goto>fin
3. What does "this macro" mean on that line?
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!
Bob
A humble man and PROUD of it!
so ....
In fact y yould like to repeat the macro (label>debut) 2 minutes, and if the %color% not change after this 2 minutes, the programme go automaticly to the another label (label>fin). If the %color% is not 1118482 the programme execute the label (label>pop) and after restart for 2 minutes in the label (label>debut).
label>debut
press F8
Getpixelcolor>508,590,color
if>%color%=1118482,suite
if>%color%,pop
goto>debut
label>suite
mouse move etc etc....
goto>debut
label>pop
mouse move etc etc....
goto>debut
label>fin
mouse move etc etc...
goto>debut
is it possible ? .... sorry for my English
Thank's a lot
In fact y yould like to repeat the macro (label>debut) 2 minutes, and if the %color% not change after this 2 minutes, the programme go automaticly to the another label (label>fin). If the %color% is not 1118482 the programme execute the label (label>pop) and after restart for 2 minutes in the label (label>debut).
label>debut
press F8
Getpixelcolor>508,590,color
if>%color%=1118482,suite
if>%color%,pop
goto>debut
label>suite
mouse move etc etc....
goto>debut
label>pop
mouse move etc etc....
goto>debut
label>fin
mouse move etc etc...
goto>debut
is it possible ? .... sorry for my English
Thank's a lot
In fact y yould like to repeat the macro (label>debut) 2 minutes, and if the %color% not change after this 2 minutes, the programme go automaticly to the another label (label>fin)
If the %color% is not 1118482 the programme execute the label (label>pop)
... and after restart for 2 minutes in the label (label>debut).
-----
Label>debut
MouseMove>
.
.
Getpixelcolor>508,590,color
If>%color%=1118482,fin
If>%color%1118482,pop
//If necessary you've to set an additional delay (Wait>x) to loop up to two minutes eg. 0.75 sec ...
//Wait>0.75
Goto>debut
-----
PS: You've had a second language at school (or you learned it at home)? Maybe we can support you in Spanish, Italian, German, Russian, Chinese (armsys ), and of course in French ...
A bientot
PPS: J'ai ne parle pas francais
If the %color% is not 1118482 the programme execute the label (label>pop)
... and after restart for 2 minutes in the label (label>debut).
-----
Label>debut
MouseMove>
.
.
Getpixelcolor>508,590,color
If>%color%=1118482,fin
If>%color%1118482,pop
//If necessary you've to set an additional delay (Wait>x) to loop up to two minutes eg. 0.75 sec ...
//Wait>0.75
Goto>debut
-----
PS: You've had a second language at school (or you learned it at home)? Maybe we can support you in Spanish, Italian, German, Russian, Chinese (armsys ), and of course in French ...
A bientot
PPS: J'ai ne parle pas francais