Jump to content

Recommended Posts

Posted (edited)

$searchcolor = 0x4B4626
$searchcolour = 0xA0AC58
While 1
$coord = PixelSearch(10, 10, 800, 580, $searchcolor)
    If IsArray($coord) = 1 Then
        MouseMove($coord[0], $coord[1], 0)
        $found = "yes"
        
Else
    $pos = MouseGetPos()
    $coord = PixelSearch(($pos[0] - 10) , ($pos[1] - 10) , ($pos[0] + 10) , ($pos[1] + 10), $searchcolor)
    If IsArray($coord) = 1 Then
        MouseClick('left', $coord[0], $coord[1], 1, 0)
    EndIf
EndIf
WEnd

is there any way to make this faster?

Edited by IKilledBambi
Posted

using arrays makes ur script alot slower. so try not to use arrays.

My Projects:[list][*]Guide - ytube step by step tut for reading memory with autoitscript + samples[*]WinHide - tool to show hide windows, Skinned With GDI+[*]Virtualdub batch job list maker - Batch Process all files with same settings[*]Exp calc - Exp calculator for online games[*]Automated Microsoft SQL Server 2000 installer[*]Image sorter helper for IrfanView - 1 click opens img & move ur mouse to close opened img[/list]
  • Moderators
Posted

using arrays makes ur script alot slower. so try not to use arrays.

Don't be rediculous... 1st look at what he's using (that returns an array itself).

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

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
×
×
  • Create New...