pumaz77 Posted May 17, 2007 Posted May 17, 2007 i didn't recieved any replies from the v2 section.. maybe because i have the v3 version. might as well post it hereI am new to autoit. I tried autoit to make scripts for my installers, because my friends are having a hard time in installing a ceratin application.I have read all the tutorials in the documentation section. I just want to ask if Autoit can do this certain task. And could you give me an idea what keywords i should use. How can i start coding the script.A keyboard script that will do this.each button corresponds to a certain key in the keyboard.when the "discs hit the buttons"the script will send a key to press the corresponding buttons for each discsDoing This:
Generator Posted May 17, 2007 Posted May 17, 2007 Um o2jam. Try to use pixelsearch and see if it works first. Then go further.
pumaz77 Posted May 17, 2007 Author Posted May 17, 2007 (edited) Um o2jam. Try to use pixelsearch and see if it works first. Then go further.Thanks for fast reply, I have try it :Opt("ColorMode", 0) $var = PixelGetColor( 20 , 435 ) $res = Hex($var, 8)If $res = "00000000" OR $res = "008BAC52" Then Send("{S UP}") Else Send("{S DOWN}") EndIf Lancer()EndFuncBut dont work, I dont understand PixelSearch :/Edit :Example : I need only check red zoneexample please :s(if the red zone isnt black > press S) Edited May 17, 2007 by pumaz77
Generator Posted May 17, 2007 Posted May 17, 2007 Thanks for fast reply, I have try it :But dont work, I dont understand PixelSearch :/Edit :Example : I need only check red zoneexample please :s(if the red zone isnt black > press S)You can use PixelSearch, the parameter is Left Top Bottom Right, Left is how many pixels away from left of your screen, Top is how many pixels away from top of your screen, The Bottom and Right is basically the same thing, so it makes a retctangle, or a square. You can use AdilbEnable to do this check.
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