AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

WMP minimode

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
0mega



Joined: 17 May 2007
Posts: 38

PostPosted: Wed Jan 23, 2008 8:20 pm    Post subject: WMP minimode Reply with quote

How I can press return button on wmp minimode


Like postmessage or controlclick etc.

I tried AutoIt3 Windows Spy, Winspector Spy and Au3Info and I didn't get wm_command or controlclick things
Back to top
View user's profile Send private message
jayelbird



Joined: 15 Jun 2007
Posts: 23

PostPosted: Wed Jan 23, 2008 9:33 pm    Post subject: Reply with quote

Just set whatever hotkey you are using to run WMP. The hotkey will run it when it isn't running at all and restore it when it is in minimode. You may also try to send a maximize message to WMP, but I have this hotkey set up on my computer and it works fine.
Back to top
View user's profile Send private message
Democratus



Joined: 01 Sep 2007
Posts: 120

PostPosted: Wed Jan 23, 2008 10:44 pm    Post subject: Reply with quote

WMP automatically detects media keys. Even if you don't have a media keyboard, you can at least emulate them (at least, you should), so just emulate Media_Next, Media_Prev(ious), etc. (you can find these in the cml file).
Back to top
View user's profile Send private message
0mega



Joined: 17 May 2007
Posts: 38

PostPosted: Thu Jan 24, 2008 2:23 pm    Post subject: Reply with quote

Yeah, thanks m8s
Is there easier way to get wmp nowplaying song :)
Anyway I did it in this way ; crap

Code:
#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetKeyDelay, -1
SetBatchLines, -1
SetMouseDelay, 1
SetWinDelay, -1
CoordMode, Mouse, Screen
SetDefaultMouseSpeed, 1


!d::
Send {Launch_Media}
Sleep, 30
WinActivate , Windows Media Player
Sleep, 30
WinWaitActive, Windows Media Player
Sleep, 30
SendMessage 0x111,32779,0,,ahk_class WMPlayerApp
Sleep, 30
WinActivate, Ominaisuudet
Sleep, 30
WinActivate , Ominaisuudet
Sleep, 30
ControlFocus,  Edit1, ahk_class #32770
Sleep, 30
ControlGetText, OutputVar3, Edit1, ahk_class #32770
Sleep, 30
ControlFocus,  SysTabControl321, ahk_class #32770
Sleep, 30
SendMessage, 0x1330, 1,, SysTabControl321, A
Sleep, 30
ControlFocus,  Edit1, ahk_class #32770
Sleep, 30
ControlGetText, OutputVar2, Edit1, ahk_class #32770
Sleep, 30
ControlFocus,  Edit2, ahk_class #32770
Sleep, 30
ControlGetText, OutputVar, Edit2, ahk_class #32770
Sleep, 30
clipboard = Np: %OutputVar% - %OutputVar2% [%OutputVar3%]
Sleep, 30
WinClose, Ominaisuudet
Sleep, 30
WinMinimize, Windows Media Player
Return
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group