Goldie Posted June 23, 2010 Share Posted June 23, 2010 Hi im pretty new to autoit but ive been looking at the help file etc, if someone could help me with this Im making a script for winamp so when im in a full screen application i can change volume pause play etc i know how controlsend works but the title of winamp changes each time a new song comes up. So could someone show me how to get the title of winamp everytime it changes Heres what i have so far this works when winamp is open but im still needing to make it work while winamp is in background. expandcollapse popupHotKeySet("{NUMPAD9}", "volumemax") HotKeySet("{NUMPAD8}", "volumemedhigh") HotKeySet("{NUMPAD7}", "volumemedium") HotKeySet("{NUMPAD0}", "pause") HotKeySet("{NUMPADENTER}", "play") HotKeySet("{NUMPAD1}", "radioone") HotKeySet("{NUMPAD2}", "radiotwo") HotKeySet("{NUMPAD3}", "radiothree") While 1 Sleep(1000) WEnd Func volumemax() sleep(1000) mouseclick("Left",285,89,1) EndFunc func volumemedhigh() sleep(1000) mouseclick("left",246,89,1) EndFunc func volumemedium() sleep(1000) mouseclick("left",236,89,1) EndFunc func pause() sleep(1000) mouseclick("left",84,131,1) EndFunc func play() sleep(1000) mouseclick("left",50,131,1) EndFunc func radioone() sleep(1000) mouseclick("left",72,588,1) sleep(1000) mouseclick("left",552,233,2) EndFunc func radiotwo() sleep(1000) mouseclick("left",72,588,1) sleep(1000) mouseclick("left",552,223,2) EndFunc func radiothree() sleep(1000) mouseclick("left",72,588,1) sleep(1000) mouseclick("left",552,252,2) EndFunc Link to comment Share on other sites More sharing options...
somdcomputerguy Posted June 23, 2010 Share Posted June 23, 2010 (edited) Look up this in the Help file, Opt("WinTitleMatchMode", 1) ;1=start, 2=subStr, 3=exact, 4=advanced, -1 to -4=Nocase Also, look at this UDF, Winamp Library [on pure AutoIt] - AutoIt Forums, by MrCreatoR. Edited June 23, 2010 by somdcomputerguy - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change. Link to comment Share on other sites More sharing options...
Goldie Posted June 23, 2010 Author Share Posted June 23, 2010 Thank you very much 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