Jump to content

Mouseclicks in programs


Recommended Posts

I just recently started to use AutoIt and as I was making a small "test" code bit in silkroad online but I found that whenever I made it active, the autoit script paused and didnt do anything. Is that just something with silkroad or do I have to do something special to enable it to do that as I've seen it done before. Here's the code in case I noobed out and the mistake is in there.

$continue = true

while $continue = true

WinActivate("SRO_Client", "")

WinWaitActive("SRO_Client")

$coord = PixelSearch( 200, 200, 1600, 1000, 4986121, 10 )

If Not @error Then

MouseClick("left", $coord[0], $coord[1],1)

EndIf

Send("1")

;$continue = false

sleep (1000)

wend

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...