AutoHotkey Community

It is currently May 27th, 2012, 3:44 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 11 posts ] 
Author Message
PostPosted: September 5th, 2009, 1:20 am 
Offline

Joined: September 5th, 2009, 1:13 am
Posts: 3
Code:
GroupAdd,mplayer,Windows Media Player
GroupAdd,mplayer,ahk_class WMPTransition


#IfWinActive,ahk_group mplayer
 Space::Send,{Media_Play_Pause}
#Ifwinactive,


Hi, I'm running the code above to use Space to Play/Pause in the new Windows Media Player 12. But this is not working in the full-screen mode.
Maybe the class for wmp fullscreen mode had change. Is there anyway I can find the name of the class?

Thanks


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 5th, 2009, 1:55 am 
Offline

Joined: September 5th, 2009, 1:13 am
Posts: 3
Same class.. but still not working.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 5th, 2009, 1:56 am 
Offline

Joined: April 8th, 2009, 7:49 pm
Posts: 6071
Location: San Diego, California
Have you tried AutoIt3 Window Spy both while wndowed and while fullscreen?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 5th, 2009, 2:00 am 
Offline

Joined: September 5th, 2009, 1:13 am
Posts: 3
Yes, and I confirmed the fullscreen class is still WMPTransition. But the hotkey don“t work under fullscreen mode.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 2nd, 2010, 12:45 pm 
Has anyone found a solution? I find it impossible to control WMP 12 fullscreen (Win7 64). In fullscreen, AHK's Window Spy shows "FullScreenTopLayout" as the window title. The ahk_class alternates between CWmpControlCntr and WMPTransition. I merged all combinations in one group, to no avail. Non-fullscreen WMP12 works fine.
Code:
GroupAdd WMP, Windows Media Player
GroupAdd WMP, ahk_class WMPTransition
GroupAdd WMP, ahk_class WMP Skin Host
GroupAdd WMP, ahk_class CWmpControlCntr
GroupAdd WMP, FullScreenTopLayout


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: July 27th, 2010, 11:59 am 
Offline

Joined: January 13th, 2008, 6:00 pm
Posts: 115
element wrote:
Has anyone found a solution? I find it impossible to control WMP 12 fullscreen (Win7 64). In fullscreen, AHK's Window Spy shows "FullScreenTopLayout" as the window title. The ahk_class alternates between CWmpControlCntr and WMPTransition. I merged all combinations in one group, to no avail. Non-fullscreen WMP12 works fine.
Code:
GroupAdd WMP, Windows Media Player
GroupAdd WMP, ahk_class WMPTransition
GroupAdd WMP, ahk_class WMP Skin Host
GroupAdd WMP, ahk_class CWmpControlCntr
GroupAdd WMP, FullScreenTopLayout


This works for me on Win7 x64:
Code:
GroupAdd, wmp, Windows Media Player
GroupAdd, wmp, ahk_class WMP Skin Host
GroupAdd, wmp, ahk_class WMPTransition
GroupAdd, wmp, FullScreenTopLayout


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 10th, 2010, 4:56 pm 
Offline

Joined: November 17th, 2009, 1:49 am
Posts: 25
Here's what I found working on Windows 7 with WMP 12:
Code:
GroupAdd, WindowsMediaPlayerGroup, Windows Media Player
;-player in its most minimalist state (not fullscreen) and it doesn't matter if the play/pause buttons and duration are on screen or not

GroupAdd, WindowsMediaPlayerGroup, FullScreenTopLayout
;-when in fullscreen and WITH the play/pause buttons and video duration on screen

GroupAdd, WindowsMediaPlayerGroup, ahk_class WMPTransition
;-when in fullscreen and WITHOUT the play/pause buttons and video duration on screen

GroupAdd, WindowsMediaPlayerGroup, ahk_class WMPlayerApp
;-does nothing in WMP12

Hope that helped!

Cheers!


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 3rd, 2010, 1:11 am 
Offline

Joined: September 2nd, 2010, 10:11 pm
Posts: 2
Location: Northern Ireland
I would really like to revive this thread please because I'm having the exact same problem, win7 64 bit, script works for wmp in windowed mode but not fullscreen. Window Spy shows CWmpControlCntrl, but not having any luck with this.

This is the code I'm using. I'm also a complete newbie so I'm not even too sure how to insert the group add thing in so if someone could show me how to do this I would really appreciate it.

Code:
;WinTitle=ahk_class WMPlayerApp
WinTitle=Windows Media Player
return

#IfWinActive, Windows Media Player
{
Space::PostMessage, 0x111, 32808, 0, ,%WinTitle%   ; Play/Pause Track
Enter::PostMessage, 0x111, 18782, 0, ,%WinTitle%   ; Fullscreen
return
}
#IfWinActive, Windows Media Player


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 3rd, 2010, 2:33 am 
Offline

Joined: January 13th, 2008, 6:00 pm
Posts: 115
jusbat wrote:
I would really like to revive this thread please because I'm having the exact same problem, win7 64 bit, script works for wmp in windowed mode but not fullscreen. Window Spy shows CWmpControlCntrl, but not having any luck with this.

This is the code I'm using. I'm also a complete newbie so I'm not even too sure how to insert the group add thing in so if someone could show me how to do this I would really appreciate it.

Code:
;WinTitle=ahk_class WMPlayerApp
WinTitle=Windows Media Player
return

#IfWinActive, Windows Media Player
{
Space::PostMessage, 0x111, 32808, 0, ,%WinTitle%   ; Play/Pause Track
Enter::PostMessage, 0x111, 18782, 0, ,%WinTitle%   ; Fullscreen
return
}
#IfWinActive, Windows Media Player


Try this:
Code:
GroupAdd, wmp, Windows Media Player
GroupAdd, wmp, ahk_class WMP Skin Host
GroupAdd, wmp, ahk_class WMPTransition
GroupAdd, wmp, FullScreenTopLayout
#IfWinActive, ahk_group wmp
Space::Send ^p
Enter::Send !{Enter}
#IfWinActive


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 3rd, 2010, 2:37 am 
Offline

Joined: September 2nd, 2010, 10:11 pm
Posts: 2
Location: Northern Ireland
that worked! thanks very much :D


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 23rd, 2011, 3:47 pm 
Ummm, I didn't completely get the solution you where talking about. But I added some of your code to code which I know already does pause WMP (but not in fullframe) - and voila! It works. Now it pauses in full frame as well. I don't know how, or why, but this code below works for me.

Code:
GroupAdd,mplayer,Windows Media Player
GroupAdd,mplayer,WMPTransition
GroupAdd, wmp, Windows Media Player
GroupAdd, wmp, ahk_class WMP Skin Host
GroupAdd, wmp, ahk_class WMPTransition
GroupAdd, wmp, FullScreenTopLayout
#IfWinActive, ahk_group wmp
Space::Send ^p
Enter::Send !{Enter}
#IfWinActive
#IfWinActive,ahk_group mplayer ; All hotkeys from this point only work when media player is active
 Space::Send,{Media_Play_Pause}
#Ifwinactive, ; All hotkeys from now on work in any window.

; All other hotkeys


Report this post
Top
  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 11 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: bobbysoon, Wicked, Yahoo [Bot] and 20 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group