Sign in to follow this  
Followers 0
Confounded

#include <Misc.Au3> Error

4 posts in this topic

#1 ·  Posted (edited)

It seems I have an error in my Misc.Au3 installed with the program.

D:\AutoIt3\Include\Misc.au3(46,1) : ERROR: missing Until <expr>.

Func

This is what I found on line 46 of Misc.

Func _ChooseColor($i_ReturnType = 0, $i_colorref = 0, $i_refType = 0)

This is my code leading up to the #include command:

CODE
#include <Misc.au3>

$push = 0

While 1

If _IsPressed(24) Then

If $push = 0 Then

Sleep(1000)

EndIf

$push = 1

EndIf

If Not _IsPressed(24) Then $push = 0

WEnd

How do I begin to fix this? It won't let even the first part of my script execute.

Edited by Confounded

Share this post


Link to post
Share on other sites



I searched through the Misc file and found no errors..it then leaves my script. I saw no closing Until expressions in the examples (in fact, the #include was written for me!). Can anyone point me in the right direction? Thank you!

Share this post


Link to post
Share on other sites

Why is the #include indented? Just put it directly at the top of the script where there is no chance of it colliding with your code.

Share this post


Link to post
Share on other sites

Why is the #include indented? Just put it directly at the top of the script where there is no chance of it colliding with your code.

That did the trick. Thank you very much!

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  
Followers 0