Jump to content

Simple Game macro - needs help


Recommended Posts

Ok so I am trying to make a simple macro that clicks on a certain spot in a game when a pixel appears of a certain color.

problem is that the macro currently only moves the mouse over that pixel when the macro is running and the window is not active. Do some games block Autoit? Help!

CODE

HotKeySet("^x", "MyExit")

Sleep(10000)

;$slatecolor = 0xF4F4F2

for $count = 1 to 5000000000

$colorcheck = PixelGetColor(226, 45)

while $colorcheck <> 0xF4F4F2

$colorcheck = PixelGetColor(226, 45)

wend

mousemove (226, 45)

MouseClick ( "left" , 226, 45)

sleep (500)

MouseClick ( "left" , 226, 45)

$count = $count + 1

next

Func MyExit()

Exit

EndFunc

Link to comment
Share on other sites

Yes, Game Guard is one of them

8)

Is there a way I can code this so I can pull the data from the screen - not the window? Or somehow circumvent the block. It does not have game guard - it just is so repetitive that I will not be playing it if I cannot get some help from programs.
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...