McIvor Posted April 28, 2008 Report Share Posted April 28, 2008 Basically I'm a bit stumbled with this and was wondering if any of you gentlemen could help me out with this and if it's possible The main problem I'm having is that I use this macro for World of Warcraft and what it does is it grabs the song name from Windows Media Player 'window' title and then pastes/edits it and puts it in WoW. This all requires that I need to activate the WMP and then it goes back into an activated WoW. Really, I just want to know if there is a way to grab the text from a window title of Windows media player without having to activate that window and have it go back to the WoW window. Here is my macro that I use atm. I have one that I also need to press F12 for before it spams the song title. <TVAR2:02:02:FWhere is this message going? Say, Yell, Party, Raid, Guild, 1234567? s y p ra gTTCenter:Center><BEEP><BEEP><BEEP><ACTIVATE2:Windows Media Player><ACTIVATE2:Windows Media Player><WMAX:Windows Media Player><WAITWIN2:000000:000003:Windows Media Player><TVAR2:01:06:><IFVAR2:1:01:7:Windows><IVAR2:01:13:1: - Windows Media Player><TMVAR2:11:01:00:N01:N01:><ENDIF><VARSR:01><ACTIVATE2:World of Warcraft><WMAX:World of Warcraft><WAITWLF2:000010:000000:Windows Media Player><WAITWIN2:000010:000000:World of Warcraft><VARSR:05><TEXTTYPE:<ENTER>><WAITPB><TEXTTYPE:/%T2% {Moon}LeetBot{Moon} Now Playing: %T1%.<ENTER>><REM2:Loop Begin><REP3:08:000001:000002:0018:0:01:1><DELAY:200><BEEP><BEEP><BEEP><ACTIVATE2:Windows Media Player><ACTIVATE2:Windows Media Player><WMAX:Windows Media Player><WAITWIN2:000000:000003:Windows Media Player><TVAR2:01:06:><IFVAR2:1:01:7:Windows><IVAR2:01:13:1: - Windows Media Player><TMVAR2:11:01:00:N01:N01:><ENDIF><VARSR:01><ACTIVATE2:World of Warcraft><WMAX:World of Warcraft><WAITWLF2:000010:000000:Windows Media Player><WAITWIN2:000010:000000:World of Warcraft><VARSR:05><TEXTTYPE:<ENTER>><WAITPB><TEXTTYPE:/%T2% {Moon}LeetBot{Moon} Now Playing: %T1%.<ENTER>><ENDREP> Any help is appreciated, thanks a lot; Jon. Quote Link to comment Share on other sites More sharing options...
stan Posted April 28, 2008 Report Share Posted April 28, 2008 Hi Jon, Use the Repeat with Windows command. This looks at each window running on the computer and saves the window title to a variable such as T1. After the repeat, insert an If Variable command, If Variable T1 contains Windows Media Player. This section of the macro would look something like this: Repeat with Windows: Place title in %T1% If Variable %T1% contains "Windows Media Player" Repeat Exit End If Repeat End This will break out of the loop when it finds Windows Media Player and will save the title to T1, which can then be used later in the macro. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.