Jump to content
Sign in to follow this  
Lowbnite

HELP AutoIt Error

Recommended Posts

Lowbnite

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

Share this post


Link to post
Share on other sites
JoHanatCent

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.


Share this post


Link to post
Share on other sites
smashly

Hi,

Your missing an 's' in your function name..

startscript()

;les fonctions)

Func startcript() <--- missing 's'

Cheers

Edited by smashly

Share this post


Link to post
Share on other sites
Lowbnite

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 by Lowbnite

Share this post


Link to post
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
Sign in to follow this  

×