Help - Search - Members - Calendar
Full Version: a quick script
AC Tools Everything Macro > AC Tool > AC Tool Discussion
WinnieOtheWind
My mom said I should ask here about getting the ACTool to do what I need. I don't know much about scripting and am hoping someone can give me something easy to use.

I have a browser window that shows a purple square when I have a message but I am not always looking at my computer. I would like to have the ACTool detect when the box turns purple and then play a chime to let me know that there is a message.

mom says it's something like this..

box location is at (this place on the screen)
if box is white then no action
if box turns purple then play (chime)

Thank you for any help

Ahk
CODE
box location is at (this place on the screen)
if box is white then no action
if box turns purple then play (chime)


CODE
IsWhite at 200, 200 //replace with location of the area to check.
   //Do nothing if white is found
   Delay 1000
Else
  //If white is not found, and there's no other possibilities but purple...
  Loop 5 //Chime 5 times...for more info on Bell command see the help or the readme.txt
    Bell
    Delay 2000
  End
End


You will need to enclose all this in a loop...perhaps While 1 = 1
WinnieOtheWind
Thank you very much smile.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.