Cpc197c Posted March 15, 2006 Posted March 15, 2006 Hello, I have little experience with autoit and I was wondering if there is a way to tell if sound is being played at a particular time. This way, I can tell if a program has completely loaded before running the rest of my script. Thanks in advance.
w0uter Posted March 15, 2006 Posted March 15, 2006 hard way: hook MciSendString (or something like that) easy way: find another way without sound My UDF's:;mem stuff_Mem;ftp stuff_FTP ( OLD );inet stuff_INetGetSource ( OLD )_INetGetImage _INetBrowse ( Collection )_EncodeUrl_NetStat_Google;random stuff_iPixelSearch_DiceRoll
Cpc197c Posted March 15, 2006 Author Posted March 15, 2006 (edited) easy way: find another way without sound Any suggestions? I am trying to hook onto WoW to tell when it is loaded. Since it loads at different speeds, the sleep command does not work. Trying to make this work: expandcollapse popupDim $WoWPath Dim $Title $Title = "World of Warcraft" ; Check if WoW running If WinExists($Title) Then ; Do Nothing Else ; Check where WoW is installed, from registry $WoWPath = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Blizzard Entertainment\World of Warcraft", "GamePath") ; Check if the reg entry existed If $WoWPath <> "" Then Run($WoWPath) Else MsgBox(48, "WoW", "WoW has not been detected. If WoW is installed, please start it manually.") EndIf EndIf Sleep(5000) If WinExists($Title) Then ControlSend($Title, "", "", "{p}") ControlSend($Title, "", "", "{q}") ControlSend($Title, "", "", "{s}") ControlSend($Title, "", "", "{s}") ControlSend($Title, "", "", "{w}") ControlSend($Title, "", "", "{o}") ControlSend($Title, "", "", "{r}") ControlSend($Title, "", "", "{d}") ControlSend($Title, "", "", "{1}") //When Loaded Sleep(10) ControlSend($Title, "", "", "{ENTER}") EndIf Exit Edited March 15, 2006 by Cpc197c
Cpc197c Posted March 15, 2006 Author Posted March 15, 2006 After some searching, I found this script...#52534Now all I have to do is modify it to use the stereo out instead of audio in.
w0uter Posted March 15, 2006 Posted March 15, 2006 Any suggestions?pixelgetcolor() ? My UDF's:;mem stuff_Mem;ftp stuff_FTP ( OLD );inet stuff_INetGetSource ( OLD )_INetGetImage _INetBrowse ( Collection )_EncodeUrl_NetStat_Google;random stuff_iPixelSearch_DiceRoll
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