Sign in to follow this  
Followers 0
tedrick

Simple Game macro - needs help

4 posts in this topic

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

Share this post


Link to post
Share on other sites



Do some games block Autoit? Help!

Yes, Game Guard is one of them

8)


NEWHeader1.png

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

Sorry, I don't have any ideas for you except... Find a better game that you enjoy!!

8)


NEWHeader1.png

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