aide please :°)

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
Olivier
Newbie
Posts: 3
Joined: Wed Oct 29, 2003 6:02 am

aide please :°)

Post by Olivier » Wed Oct 29, 2003 6:26 am

bonjour ..... j'aurais besoin d'un peu d'aide :oops:



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.

User avatar
Bob Hansen
Automation Wizard
Posts: 2475
Joined: Tue Sep 24, 2002 3:47 am
Location: Salem, New Hampshire, US
Contact:

Post by Bob Hansen » Wed Oct 29, 2003 9:48 am

Hi Olivier!

Trying changing FROM:
label>start
wait>3
label>debut
wait>1
press F8
if>colorpixel=,suite
repeat>debut
label>suite
wait>1
press F1
...
:idea: TO:
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
Lines with changes are in bold red.
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!

Olivier
Newbie
Posts: 3
Joined: Wed Oct 29, 2003 6:02 am

Post by Olivier » Thu Oct 30, 2003 3:44 pm

:D 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
...

User avatar
Bob Hansen
Automation Wizard
Posts: 2475
Joined: Tue Sep 24, 2002 3:47 am
Location: Salem, New Hampshire, US
Contact:

Post by Bob Hansen » Fri Oct 31, 2003 3:41 am

The quick answer is YES, :D but need clarification on this line:
play this macro 2 minutes after goto,fin
1. Need some punctuation to make sense of what you want :?:
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!

Olivier
Newbie
Posts: 3
Joined: Wed Oct 29, 2003 6:02 am

Post by Olivier » Sat Nov 01, 2003 5:14 am

:? 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


:roll: is it possible ? .... sorry for my English :(
Thank's a lot

Lumumba

Post by Lumumba » Sat Nov 01, 2003 12:08 pm

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) :idea:

If the %color% is not 1118482 the programme execute the label (label>pop) :idea:

... 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 :wink:), and of course in French ...

A bientot :)

PPS: J'ai ne parle pas francais :oops:

Post Reply
cron
Sign up to our newsletter for free automation tips, tricks & discounts