Sign in to follow this  
Followers 0
4riskie

Missing Separator Character

3 posts in this topic

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

Share this post


Link to post
Share on other sites



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._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites

#3 ·  Posted (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 by kaotkbliss

010101000110100001101001011100110010000001101001011100110010000

001101101011110010010000001110011011010010110011100100001

My Android cat and mouse game
https://play.google.com/store/apps/details?id=com.KaosVisions.WhiskersNSqueek

We're gonna need another Timmy!

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