Jump to content

HELP AutoIt Error


Lowbnite
 Share

Recommended Posts

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 ()

^ERROR

Error: Unknown Function name

And here is my script:

$stop = 0

HotKeySet("{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

WEnd

EndFunc

Func stopscript()

$stop = 1

EndFunc

I thank you beforehand because I really need help

Sorry for English.

Edited by Lowbnite
Link to comment
Share on other sites

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 ()

^ERROR

Error: Unknown Function name

And here is my script:

$stop = 0

HotKeySet("{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

WEnd

EndFunc

Func stopscript()

$stop = 1

EndFunc

I thank you beforehand because I really need help

Sorry 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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...