4riskie Posted April 9, 2010 Share Posted April 9, 2010 Good Morning, Been a long while since I last used auto it. But I'm obviously doing something wrong as every time I try to use this script I get the error below. As I'm posting this I'm also going through the help file of the Scite4AutiIt4. I appreciate any help cheers. Line 1 (File "C:\Users\Admin\Desktop\Autoit.au3"): Check: Check^ERROR Error:Missing Separator Character after keyword What I am doing is running a free version of the old SWG game. Using a script for automation is not currently a violation for them. So here is what the file looks like. WinActivate,SwgClient WinwaitActive, SwgClient Start: Send, +{F1} Gosub, Resource_click Send, +{F2} Gosub, Resource_click Send, +{F3} Gosub, Resource_click Send, +{F4} Gosub, Resource_click Goto, Start Sleep, 2000 LeftClick, 165,217 LeftClick, 165,217 Sleep, 500 LeftClick, 231,216 LeftClick, 231,216 Sleep, 500 LeftClick, 231,216 LeftClick, 231,216 Sleep, 7000 Return handle_crit: Send, {ENTER} Sleep, 500 Send, {ESC} Sleep, 500 Send, {ESC} Sleep, 500 Return [Adlib] Swgclient, critical failure, Gosub, handle_crit Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted April 9, 2010 Moderators Share Posted April 9, 2010 4riskie Been a long while since I last used auto it.And it shows! That is very old syntax from long before I started using AutoIt (v2 possibly?). For example, there are no longer GoTo or GoSub commands - we now use functions. I would strongly suggest that you start all over again and read the Help file (at least the first few sections - Using AutoIt, Tutorials and the first couple of References). You should also look at the excellent tutorials that you will find here and here - you will find other tutorials in the Wiki (the link is at the top of the page). Good luck now you are back with Autoit! I am sure you will find it much improved. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
kaotkbliss Posted April 9, 2010 Share Posted April 9, 2010 (edited) Better have a look through the helpfile. commands are sent like Send("{ESC}") Sleep(500) Gosub is gone... *edit* they finally get the EMU going? last I tried(few months after the NGE) it was still very early in the works and apparently the server I was using no longer exists. Edited April 9, 2010 by kaotkbliss 010101000110100001101001011100110010000001101001011100110010000 001101101011110010010000001110011011010010110011100100001 My Android cat and mouse gamehttps://play.google.com/store/apps/details?id=com.KaosVisions.WhiskersNSqueek We're gonna need another Timmy! 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