antoine02 Posted October 1, 2006 Share Posted October 1, 2006 Hello all I need a script who makes a left click mouse ad infinitum. how to make this script please? Thanks Link to comment Share on other sites More sharing options...
Fossil Rock Posted October 1, 2006 Share Posted October 1, 2006 Look in the help file for MouseClick. Agreement is not necessary - thinking for one's self is! Link to comment Share on other sites More sharing options...
tresa Posted October 1, 2006 Share Posted October 1, 2006 Hello allI need a script who makes a left click mouse ad infinitum.how to make this script please? Thanks Antoine,Français? Link to comment Share on other sites More sharing options...
antoine02 Posted October 1, 2006 Author Share Posted October 1, 2006 oui, français I have writ this script: MouseClick ( "left" [, 403, 397 [, 50000 [, 1 ]]] ) but I have an error message Link to comment Share on other sites More sharing options...
tresa Posted October 1, 2006 Share Posted October 1, 2006 oui, français I have writ this script: MouseClick ( "left" [, 403, 397 [, 50000 [, 1 ]]] ) but I have an error message Il ne faut pas mettre les [ et ] ils indique des paramètres optionnels ! [ and ] quotes are in the help file for optioanl parameters, please do'nt write them in the code Link to comment Share on other sites More sharing options...
Fossil Rock Posted October 1, 2006 Share Posted October 1, 2006 oui, français I have writ this script: MouseClick ( "left" [, 403, 397 [, 50000 [, 1 ]]] ) but I have an error message Remove the [ & ] ... they are not part of the code but to inform you of options... i.e. MouseClick ( "left" , 403, 397 , 50000 , 1 ) Agreement is not necessary - thinking for one's self is! Link to comment Share on other sites More sharing options...
antoine02 Posted October 1, 2006 Author Share Posted October 1, 2006 (edited) Thanks you it works! / Merci, ça marche! Dernière question / last question: comment arrêter le script? / How stop the script? edit: J'ai trouvé / I have find Edited October 1, 2006 by antoine02 Link to comment Share on other sites More sharing options...
Fossil Rock Posted October 1, 2006 Share Posted October 1, 2006 What code do you have already ? Agreement is not necessary - thinking for one's self is! Link to comment Share on other sites More sharing options...
tresa Posted October 1, 2006 Share Posted October 1, 2006 Thanks you it works! / Merci, ça marche!Dernière question / last question: comment arrêter le script? / How stop the script?edit: J'ai trouvé / I have findRegardes dans les articles du forum il y en a un dans les 10 premiers !Un conseil fais une recherche dans le forum avant de poser tes questions car le pb est peut être déjà évoqué !J'ai vu dedans que en cliquant sur l'icone dans la barre en bas ou sinon faire une hotkey qui stoppe!Take a look in the topics, ther is oe in te top 10 of this forum Link to comment Share on other sites More sharing options...
antoine02 Posted October 1, 2006 Author Share Posted October 1, 2006 J'ai écrit ça/ I have write this Global $Paused HotKeySet("{PAUSE}", "TogglePause") HotKeySet("{ESC}", "Terminate") in my script but when I press "esc" the script doesnt stop /dans mon script mais ça ne marche pas quand je fais échap, le script continue de tourner. c'est peut être parce que mon script fait des clics de souris trop rapides? Le script complet est/ the complete script is: MouseClick ( "left" , 403, 397 , 50000 , 1 ) ; Press Esc to terminate script, Pause/Break to "pause" Global $Paused HotKeySet("{PAUSE}", "TogglePause") HotKeySet("{ESC}", "Terminate") HotKeySet("+!d", "ShowMessage") ;Shift-Alt-d Link to comment Share on other sites More sharing options...
tresa Posted October 1, 2006 Share Posted October 1, 2006 J'ai écrit ça/ I have write thisGlobal $PausedHotKeySet("{PAUSE}", "TogglePause")HotKeySet("{ESC}", "Terminate")in my script but when I press "esc" the script doesnt stop /dans mon script mais ça ne marche pas quand je fais échap, le script continue de tourner. c'est peut être parce que mon script fait des clics de souris trop rapides?Le script complet est/ the complete script is:MouseClick ( "left" , 403, 397 , 50000 , 1 ); Press Esc to terminate script, Pause/Break to "pause"Global $PausedHotKeySet("{PAUSE}", "TogglePause")HotKeySet("{ESC}", "Terminate")HotKeySet("+!d", "ShowMessage") ;Shift-Alt-dRegardes dans l'aide Autoit à HotKeySet, il faut que tu mette le contenu des fonctions appelées !Take a look in AutoIt Help, the sample code show that you have to write the code inside the functions ! Link to comment Share on other sites More sharing options...
newb_powa' Posted October 1, 2006 Share Posted October 1, 2006 (edited) Lorsque tu écris sa : Hotkeyset ("s", "Terminate")Le "Terminate est la function que tu demande au script d'éxécuté lors de la frappe de te touche donné qui dans l'exemple est "s".Pour créé une fonction tu dois dois faire comme ceciFunc Terminate() ExitEndfuncDans cet exemple, lorsque tu appuis sur "s", la fonction "Terminate" est appelé et elle permet de fermer ton script. En espérant t'avoir aider.~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~When you write that : Hotkeyset ("s", "Terminate")The "Terminate" is the function you ask your script to execute when you pressed a key, in this exemple this is the "s".To make your own function you should do thatFunc Terminate() ExitEndfuncIn the exemple, when you press "s", the "Terminate" function is called and then it close your script. Edited October 1, 2006 by newb_powa' Link to comment Share on other sites More sharing options...
Paulie Posted October 1, 2006 Share Posted October 1, 2006 (edited) though i'm not fluent in french, i don't think it's smart calling a single mouseclick to click 50000 times it not a good move. i recomend calling it like this For $i = 1 to 25000 Mousclick( "left" , 403, 397 ,2, 1) Next But if you want it to go forever, call it like this While 1 Mousclick( "left" , 403, 397 ,1, 1) Wend Edited October 1, 2006 by Paulie Link to comment Share on other sites More sharing options...
tresa Posted October 1, 2006 Share Posted October 1, 2006 though i'm not fluent in french, i don't think it's smart calling a single mouseclick to click 50000 times it not a good move. i recomend calling it like this For $i = 1 to 25000 Mousclick( "left" , 403, 397 ,2, 1) Next But if you want it to go forever, call it like this While 1 Mousclick( "left" , 403, 397 ,1, 1) Wend Paulie, I understand your suggestion for a forever loop. But what about the 50000 or 25000 x 2 ? I suppose Antoine is waiting for an event in a game to be catched. His method seems like "brute force" Link to comment Share on other sites More sharing options...
theguy0000 Posted October 1, 2006 Share Posted October 1, 2006 please try to refrain from speaking in langauges other than english in the forums. Thanks. The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN Link to comment Share on other sites More sharing options...
tresa Posted October 1, 2006 Share Posted October 1, 2006 Paulie,I understand your suggestion for a forever loop. But what about the 50000 or 25000 x 2 ?I suppose Antoine is waiting for an event in a game to be catched. His method seems like "brute force"Paulie,maybe if you're in a built-in function Autoit keep all the CPU work and other processes will not work between them?Is there a doEvents like function in Autoit for this? Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted October 1, 2006 Moderators Share Posted October 1, 2006 please try to refrain from speaking in langauges other than english in the forums. Thanks.I don't see an issue with that theguy0000 if they are translating what they are saying so the community can understand what they need help with, or what help they are providing. I only saw one post where they didn't translate. Unlike another thread where it's completely in a language other than english. Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
theguy0000 Posted October 1, 2006 Share Posted October 1, 2006 I don't see an issue with that theguy0000 if they are translating what they are saying so the community can understand what they need help with, or what help they are providing. I only saw one post where they didn't translate. Unlike another thread where it's completely in a language other than english.I see your point. Nevermind, sorry. The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN Link to comment Share on other sites More sharing options...
Paulie Posted October 1, 2006 Share Posted October 1, 2006 ...what about the 50000 or 25000 x 2 ?Well, one mouseclick 50000 times just doesn't seem like a good idea to me, i try to make repeditive actions loops unless its a small amount of repetions like between 2-10just one of those wierd things i do :"> Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now