Jump to content

Focus Problem


Recommended Posts

Script didn't work, now i'm clueless....

Anyone have any fixes for this, or ever had this problem? I'm starting to think its unfixable :)

<{POST_SNAPBACK}>

try this:

do
$a = random(3,86)
$b = random(10,95)
$k = pixelgetcolor($a,$b)
$pix = 0xEF8E00; < color you're looking for.
$pnum = hex($pix, 8)
$hnum = hex($k, 8)
If $pnum = $hnum Then
SoundPlay(@WindowsDir & "\media\Windows XP Battery Critical.wav",1)
EndIf
until 0 > 1

i posted it on dahelp aswell for you

Link to comment
Share on other sites

For debugging, how about making two changes:

1. Look for a simpler color, like black or white, just in case the color-mapping is off, and,

2. Instead of making a .wav file play, just have a msgbox pop up? Maybe that wouldn't be any different than running AIM?

I tried this:

$var = Chr(7)
MsgBox(0,"",$var)

Unfortunately, PC's have replaced the PC-Speaker beep with a sound file being played. Otherwise, you could use the old built-in beep...

...by the way, it's pronounced: "JIF"... Bob Berry --- inventor of the GIF format
Link to comment
Share on other sites

For debugging, how about making two changes:

1. Look for a simpler color, like black or white, just in case the color-mapping is off, and,

2. Instead of making a .wav file play, just have a msgbox pop up? Maybe that wouldn't be any different than running AIM?

I tried this:

$var = Chr(7)
MsgBox(0,"",$var)

Unfortunately, PC's have replaced the PC-Speaker beep with a sound file being played. Otherwise, you could use the old built-in beep...

<{POST_SNAPBACK}>

Or if your using beta, you could use: from the beta help file

Beep

--------------------------------------------------------------------------------

Playsback a beep to the user.

Beep ( [ Frequency [, Duration ]] )

This uses the pc speaker

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Link to comment
Share on other sites

Or if your using beta, you could use: from the beta help file

This uses the pc speaker

<{POST_SNAPBACK}>

Superb! I guess I need to migrate away from the release version help file! :">
...by the way, it's pronounced: "JIF"... Bob Berry --- inventor of the GIF format
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...