Jump to content
Sign in to follow this  
pumaz77

Help a noob for do first auto it please

Recommended Posts

pumaz77

i didn't recieved any replies from the v2 section.. maybe because i have the v3 version. might as well post it here

I 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.

Posted Image

when the "discs hit the buttons"

Posted Image

Posted Image

the script will send a key to press the corresponding buttons for each discs

Doing This:

Posted Image

Share this post


Link to post
Share on other sites
Generator

Um o2jam. Try to use pixelsearch and see if it works first. Then go further.

Share this post


Link to post
Share on other sites
pumaz77

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()

EndFunc

But dont work, I dont understand PixelSearch :/

Edit :

Example :

I need only check red zone

Posted Image

example please :s

(if the red zone isnt black > press S)

Edited by pumaz77

Share this post


Link to post
Share on other sites
Generator

Thanks for fast reply, I have try it :

But dont work, I dont understand PixelSearch :/

Edit :

Example :

I need only check red zone

Posted Image

example 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.

Share this post


Link to post
Share on other sites
pumaz77

Its ok ! My script 100% work, thanks ! :)

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  

×