Sign in to follow this  
Followers 0
Pharoahe

Error Parsing Function call in Line -1?

7 posts in this topic

Okay well this is my first script I've written (besides doing the Hello World and Notepad tutorials) and I'm getting that error when I try and run my compiled script. What causes this and How do I fix it?

Share this post


Link to post
Share on other sites



Okay well this is my first script I've written (besides doing the Hello World and Notepad tutorials) and I'm getting that error when I try and run my compiled script. What causes this and How do I fix it?

you have an error in your script. add debugging info (msgboxes, etc.) to locate where it is.

Reading the help file before you post... Not only will it make you look smarter, it will make you smarter.

Share this post


Link to post
Share on other sites

If you provide the script, we might be able to help.

Share this post


Link to post
Share on other sites

Okay...I didn't even know about that debugging msgbox thing thats awesome. I already did Debug to MsgBox and I found out I had some commas that were messing it up, removed those and I still got the error again. Anyway heres my unimpressive script :)

#cs ----------------------------------------------------------------------------
 AutoIt Version: 3.2.6.0
 Author:         Pharoahe

 Script Function:
    Buys Second Degree Swords and breaks them down as long as you have money. Stand in Jangan in front of Black Smith Co-ordinates 6373, 1100

#ce ----------------------------------------------------------------------------

; Script Start - Add your code below here

WinWaitActive ("SRO_Client")
Sleep (1000)
Send ("y")
Sleep (1000)
MouseClickDrag ("Left", 517, 334, 312, 220 [35])
Sleep (1000) 
Send ("y")
MouseClick ("Left", 514, 313,
Sleep 400)
MouseClick ("Left" 401, 348)
Sleep 400)
MouseClick( "Left", 459,288, ,25)
Sleep (400)
MouseClick ("Left", 669,412, 1, 35)
Sleep (400)
Send ("5")
Sleep (250)
Send ("{ENTER}")
Sleep (400)
MouseClick( "Left", 459,288, ,25)
Sleep (400)
MouseClick ("Left", 669,412, 1, 35)
Sleep (400)
Send ("5")
Sleep (250)
Send ("{ENTER}")
Sleep (400)
MouseClick( "Left", 459,288, ,25)
Sleep (400)
MouseClick ("Left", 669,412, 1, 35)
Sleep (400)
Send ("5")
Sleep (250)
Send ("{ENTER}")
Sleep (400)
MouseClick( "Left", 459,288, ,25)
Sleep (400)
MouseClick ("Left", 669,412, 1, 35)
Sleep (250)
Send ("{ENTER}")
Sleep (400)
Mouseclick ("Left", 618, 212, ,35)
Sleep (500)
Send ("y")
Sleep (400)
MouseClick ("left", 743, 352, ,35)
Sleep 400
Mouseclick ("Left", 200, 432, ,35)
Sleep (400)
Mouseclick ("left", 638, 388, ,35)
SLeep (400)
MouseClick ("left", 517, 334, ,35)
Sleep (400)
Mouseclick ("left", 209, 537, ,35)
Sleep (1300) 
MouseClick ("Left", 678, 388, ,35)
SLeep (400)
MouseClick ("left", 517, 334, ,35)
Sleep (400)
Mouseclick ("left", 209, 537, ,35)
Sleep (1300) 
Mouseclick ("left", 708, 388, ,35)
SLeep (400)
MouseClick ("left", 517, 334, ,35)
Sleep (400)
Mouseclick ("left", 209, 537, ,35)
Sleep (1300) 
MouseClick ("left", 748, 388, ,35)
SLeep (400)
MouseClick ("left", 517, 334, ,35)
Sleep (400)
Mouseclick ("left", 209, 537, ,35)
Sleep (1300)
Mouseclick ("left", 638, 428, ,35)
SLeep (400)
MouseClick ("left", 517, 334, ,35)
Sleep (400)
Mouseclick ("left", 209, 537, ,35)
Sleep (1300) 
MouseClick ("Left", 678, 428, ,35)
SLeep (400)
MouseClick ("left", 517, 334, ,35)
Sleep (400)
Mouseclick ("left", 209, 537, ,35)
Sleep (1300) 
Mouseclick ("left", 708, 428, ,35)
SLeep (400)
MouseClick ("left", 517, 334, ,35)
Sleep (400)
Mouseclick ("left", 209, 537, ,35)
Sleep (1300) 
MouseClick ("left", 748, 428, ,35)
SLeep (400)
MouseClick ("left", 517, 334, ,35)
Sleep (400)
Mouseclick ("left", 209, 537, ,35)
Sleep (1300) 
Mouseclick ("left", 638, 468, ,35)
SLeep (400)
MouseClick ("left", 517, 334, ,35)
Sleep (400)
Mouseclick ("left", 209, 537, ,35)
Sleep (1300) 
MouseClick ("Left", 678, 468, ,35)
SLeep (400)
MouseClick ("left", 517, 334, ,35)
Sleep (400)
Mouseclick ("left", 209, 537, ,35)
Sleep (1300) 
Mouseclick ("left", 708, 468, ,35)
SLeep (400)
MouseClick ("left", 517, 334, ,35)
Sleep (400)
Mouseclick ("left", 209, 537, ,35)
Sleep (1300) 
MouseClick ("left", 748, 468, ,35)
SLeep (400)
MouseClick ("left", 517, 334, ,35)
Sleep (400)
Mouseclick ("left", 209, 537, ,35)
Sleep (1300) 
Mouseclick ("left", 638, 508, ,35)
SLeep (400)
MouseClick ("left", 517, 334, ,35)
Sleep (400)
Mouseclick ("left", 209, 537, ,35)
Sleep (1300) 
MouseClick ("Left", 678, 508, ,35)
SLeep (400)
MouseClick ("left", 517, 334, ,35)
Sleep (400)
Mouseclick ("left", 209, 537, ,35)
Sleep (1300) 
Mouseclick ("left", 708, 508, ,35)
SLeep (400)
MouseClick ("left", 517, 334, ,35)
Sleep (400)
Mouseclick ("left", 209, 537, ,35)
Sleep (1300) 
MouseClick ("left", 748, 508, ,35)
SLeep (400)
MouseClick ("left", 517, 334, ,35)
Sleep (400)
Mouseclick ("left", 209, 537, ,35)
Sleep (1300)

Share this post


Link to post
Share on other sites

You want to start using au3check to test your scripts:

test.au3(15,43) : ERROR: syntax error
MouseClickDrag("Left", 517, 334, 312, 220 [
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
test.au3(18,29) : ERROR: syntax error
MouseClick("Left", 514, 313,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
test.au3(20,20) : ERROR: syntax error
MouseClick("Left"  401
~~~~~~~~~~~~~~~~~~~^
test.au3(21,7) : ERROR: syntax error
Sleep 400
~~~~~~^

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

Hm..I don't see Au3check? Is that something else I have to download? And thanks everyone, I appreciate the help

-edit

Nevermind! I usually just right click the script and compile. I've never used Compile with options before, so I see Au3Check now. Thanks again everyone

Edited by Pharoahe

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

Hm..I don't see Au3check? Is that something else I have to download? And thanks everyone, I appreciate the help

Its standard delivered and can be found under Tools. (Ctrl+F5)

When you want to run it automatically you can download the full SciTE4AutoIt3 package...

Jos

Edited by Jos

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

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