Jump to content

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


Recommended Posts

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.

Link to post
Share on other sites

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 ?

Link to post
Share on other sites

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

Link to post
Share on other sites
  • 2 weeks later...

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.

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
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...