Darkcow Posted July 17, 2005 Author Share Posted July 17, 2005 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 Link to comment Share on other sites More sharing options...
Darkcow Posted July 17, 2005 Author Share Posted July 17, 2005 I'll give $20 to whoever can do this script lol. Link to comment Share on other sites More sharing options...
deano Posted July 17, 2005 Share Posted July 17, 2005 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 More sharing options...
Darkcow Posted July 17, 2005 Author Share Posted July 17, 2005 I tried that script, same results Link to comment Share on other sites More sharing options...
therks Posted July 17, 2005 Share Posted July 17, 2005 Perhaps sounds cannot be played while the window is focused because it has total control of the audio device? Can you play any audio files while your game is focused? My AutoIt Stuff | My Github Link to comment Share on other sites More sharing options...
jefhal Posted July 17, 2005 Share Posted July 17, 2005 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 More sharing options...
GaryFrost Posted July 17, 2005 Share Posted July 17, 2005 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 fileBeep --------------------------------------------------------------------------------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 More sharing options...
jefhal Posted July 17, 2005 Share Posted July 17, 2005 Or if your using beta, you could use: from the beta help fileThis 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now