 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
cuzabis
Joined: 29 Jun 2006 Posts: 45
|
Posted: Sat Jul 15, 2006 8:29 am Post subject: Hotkey Windows Media Player while minimized |
|
|
this will hotkey Windows mediaplayer while minimized
I added a lot of notes to decribe each
some will automatically switch to last open window, some (like open) will stay on top so you can make your selections
anyways I hope you enjoy this super long code, took me a while to get the kinks out
| Code: | ; all will work while MINIMIZED and in skin mode etc
; most will open WMP for a second, and go back to last window viewed
; except the ones where you need to see the screen
; basically I used winmedia player hotkeys and put an ALT in
; this way there is less mix up with other programs
; CTRL+ALT+E
; EJECT DISC
; doesnt minimize after execution
^!e::
WinWait, Windows Media Player,
IfWinNotActive, Windows Media Player, , WinActivate, Windows Media Player,
WinWaitActive, Windows Media Player,
SEND, ^e
Sleep, 100
return
; CTRL+ALT+O
; OPEN FILE (playlist, mp3, avi, wmv...)
; doesnt minimize after execution
^!O::
WinWait, Windows Media Player,
IfWinNotActive, Windows Media Player, , WinActivate, Windows Media Player,
WinWaitActive, Windows Media Player,
SEND, ^o
Sleep, 100
return
; CTRL+ALT+U
; OPEN URL
; doesnt minimize after execution
^!u::
WinWait, Windows Media Player,
IfWinNotActive, Windows Media Player, , WinActivate, Windows Media Player,
WinWaitActive, Windows Media Player,
SEND, ^u
Sleep, 100
return
; CTRL+ALT+H
; SHUFFLE mode on/off
; minimizes after execution
^!h::
WinWait, Windows Media Player,
IfWinNotActive, Windows Media Player, , WinActivate, Windows Media Player,
WinWaitActive, Windows Media Player,
SEND, ^h
Send, {ALTDOWN}{TAB}{ALTUP}
Sleep, 100
return
; CTRL+ALT+T
; REPEAT mode on/off
; minimizes after execution
^!t::
WinWait, Windows Media Player,
IfWinNotActive, Windows Media Player, , WinActivate, Windows Media Player,
WinWaitActive, Windows Media Player,
SEND, ^t
Send, {ALTDOWN}{TAB}{ALTUP}
Sleep, 100
return
; CTRL+ALT+G
; this is to play next vid, when media player is in fullscreen mode
; this will also move mouse away after clicking
; so that it goes fullscreen again
; just an alternative to alt+F
; DO NOT USE CTRL+ALT+B or F for this, it will remove full screen
; AN ALTERNATIVE TO THIS IS CTRL+F (built into mediaplayer)
^!g::
Click down 132, 748
Sleep 100
Click Up 132, 748
Sleep 85
MouseMove 452, 348
return
; CTRL+ALT+P
; Play/Pause
; minimizes after execution
^!P::
WinWait, Windows Media Player,
IfWinNotActive, Windows Media Player, , WinActivate, Windows Media Player,
WinWaitActive, Windows Media Player,
SEND, ^p
Sleep, 100
Send, {ALTDOWN}{TAB}{ALTUP}
Sleep, 100
return
; CTRL+ALT+S
; STOP playback
; minimizes after execution
^!S::
WinWait, Windows Media Player,
IfWinNotActive, Windows Media Player, , WinActivate, Windows Media Player,
WinWaitActive, Windows Media Player,
SEND, ^s
Send, {ALTDOWN}{TAB}{ALTUP}
Sleep, 100
return
; CTRL+ALT+F8
; MUTE/UNMUTE volume
; minimizes after execution
^!f8::
WinWait, Windows Media Player,
IfWinNotActive, Windows Media Player, , WinActivate, Windows Media Player,
WinWaitActive, Windows Media Player,
SEND, {f8}
Send, {ALTDOWN}{TAB}{ALTUP}
Sleep, 100
return
; CTRL+ALT+F10
; INCREASE VOLUME
; does not minimize after execution
^!f10::
WinWait, Windows Media Player,
IfWinNotActive, Windows Media Player, , WinActivate, Windows Media Player,
WinWaitActive, Windows Media Player,
SEND, {f10}
Sleep, 100
return
; CTRL+ALT+F9
; INCREASE VOLUME
; does not minimize after execution
^!f9::
WinWait, Windows Media Player,
IfWinNotActive, Windows Media Player, , WinActivate, Windows Media Player,
WinWaitActive, Windows Media Player,
SEND, {f9}
Sleep, 100
return
; CTRL+ALT+B
; Previous song in playlist (BACK)
; minimizes after execution
^!b::
WinWait, Windows Media Player,
IfWinNotActive, Windows Media Player, , WinActivate, Windows Media Player,
WinWaitActive, Windows Media Player,
SEND, ^b
Send, {ALTDOWN}{TAB}{ALTUP}
Sleep, 100
return
; CTRL+ALT+F
; Next song in playlist (FORWARD)
; minimizes after execution
^!f::
WinWait, Windows Media Player,
IfWinNotActive, Windows Media Player, , WinActivate, Windows Media Player,
WinWaitActive, Windows Media Player,
SEND, ^f
Send, {ALTDOWN}{TAB}{ALTUP}
Sleep, 100
return
; CTRL+ALT+SHIFT+B
; Rewind (does not work for all media)
; does not minimize after execution
; sorry I know its a lot of keys, but just two like this, lol
^!+b::
WinWait, Windows Media Player,
IfWinNotActive, Windows Media Player, , WinActivate, Windows Media Player,
WinWaitActive, Windows Media Player,
SEND, ^+b
Sleep, 100
return
; CTRL+ALT+SHIFT+F
; FASTFORWARD (does not work for all media)
; does not minimize after execution
; sorry I know its a lot of keys, but just two like this, lol
^!+f::
WinWait, Windows Media Player,
IfWinNotActive, Windows Media Player, , WinActivate, Windows Media Player,
WinWaitActive, Windows Media Player,
SEND, ^+f
Sleep, 100
return
; I AM NOT GOING TO ADD PLAY SPEED ADJUSTERS
; too many keys (like above)
; IF YOU WANT THEM EMAIL ME
; cuzabis@hotmail.com
; HOPE YOU ENJOY.... CUZABIS
; END |
|
|
| Back to top |
|
 |
