tedrick Posted June 3, 2009 Share Posted June 3, 2009 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 More sharing options...
Valuater Posted June 3, 2009 Share Posted June 3, 2009 Do some games block Autoit? Help!Yes, Game Guard is one of them8) Link to comment Share on other sites More sharing options...
tedrick Posted June 3, 2009 Author Share Posted June 3, 2009 Yes, Game Guard is one of them8) 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 More sharing options...
Valuater Posted June 3, 2009 Share Posted June 3, 2009 Sorry, I don't have any ideas for you except... Find a better game that you enjoy!! 8) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now