Pharoahe Posted September 27, 2007 Share Posted September 27, 2007 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? Link to comment Share on other sites More sharing options...
flyingboz Posted September 27, 2007 Share Posted September 27, 2007 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. Link to comment Share on other sites More sharing options...
Richard Robertson Posted September 27, 2007 Share Posted September 27, 2007 If you provide the script, we might be able to help. Link to comment Share on other sites More sharing options...
Pharoahe Posted September 27, 2007 Author Share Posted September 27, 2007 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 expandcollapse popup#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) Link to comment Share on other sites More sharing options...
Developers Jos Posted September 27, 2007 Developers Share Posted September 27, 2007 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 ~~~~~~^ SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Pharoahe Posted September 27, 2007 Author Share Posted September 27, 2007 (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 September 27, 2007 by Pharoahe Link to comment Share on other sites More sharing options...
Developers Jos Posted September 27, 2007 Developers Share Posted September 27, 2007 (edited) Hm..I don't see Au3check? Is that something else I have to download? And thanks everyone, I appreciate the helpIts 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 September 27, 2007 by Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. 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