Jump to content

script error


Recommended Posts

HotKeySet ("!s", "Terminate")

Func Terminate ()

Exit

EndFunc

$count = 0

$max = 100001

$o = 0

$Top = 140

$Left = 10

$Right = 1030

$Bottom = 735

WinWait ( "RoseOnline" )

$Pos = WinGetPos ( "RoseOnline" )

$Siz = WinGetClientSize ( "RoseOnline" )

$Left = ($Pos[0] + 90)

$Top = ($Pos[1] + 70)

$Right = (($Pos[0] + $Siz[0]) - 32)

$Bottom = (($Pos [1] + $Siz[1]) - 34)

Sleep (50)

While $count < $max

If $o = 0 Then

$c = PixelSearch ($Left, $Top, $Right, $Bottom, 0x581D00, 1)

EndIf

If Not @error Then

MouseClick ( "Left", $c[0], $c[1], 1, 0 )

EndIf

If @error Then

$o = $o + 1

EndIf

$count = $count + 1

WEnd

I tried using this script but for some reason when I opened "ROSE online" which is what this is for, it would not work at all. I was wondering if it was the game or the script.

Tutorial/almost exact copy from: http://www.autoitscript.com/forum/index.php?showtopic=67782

PLEASE HELP T-T

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...