somdcomputerguy Posted August 5, 2009 Posted August 5, 2009 I understand now. A billiard game and a bowling game I play sometimes are very similar. In fact, if I started code to bot those, I could probably help more, but that probably won't happen too soon.. When you try later though, lemme know how it turns out. - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change.
somdcomputerguy Posted August 5, 2009 Posted August 5, 2009 Oh, and also, it would probably be a good idea to put a bit of Sleep in the loop, to keep the CPU load down. This might interfere with the checking time accuracy though. - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change.
liten Posted August 5, 2009 Posted August 5, 2009 why not use PixelSearch, btw is pixel search basicly "PixelSearch(x,y,W,height My UDF:Freeze.au3-Freeze values like CE, ML, ETC[i][/i][u][/u]
inmysights Posted August 6, 2009 Author Posted August 6, 2009 I put that check in the loop and it still just keeps going and doesn't click, I will try the pixel search now.
inmysights Posted August 6, 2009 Author Posted August 6, 2009 I am trying toget the pixel detection to work, doesn't seem to work correctly here is what I am using: $coord = PixelGetColor( 677, 685) If $coord = PixelSearch( 676, 684, 678, 686, 0x92E74D ,10) Then MouseClick("left", 677, 685) EndIf
somdcomputerguy Posted August 6, 2009 Posted August 6, 2009 Try the example code for PixelSearch, after changed to suit your need. Those 2 pixel functions have different return types, so your code in #25 won't work I believe. - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change.
inmysights Posted August 6, 2009 Author Posted August 6, 2009 (edited) ok, I tried the pixel search both ways, and I cannot get it to work either. I am not coming up with any reason why it doesnt work. Edited August 6, 2009 by inmysights
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