AutoHotkey Community

It is currently May 25th, 2012, 11:01 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: WMP minimode
PostPosted: January 23rd, 2008, 9:20 pm 
Offline

Joined: May 17th, 2007, 4:49 pm
Posts: 38
How I can press return button on wmp minimode
Image

Like postmessage or controlclick etc.

I tried AutoIt3 Windows Spy, Winspector Spy and Au3Info and I didn't get wm_command or controlclick things


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 23rd, 2008, 10:33 pm 
Offline

Joined: June 15th, 2007, 11:00 am
Posts: 23
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 23rd, 2008, 11:44 pm 
Offline

Joined: September 1st, 2007, 8:56 pm
Posts: 120
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).


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 24th, 2008, 3:23 pm 
Offline

Joined: May 17th, 2007, 4:49 pm
Posts: 38
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


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: LazyMan, Maestr0, RaptorX, rbrtryn, vsub and 10 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