Lemures Posted April 5, 2006 Share Posted April 5, 2006 Is there any way to make something in autoit that would sort of listen in on the sound that the computer is outputting, and fire an event on the beat? For example, I have a webpage that is playing some music. Is there any way i could get autoit to click the mouse to the beat, to, say, click through pictures to the beat or something? if not, is there anything else that could do this? Link to comment Share on other sites More sharing options...
Skrip Posted April 5, 2006 Share Posted April 5, 2006 http://www.autoitscript.com/forum/index.php?showforum=2Post this in that forum (Support Forum) [left][sub]We're trapped in the belly of this horrible machine.[/sub][sup]And the machine is bleeding to death...[/sup][sup][/sup][/left] Link to comment Share on other sites More sharing options...
greenmachine Posted April 5, 2006 Share Posted April 5, 2006 Is there any way to make something in autoit that would sort of listen in on the sound that the computer is outputting, and fire an event on the beat? For example, I have a webpage that is playing some music. Is there any way i could get autoit to click the mouse to the beat, to, say, click through pictures to the beat or something? if not, is there anything else that could do this? This is not a general support forum!Does that mean anything? Link to comment Share on other sites More sharing options...
Lemures Posted April 6, 2006 Author Share Posted April 6, 2006 oh snap my apologies, i had them open in different tabs, posted in the wrong one. sorry. can anyone move this post? Link to comment Share on other sites More sharing options...
Infinitex0 Posted April 6, 2006 Share Posted April 6, 2006 I'm pretty sure autoit does not have any such function but "sleep" might help you. The below statement is False.The above statement is True.a lesson I learned from Greenmachine; give a man a code and he'll solve one problem. Teach a man to code and he'll solve all his problems.P.S please don't use autoIt as a virus creator/spyware maker(keyLogger especially)Cick this and help me[center]My Scripts:[/center][center]Port Scanner[/center] Link to comment Share on other sites More sharing options...
dabus Posted April 6, 2006 Share Posted April 6, 2006 Searched for +sound +dllcall and found gafrosts code Func _SoundGetWaveVolume() Local $WaveVol = -1, $p, $ret Const $MMSYSERR_NOERROR = 0 $p = DllStructCreate ("dword") If @error Then SetError(2) Return -2 EndIf $ret = DllCall("winmm.dll", "long", "waveOutGetVolume", "long", -1, "long", DllStructGetPtr ($p)) If ($ret[0] == $MMSYSERR_NOERROR) Then $WaveVol = Round(Dec(StringRight(Hex(DllStructGetData ($p, 1), 8), 4)) / 0xFFFF * 100) Else SetError(1) EndIf DllStructDelete ($p) Return $WaveVol EndFunc;==>_SoundGetWaveVolume 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