Quazzimus Guest
|
Posted: Fri Apr 04, 2008 5:49 pm Post subject: How to use this? |
|
|
I would really love to use this, but i am not a programmer, nor do i know what to save it as and how to use it. I hope I am not annoying you with this question, but how do I use this ?
what to save it as, and how to run it ? |
|
| Back to top |
|
 |
Me Guest
|
Posted: Fri Apr 04, 2008 6:27 pm Post subject: Re: How to use this? |
|
|
| Quazzimus wrote: | I would really love to use this, but i am not a programmer, nor do i know what to save it as and how to use it. I hope I am not annoying you with this question, but how do I use this ?
what to save it as, and how to run it ? |
Save the script as anyname.ahk and compile it to an *.exe file using Ahk2Exe.exe ( included in the AutoHotKey download package ) |
|
| Back to top |
|
 |
soggos
Joined: 27 Mar 2008 Posts: 30
|
Posted: Fri Apr 04, 2008 6:30 pm Post subject: Re: How to use this? |
|
|
| Quazzimus wrote: | I would really love to use this, but i am not a programmer, nor do i know what to save it as and how to use it. I hope I am not annoying you with this question, but how do I use this ?
what to save it as, and how to run it ? |
hello,
with the compileur includ in the folder of AutoHotkey.
you must download http://www.autohotkey.com/download/
install it!
after going in the folder of him!
look at for Compiler & Ahk2Exe.exe run it!
parametrage very simple: the directory of the script and the name of your result ...
but before you can change hotkey in the script.
AutoHotkey c'est génialement puissant
[søggøs] |
|
| Back to top |
|
 |
tally
Joined: 06 Apr 2008 Posts: 7
|
Posted: Tue Apr 08, 2008 6:41 am Post subject: |
|
|
This is my personal one, kinda messy, maybe buggy, i took a lot out because it was just bad... made this in the course of about 5 minutes
good work though, i saved it and i might enjoy using it
| Code: |
#notrayicon
#NoEnv
SendMode Input
SetWorkingDir %A_ScriptDir%
#InstallMouseHook
#InstallKeybdHook
GetKeyState, Numstate, Numlock, T
if Numstate = U
{
Send, {Numlock}
}
else
{
sleep, 0
}
A_mediaplayer = %A_ProgramFiles%\Windows Media Player\wmplayer.exe
Gui, Add, Text, x43 y10 w120 h20 , Windows Media Control
Gui, Show, x272 y307 h50 w200, Windows Media
^+M::
run %A_mediaplayer%
return
$*^PgUp::
Send {Volume_Up}
return
$*^PgDn::
Send {Volume_Down}
return
$*^Home::
Send {Media_Prev}
return
$*^End::
Send {Media_Next}
return
$*^Numpad7::
Send {Media_Play_Pause}
return
$*^Numpad8::
Send {Media_Stop}
return
guiclose:
exitapp
return
|
|
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|