Lowbnite Posted September 20, 2010 Share Posted September 20, 2010 (edited) Hello, I had small one concerns with my script I would like that somebody me help. I am French;)An error message displays when I wants used my script. Line 3 ( File" C:\Users\Me\Documents\recolte\Collecte. au3 "): startscript ()^ERRORError: Unknown Function nameAnd here is my script: $stop = 0HotKeySet("{END}","stopscript")startscript();les fonctions)Func startcript() while 1 ;début de notre boucle) ;lancement première CONTROLSEND("Client","","","{&}") ;Sleep=attente, 1000=1sec donc 17000=17sec) Sleep (10000) ;lancement deuxième) CONTROLSEND("Client","","","{&}") ;Sleep=attente, 1000=1sec donc 17000=17sec) Sleep (10000) ;lancement troisième) CONTROLSEND("Client","","","{&}") ;Sleep=attente, 1000=sec donc 17000=17sec) Sleep (10000) ;lancement quatrième) CONTROLSEND("Client","","","{é}") Sleep (10000) ;lancement de cinquième) CONTROLSEND("Client","","","{'}") Sleep (10000) ;fin de notre boucle) If $stop = 1 Then $stop = 0 ExitLoop EndIf WEndEndFunc Func stopscript() $stop = 1 EndFuncI thank you beforehand because I really need helpSorry for English. Edited September 20, 2010 by Lowbnite Link to comment Share on other sites More sharing options...
JoHanatCent Posted September 20, 2010 Share Posted September 20, 2010 Hello, I had small one concerns with my script I would like that somebody me help. I am French;)An error message displays when I wants used my script. Line 3 ( File" C:\Users\Me\Documents\recolte\Collecte. au3 "): startscript ()^ERRORError: Unknown Function nameAnd here is my script: $stop = 0HotKeySet("{END}","stopscript")startscript();les fonctions)Func startcript() while 1 ;début de notre boucle) ;lancement première CONTROLSEND("Client","","","{&}") ;Sleep=attente, 1000=1sec donc 17000=17sec) Sleep (10000) ;lancement deuxième) CONTROLSEND("Client","","","{&}") ;Sleep=attente, 1000=1sec donc 17000=17sec) Sleep (10000) ;lancement troisième) CONTROLSEND("Client","","","{&}") ;Sleep=attente, 1000=sec donc 17000=17sec) Sleep (10000) ;lancement quatrième) CONTROLSEND("Client","","","{é}") Sleep (10000) ;lancement de cinquième) CONTROLSEND("Client","","","{'}") Sleep (10000) ;fin de notre boucle) If $stop = 1 Then $stop = 0 ExitLoop EndIf WEndEndFunc Func stopscript() $stop = 1 EndFuncI thank you beforehand because I really need helpSorry for English.Hi - If you look carefully at your function name you spelled it "startcript" and not startscript as you intended. Link to comment Share on other sites More sharing options...
smashly Posted September 20, 2010 Share Posted September 20, 2010 (edited) Hi,Your missing an 's' in your function name..startscript();les fonctions)Func startcript() <--- missing 's'Cheers Edited September 20, 2010 by smashly Link to comment Share on other sites More sharing options...
Lowbnite Posted September 20, 2010 Author Share Posted September 20, 2010 (edited) H'mm, I am the gas most bete on this earth! I would have of to read again, moreover it is for hi that I did not understand the error! Thank you very much in any case ^^ Edited September 20, 2010 by Lowbnite 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