Jump to content
Sign in to follow this  
renanzin

When Pixel ''x'' in window make a sound alert

Recommended Posts

renanzin

its possible make it in autoit

Pixel ''GREEN'' = MAKE SOUND ALERT one time

Share this post


Link to post
Share on other sites
AlmarM

Hello,

Yes its possible.

Look in the help file for

  • Beep()
  • PixelChecksum()
  • PixelCoordMode (Option)
  • PixelGetColor()
  • PixelSearch()

AlmarM


Minesweeper

A minesweeper game created in autoit, source available.

_Mouse_UDF

An UDF for registering functions to mouse events, made in pure autoit.

2D Hitbox Editor

A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes.

Share this post


Link to post
Share on other sites
Rishav

In the start menu folder for Autoit, you will see a link for AutoIt Help File. open the help file. there you can search for the above listed functions.

Alternately just google each function.

Share this post


Link to post
Share on other sites
renanzin

Global $Paused
HotKeySet("{F7}", "Find")
While 1
   Sleep (100)
Wend
Func Find()
$coord = PixelSearch( 0, 0, 20, 300, 0x16EE66, 10 )
If Not @error Then
    MsgBox(0, "Ta aqui o:", $coord[0] & "," & $coord[1])
EndIf
Exit 0
EndFunc

How i made here to put a one sound =x when find that COLOR 0x16EE66 and for it dont stop continuos and search a colour open sound again ?

Share this post


Link to post
Share on other sites
renanzin

woot *.*

Global $Paused
HotKeySet("{F7}", "Find")
While 1
   Sleep (100)
Wend
Func Find()
$coord = PixelSearch( 0, 0, 20, 300, 0x16EE66, 10 )
If Not @error Then
    SoundPlay(@WindowsDir & "\media\tada.wav",1)
EndIf
Exit 0
EndFunc

Now need to make script non stop =x

Share this post


Link to post
Share on other sites
2words4uready

Do you mean a loop?

Edited by 2words4uready

READ BEFORE POSTINGMy UDF'sMessagesYou say plz because its shorter than please. I say no because its shorter than yes.Join My Website

Share this post


Link to post
Share on other sites
AlmarM

woot *.*

Global $Paused
HotKeySet("{F7}", "Find")
While 1
   Sleep (100)
Wend
Func Find()
$coord = PixelSearch( 0, 0, 20, 300, 0x16EE66, 10 )
If Not @error Then
    SoundPlay(@WindowsDir & "\media\tada.wav",1)
EndIf
Exit 0
EndFunc

Now need to make script non stop =x

Global $Paused
HotKeySet("{F7}", "Find")
While 1
   Sleep (100)
Wend
Func Find()
While 2
$coord = PixelSearch( 0, 0, 20, 300, 0x16EE66, 10 )
If Not @error Then
    SoundPlay(@WindowsDir & "\media\tada.wav",1)
EndIf
WEnd
Exit 0
EndFunc

Minesweeper

A minesweeper game created in autoit, source available.

_Mouse_UDF

An UDF for registering functions to mouse events, made in pure autoit.

2D Hitbox Editor

A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes.

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  

×