lopolop Posted February 6, 2008 Share Posted February 6, 2008 well here is my problem im trying to make a simple autoit program to fix my Music problem, Foobar not sure if you've heard of it is an awesome free music well.. player i can customize it to my likening and its pretty simple... can get complicated, anyways i have a separate 3rd party program that works with it called MiniLyrics which simply displays the lyrics of the song im playing. My problem is it doesn't support Foobar minimizing and maximizing so when i minimize foobar minlyrics stays up(all ways on top) and is annoying since i have to right click to minimize.. I got half of this working.. Opt("WinTitleMatchMode", 2) while 1 sleep(300) If WinActive("foobar") == 1 Then If WinExists("MiniLyrics") == 1 Then sleep(1000) Else WinSetState("MiniLyrics", "", @SW_SHOW) WinActivate("foobar") EndIf Else If WinExists("MiniLyrics") == 1 Then WinSetState("MiniLyrics", "", @SW_HIDE) Else sleep(1000) EndIf EndIf WEnd when i minimize it Hides Minilyrics but when i maximize or return focus it wont bring it back up... i see what the problem is because after hiding minilyrics it Always "Exists" and never thinks it has to show it. I cant think of another way to do this. and i am unable to close/restart Minilyrics becuase it doesnt work when i do that i need to exit out of foobar again which isnt worth it.. So any help would be great! Link to comment Share on other sites More sharing options...
Björn Kaiser Posted February 6, 2008 Share Posted February 6, 2008 maybe WinGetState is a better option than WinExist... "I teleported home one nightWith Ron and Sid and Meg.Ron stole Meggie's heart awayAnd I got Sidney's leg."- A poem about matter transference beams. Link to comment Share on other sites More sharing options...
lopolop Posted February 6, 2008 Author Share Posted February 6, 2008 ok it worked thanks alot! Link to comment Share on other sites More sharing options...
SubJunk Posted February 24, 2008 Share Posted February 24, 2008 I have the same problem with MiniLyrics but it happens with iTunes. This doesn't work though... lopolop could you please post the script that ended up working for you please? It has been a bug in MiniLyrics for a while now and I'm getting sick of it. I tried using this: Opt("WinTitleMatchMode", 2) while 1 sleep(300) If WinActive("iTunes") == 1 Then If WinGetState("MiniLyrics 5.6.3363 for iTunes") == 1 Then sleep(1000) Else WinSetState("MiniLyrics 5.6.3363 for iTunes", "", @SW_SHOW) WinActivate("iTunes") EndIf Else If WinGetState("MiniLyrics 5.6.3363 for iTunes") == 1 Then WinSetState("MiniLyrics 5.6.3363 for iTunes", "", @SW_HIDE) Else sleep(1000) EndIf EndIf WEnd but it doesn't work. 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