[AutoIt] Problème bot clique : Error parsing function call.

    Publicités

Users Who Are Viewing This Thread (Total: 0, Members: 0, Guests: 0)

Status
Not open for further replies.

Aggalap

Membre
Aug 1, 2012
22
0
206
Salut à tous,

Aujourd'hui, j'ai un problème avec un bot clique.

Il est censé / sensé vendre des potions aux PNJ minecraft automatiquement, par une série de commande MouseClick.

Mon problème, c'est que j'ai une erreur dès la 3e ligne et que je ne sais pas comment la résoudre. J'ai chercher sur des forums anglophones / francophone mais je n'ai trouvé aucun cas similaire au miens.

Error parsing function call.

51Upi.png


Voici mon code, et merci d'avance de votre aide. :

PHP:
Sleep (4000)
;-------------------------------------------
MouseClick ( "left" [, 635, 454])
Sleep (200)
MouseClick ( "left" [, 692, 401 [, 1 [, 0]]] )
Sleep (200)
MouseClick ( "left" [, 860, 402 [, 1 [, 0]]] )
Sleep (200)
MouseClick ( "left" [, 635, 454 [, 1 [, 0]]] )
Sleep (200)
;-------------------------------------------
MouseClick ( "left" [, 674, 464 [, 1 [, 0]]] )
MouseClick ( "left" [, 692, 401 [, 1 [, 0]]] )
MouseClick ( "left" [, 860, 402 [, 1 [, 0]]] )
MouseClick ( "left" [, 635, 454 [, 1 [, 0]]] )
;-------------------------------------------
MouseClick ( "left" [, 710, 467 [, 1 [, 0]]] )
MouseClick ( "left" [, 692, 401 [, 1 [, 0]]] )
MouseClick ( "left" [, 860, 402 [, 1 [, 0]]] )
MouseClick ( "left" [, 635, 454 [, 1 [, 0]]] )
;-------------------------------------------
MouseClick ( "left" [, 745, 464 [, 1 [, 0]]] )
MouseClick ( "left" [, 692, 401 [, 1 [, 0]]] )
MouseClick ( "left" [, 860, 402 [, 1 [, 0]]] )
MouseClick ( "left" [, 635, 454 [, 1 [, 0]]] )
;-------------------------------------------
MouseClick ( "left" [, 785, 464 [, 1 [, 0]]] )
MouseClick ( "left" [, 692, 401 [, 1 [, 0]]] )
MouseClick ( "left" [, 860, 402 [, 1 [, 0]]] )
MouseClick ( "left" [, 635, 454 [, 1 [, 0]]] )
;-------------------------------------------
MouseClick ( "left" [, 820, 464 [, 1 [, 0]]] )
MouseClick ( "left" [, 692, 401 [, 1 [, 0]]] )
MouseClick ( "left" [, 860, 402 [, 1 [, 0]]] )
MouseClick ( "left" [, 635, 454 [, 1 [, 0]]] )
;-------------------------------------------
;++++++++++++++++++++++++++++++++++++++++++
;-------------------------------------------
MouseClick ( "left" [, 860, 464 [, 1 [, 0]]] )
MouseClick ( "left" [, 692, 401 [, 1 [, 0]]] )
MouseClick ( "left" [, 860, 402 [, 1 [, 0]]] )
MouseClick ( "left" [, 674, 454 [, 1 [, 0]]] )
;-------------------------------------------
MouseClick ( "left" [, 895, 464 [, 1 [, 0]]] )
MouseClick ( "left" [, 692, 401 [, 1 [, 0]]] )
MouseClick ( "left" [, 860, 402 [, 1 [, 0]]] )
MouseClick ( "left" [, 674, 454 [, 1 [, 0]]] )
;-------------------------------------------
MouseClick ( "left" [, 935, 464 [, 1 [, 0]]] )
MouseClick ( "left" [, 692, 401 [, 1 [, 0]]] )
MouseClick ( "left" [, 860, 402 [, 1 [, 0]]] )
MouseClick ( "left" [, 674, 454 [, 1 [, 0]]] )
;-------------------------------------------
MouseClick ( "left" [, 635, 504 [, 1 [, 0]]] )
MouseClick ( "left" [, 692, 401 [, 1 [, 0]]] )
MouseClick ( "left" [, 860, 402 [, 1 [, 0]]] )
MouseClick ( "left" [, 674, 454 [, 1 [, 0]]] )
;-------------------------------------------
MouseClick ( "left" [, 710, 504 [, 1 [, 0]]] )
MouseClick ( "left" [, 692, 401 [, 1 [, 0]]] )
MouseClick ( "left" [, 860, 402 [, 1 [, 0]]] )
MouseClick ( "left" [, 674, 454 [, 1 [, 0]]] )
;-------------------------------------------
MouseClick ( "left" [, 745, 504 [, 1 [, 0]]] )
MouseClick ( "left" [, 692, 401 [, 1 [, 0]]] )
MouseClick ( "left" [, 860, 402 [, 1 [, 0]]] )
MouseClick ( "left" [, 674, 454 [, 1 [, 0]]] )
;---------------------------------------------
;+++++++++++++++++++++++++++++++++++++++++++++++
;----------------------------------------------
MouseClick ( "left" [, 785, 504 [, 1 [, 0]]] )
MouseClick ( "left" [, 692, 401 [, 1 [, 0]]] )
MouseClick ( "left" [, 860, 402 [, 1 [, 0]]] )
MouseClick ( "left" [, 710, 454 [, 1 [, 0]]] )
;-------------------------------------------
MouseClick ( "left" [, 820, 504 [, 1 [, 0]]] )
MouseClick ( "left" [, 692, 401 [, 1 [, 0]]] )
MouseClick ( "left" [, 860, 402 [, 1 [, 0]]] )
MouseClick ( "left" [, 710, 454 [, 1 [, 0]]] )
;-------------------------------------------
MouseClick ( "left" [, 860, 504 [, 1 [, 0]]] )
MouseClick ( "left" [, 692, 401 [, 1 [, 0]]] )
MouseClick ( "left" [, 860, 402 [, 1 [, 0]]] )
MouseClick ( "left" [, 710, 454 [, 1 [, 0]]] )
;-------------------------------------------
MouseClick ( "left" [, 895, 504 [, 1 [, 0]]] )
MouseClick ( "left" [, 692, 401 [, 1 [, 0]]] )
MouseClick ( "left" [, 860, 402 [, 1 [, 0]]] )
MouseClick ( "left" [, 710, 454 [, 1 [, 0]]] )
;-------------------------------------------
MouseClick ( "left" [, 935, 504 [, 1 [, 0]]] )
MouseClick ( "left" [, 692, 401 [, 1 [, 0]]] )
MouseClick ( "left" [, 860, 402 [, 1 [, 0]]] )
MouseClick ( "left" [, 710, 454 [, 1 [, 0]]] )
;-------------------------------------------
MouseClick ( "left" [, 635, 504 [, 1 [, 0]]] )
MouseClick ( "left" [, 692, 401 [, 1 [, 0]]] )
MouseClick ( "left" [, 860, 402 [, 1 [, 0]]] )
MouseClick ( "left" [, 710, 454 [, 1 [, 0]]] )
;-------------------------------------------
;+++++++++++++++++++++++++++++++++++++++
;--------------------------------------------
MouseClick ( "left" [, 710, 537 [, 1 [, 0]]] )
MouseClick ( "left" [, 692, 537 [, 1 [, 0]]] )
MouseClick ( "left" [, 860, 402 [, 1 [, 0]]] )
MouseClick ( "left" [, 745, 454 [, 1 [, 0]]] )
;-------------------------------------------
MouseClick ( "left" [, 745, 537 [, 1 [, 0]]] )
MouseClick ( "left" [, 692, 401 [, 1 [, 0]]] )
MouseClick ( "left" [, 860, 402 [, 1 [, 0]]]5 )
MouseClick ( "left" [, 745, 454 [, 1 [, 0]]] )
;-------------------------------------------
MouseClick ( "left" [, 785, 537 [, 1 [, 0]]] )
MouseClick ( "left" [, 692, 401 [, 1 [, 0]]] )
MouseClick ( "left" [, 860, 402 [, 1 [, 0]]] )
MouseClick ( "left" [, 745, 454 [, 1 [, 0]]] )
;-------------------------------------------
MouseClick ( "left" [, 820, 537 [, 1 [, 0]]] )
MouseClick ( "left" [, 692, 401 [, 1 [, 0]]] )
MouseClick ( "left" [, 860, 402 [, 1 [, 0]]] )
MouseClick ( "left" [, 745, 454 [, 1 [, 0]]] )
;-------------------------------------------
MouseClick ( "left" [, 860, 537 [, 1 [, 0]]] )
MouseClick ( "left" [, 692, 401 [, 1 [, 0]]] )
MouseClick ( "left" [, 860, 402 [, 1 [, 0]]] )
MouseClick ( "left" [, 745, 454 [, 1 [, 0]]] )
;-------------------------------------------
MouseClick ( "left" [, 895, 537 [, 1 [, 0]]] )
MouseClick ( "left" [, 692, 401 [, 1 [, 0]]] )
MouseClick ( "left" [, 860, 402 [, 1 [, 0]]] )
MouseClick ( "left" [, 745, 454 [, 1 [, 0]]] )
;-------------------------------------------
;++++++++++++++++++
;------------------------------------------
MouseClick ( "left" [, 935, 537 [, 1 [, 0]]] )
MouseClick ( "left" [, 692, 401 [, 1 [, 0]]] )
MouseClick ( "left" [, 860, 402 [, 1 [, 0]]] )
MouseClick ( "left" [, 785, 454 [, 1 [, 0]]] )
;-------------------------------------------
MouseClick ( "left" [, 635, 537 [, 1 [, 0]]] )
MouseClick ( "left" [, 692, 401 [, 1 [, 0]]] )
MouseClick ( "left" [, 860, 402 [, 1 [, 0]]] )
MouseClick ( "left" [, 785, 454 [, 1 [, 0]]] )
;-------------------------------------------
MouseClick ( "left" [, 675, 537 [, 1 [, 0]]] )
MouseClick ( "left" [, 692, 401 [, 1 [, 0]]] )
MouseClick ( "left" [, 860, 402 [, 1 [, 0]]] )
MouseClick ( "left" [, 785, 454 [, 1 [, 0]]] )
;-------------------------------------------
MouseClick ( "left" [, 710, 579 [, 1 [, 0]]] )
MouseClick ( "left" [, 692, 401 [, 1 [, 0]]] )
MouseClick ( "left" [, 860, 402 [, 1 [, 0]]] )
MouseClick ( "left" [, 785, 454 [, 1 [, 0]]] )
;-------------------------------------------
MouseClick ( "left" [, 745, 579 [, 1 [, 0]]] )
MouseClick ( "left" [, 692, 401 [, 1 [, 0]]] )
MouseClick ( "left" [, 860, 402 [, 1 [, 0]]] )
MouseClick ( "left" [, 785, 454 [, 1 [, 0]]] )
;-------------------------------------------
MouseClick ( "left" [, 785, 578 [, 1 [, 0]]] )
MouseClick ( "left" [, 692, 401 [, 1 [, 0]]] )
MouseClick ( "left" [, 860, 402 [, 1 [, 0]]] )
MouseClick ( "left" [, 785, 454 [, 1 [, 0]]] )
;-------------------------------------------
;=+++++++++++++++++++++++++++++
;-------------------------------------
MouseClick ( "left" [, 820, 578 [, 1 [, 0]]] )
MouseClick ( "left" [, 692, 401 [, 1 [, 0]]] )
MouseClick ( "left" [, 860, 402 [, 1 [, 0]]] )
MouseClick ( "left" [, 820, 454 [, 1 [, 0]]] )
;-------------------------------------------
MouseClick ( "left" [, 860, 578 [, 1 [, 0]]] )
MouseClick ( "left" [, 692, 401 [, 1 [, 0]]] )
MouseClick ( "left" [, 860, 402 [, 1 [, 0]]] )
MouseClick ( "left" [, 820, 454 [, 1 [, 0]]] )
;-------------------------------------------
MouseClick ( "left" [, 895, 578 [, 1 [, 0]]] )
MouseClick ( "left" [, 692, 401 [, 1 [, 0]]] )
MouseClick ( "left" [, 860, 402 [, 1 [, 0]]] )
MouseClick ( "left" [, 820, 454 [, 1 [, 0]]] )
;-------------------------------------------
MouseClick ( "left" [, 920, 578 [, 1 [, 0]]] )
MouseClick ( "left" [, 692, 401 [, 1 [, 0]]] )
MouseClick ( "left" [, 860, 402 [, 1 [, 0]]] )
MouseClick ( "left" [, 820, 454 [, 1 [, 0]]] )
;-------------------------------------------
MouseClick ( "left" [, 675, 578 [, 1 [, 0]]] )
MouseClick ( "left" [, 692, 401 [, 1 [, 0]]] )
MouseClick ( "left" [, 860, 402 [, 1 [, 0]]] )
MouseClick ( "left" [, 820, 454 [, 1 [, 0]]] )
;-------------------------------------------
MouseClick ( "left" [, 710, 578 [, 1 [, 0]]] )
MouseClick ( "left" [, 692, 401 [, 1 [, 0]]] )
MouseClick ( "left" [, 860, 402 [, 1 [, 0]]] )
MouseClick ( "left" [, 820, 454 [, 1 [, 0]]] )
;-------------------------------------------
 

Evaelis

La Voix de la Sagesse
V
Ancien staff
Apr 28, 2010
22,949
468
1,699
Valhalla
Non alors, en programmation, un crochet signifie "facultatif"
C'est à dire que là :
MouseClick ( "button" [, x, y [, clicks [, speed]]] )
Tu peux faire
MouseClick( "button" ), ça marcheras
Ou alors
MouseClick ( "button" , x, y)
Et ainsi de suite
 
Status
Not open for further replies.