;this script does the following for watching video on Hulu.com ; *launches hulu.com ; *mutes the volume during commercials ; *sets the computer to presentation mode and returns it to normal after it is done ; *unmutes the computer at the start and then mutes it again when you exit ;start splash screen to give exit instructions SplashTextOn , 300, 25, HuluLauncher by JH, Press Ctrl+Alt+x to exit this program. ;launch hulu.com website run, http://www.hulu.com/browse/alphabetical/tv ;put the computer into presentation mode so that the screen doesn't turn off Run, powercfg /S "Presentation" ;unmute the computer at the start SoundSet , 0, , mute SplashTextOff Loop ;this loop handles the muting during commercials { sleep, 250 ;this keeps it from running constantly and using too many resources. CoordMode Pixel ;this makes the pixelsearch below be relative to the screen not any given window Pixelsearch, Foundx1, Foundy1, 0, 0, 1, 1, 0x363636, 0, Fast ;finds a pixel of 0x363636 in the box bounded by 0,0,1,1 if ErrorLevel ;returns and error if it doesn't find a match for the pixel color SoundSet, 0, , mute ;un-mute system else ; SoundSet, 1, , mute ;mute system } return ;defines the end of the autoexecute section everything below won't actually be run unless the hotkey is pressed ^!x:: ;ctrl+x, exits program and resets power settings, mutes system Run, powercfg /S "Home/Office Desk" SoundSet, 1, , mute ;mute system exitapp