Sign in to follow this  
Followers 0
Orgins

ControlSend help

2 posts in this topic

I keep getting ''Unterminated string in file ......., line 10'' (the ControlSend line)

I think you can tell what I was going for but just in case.

I wanted it to send 1 click check send 2 click check send 3 click check ect.

Any help would be nice.

Global $Paused
HotKeySet("{PAUSE}", "TogglePause")
HotKeySet("{ESC}", "Terminate")

$Number = 1


While 1

ControlSend("The title", "", "Number:, "$Number")
Sleep(800)
ControlClick("The title", "", "Check")
Sleep(800)

$Number = $Number + 1

WEnd



Func TogglePause()
    $Paused = NOT $Paused
    While $Paused
        sleep(100)
        ToolTip('Script is "Paused"',0,0)
    WEnd
    ToolTip("")
EndFunc

Func Terminate()
    Exit 0
EndFunc

I'm a newbie.Sorry if I don't reposed to your replays very fast.

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

The syntax highlighting shows it.

Change the ControlSend() to..

ControlSend("The title", "", "", "Number:, " & $Number)

:whistle:

Edit:

Missing the parameter for the controlid so added a empty string "".

Edited by MHz

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