do_Obie Posted April 16, 2006 Share Posted April 16, 2006 So I am new to autoit and started by using a script a friend gave me. I wrote this: Code: Global $Paused HotKeySet("{END}", "TogglePause") HotKeySet("{HOME}", "Terminate") While 1 Sleep(100) WEnd Func TogglePause() $Paused = NOT $Paused While $Paused sleep(10) MouseClick("Left") WEnd EndFunc Func Terminate() Exit 0 EndFunc In notepad and saved as a .au3 file. But when I try to open it it says "Error unable to parse line" If someone coule please help me out it would be greatly appreciated. Link to comment Share on other sites More sharing options...
fearlumsk Posted April 16, 2006 Share Posted April 16, 2006 The Script works fine for me. You should download Scite and try to run it. Link to comment Share on other sites More sharing options...
do_Obie Posted April 16, 2006 Author Share Posted April 16, 2006 Scite? Link to comment Share on other sites More sharing options...
cdkid Posted April 16, 2006 Share Posted April 16, 2006 Scite4AutoIt3 clicky AutoIt Console written in C#. Write au3 code right at the console :D_FileWriteToLineWrite to a specific line in a file.My UDF Libraries: MySQL UDF Library version 1.6 MySQL Database UDF's for AutoItI have stopped updating the MySQL thread above, all future updates will be on my SVN. The svn location is:kan2.sytes.net/publicsvn/mysqlnote: This will still be available, but due to my new job, and school hours, am no longer developing this udf.My business: www.hirethebrain.com Hire The Brain HireTheBrain.com Computer Consulting, Design, Assembly and RepairOh no! I've commited Scriptocide! Link to comment Share on other sites More sharing options...
do_Obie Posted April 16, 2006 Author Share Posted April 16, 2006 Hmm ok I dled and installed that and I get the same error. It says it is unable to parse line 1 (The directory path of the file). I tried moving it to different places and it just gives me the same error with the new path. Link to comment Share on other sites More sharing options...
fearlumsk Posted April 16, 2006 Share Posted April 16, 2006 inside scite -> Options -> a3u Properties-> # *** Specify here your AutoIt program directory *** autoit3dir=X:\XYZ\Autoit3\ <-------- Link to comment Share on other sites More sharing options...
Thatsgreat2345 Posted April 16, 2006 Share Posted April 16, 2006 umust be doing something wrong, or have something in there because it works just fine Global $Paused HotKeySet("{END}", "TogglePause") HotKeySet("{HOME}", "Terminate") While 1 Sleep(100) WEnd Func TogglePause() $Paused = NOT $Paused While $Paused sleep(10) MouseClick("Left") WEnd EndFunc Func Terminate() Exit 0 EndFunc Link to comment Share on other sites More sharing options...
do_Obie Posted April 16, 2006 Author Share Posted April 16, 2006 I check the directory and it is right. I just dont see how Im doing anything wrong. Its a brand new installation and I copy / pasted the code into notepad and saved it correctly. Link to comment Share on other sites More sharing options...
Thatsgreat2345 Posted April 16, 2006 Share Posted April 16, 2006 (edited) ummm stop using notepad, use scite its ALLLLOOOOOOOOT better, it highlights the syntax and everything follow the link in the posts above , the only problem i can think of is sumhow ur saving it as a name.au3.txt and that could be screwing you up Edited April 16, 2006 by thatsgreat2345 Link to comment Share on other sites More sharing options...
do_Obie Posted April 16, 2006 Author Share Posted April 16, 2006 Ok yea it was saving as .au3.txt and that was screwing me up. Thanks alot I got it working . 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