Home | Blog | Software | Reviews and Features | Forum | Help | Donate | About us
topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • December 09, 2016, 03:18:46 PM
  • Proudly celebrating 10 years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: IDEA: Use global hotkeys to control Zoom Player Pro  (Read 4550 times)

Josh

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Points: -5
  • Posts: 3,397
    • View Profile
    • Donate to Member
IDEA: Use global hotkeys to control Zoom Player Pro
« on: July 09, 2006, 09:36:40 PM »
I am writing to see if anyone has a way to generate an AHK script to control ZP with hotkeys. I would like the keys to be configurable to do different functions within ZP. If custom keys arent possible, here is a layout of functions I WOULD like;


All keys are using a CTRL + ALT + KEYSPECIFIED combo

Play/Pause:                      C
Stop:                              V
Restart File:                     X
Previous File In Playlist:      Z
Next file in playlist:            B
Quit App:                         Q
Load File:                         L
Skip backwards 5 secs:       Left Arrow
Skip forward 5 secs:           Right Arrow
Volume Up:                       Up Arrow
Volume Down:                   Down Arrow

Let me know if you need more info, and thanks! Perhaps this has already been done, I hope so, but if not I would be eternally greatful as I consider this the only missing feature from zoom player. Thanks again!
« Last Edit: July 10, 2006, 09:54:13 AM by Josh »

kimmchii

  • Honorary Member
  • Joined in 2005
  • **
  • Posts: 360
    • View Profile
    • Donate to Member
Re: IDEA: Use global hotkeys to control Zoom Player Pro
« Reply #1 on: July 09, 2006, 09:52:53 PM »
have you tried zp's options?

right click on it>options
If you find a good solution and become attached to it, the solution may become your next problem.
~Robert Anthony
« Last Edit: July 10, 2006, 03:05:30 AM by kimmchii »

Josh

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Points: -5
  • Posts: 3,397
    • View Profile
    • Donate to Member
Re: IDEA: Use global hotkeys to control Zoom Player Pro
« Reply #2 on: July 09, 2006, 10:57:02 PM »
Yes, and they have stated on their forums they dont support hotkeys.

kimmchii

  • Honorary Member
  • Joined in 2005
  • **
  • Posts: 360
    • View Profile
    • Donate to Member
Re: IDEA: Use global hotkeys to control Zoom Player Pro
« Reply #3 on: July 10, 2006, 02:54:37 AM »
yeah that is too bad, all over the net there are only global hotkey for winamp.
If you find a good solution and become attached to it, the solution may become your next problem.
~Robert Anthony

jgpaiva

  • Global Moderator
  • Joined in 2006
  • *****
  • Posts: 4,727
    • View Profile
    • Donate to Member
Re: IDEA: Use global hotkeys to control Zoom Player Pro
« Reply #4 on: July 10, 2006, 04:04:53 AM »
ZoomPlayer's forum has a section where they mention how to remote control the program, through a program called eventghost. It'd be better than someone making an ahk script since it's already complete and supports much more than the ahk script would support.

If you still would like to have the ahk script instead, i could make it if you found me the windows messages that zoomplayer has for the controls you mentioned.

Here's the link for the forum post about eventghost: http://forum.inmatri...x.php?showtopic=4528

wr975

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 369
    • View Profile
    • Donate to Member
Re: IDEA: Use global hotkeys to control Zoom Player Pro
« Reply #5 on: July 10, 2006, 04:41:37 AM »
I'm using Girder to remote control Zoom Player. Zoom Player comes with a Girder configuration, but I prefer my own.

Anyway, doing it in AHK seems to be pretty easy, because of the command "ControlSend". This script example works fine... I just couldn't find shortcuts for next/previous playlist.

; #NoTrayIcon 
#SingleInstance force

; Play/pause
^!c::
ControlSend,,p,Zoom Player
return

; Stop
^!v::
ControlSend,,s,Zoom Player
return

;Restart (seek to first frame)
^!x::
ControlSend,,t,Zoom Player
return

;Close
^!q::
winclose,Zoom Player
return

;Open File
^!l::
ControlSend,,o,Zoom Player
return
« Last Edit: July 10, 2006, 04:43:35 AM by wr975 »

Josh

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Points: -5
  • Posts: 3,397
    • View Profile
    • Donate to Member
Re: IDEA: Use global hotkeys to control Zoom Player Pro
« Reply #6 on: July 10, 2006, 01:08:52 PM »
OK, I admit it now, your posting this has caused me to further investigate AutoHotKey and I love it. Now, if only I could get this script to work properly with ZP. I have tried what I can to get this to work, perhaps someone here can help.

I have attached my current custom key config for zoom player so that you can test it with the keys I have configured. I have also attached IDEAL.TXT which is the same as what I made in my OP, but has a listing of the search term used when searching for the entry in the edit keys dialog on ZP, plus a second column which has the key I would ideally like to use with the CTRL+ALT combo.

Currently, using these keys causes all sorts of mayhem in ZP. I have tried redefining the keys that have duplicate definitions after editing the desired function, but to no luck. Any help is appreciated!

Also note, as I said above, the first column in ideal.txt is what you can use to search for the associated key in zoom player since I got tired of remembering where to look.

Zoom player can be d/led from www.inmatrix.com
« Last Edit: July 10, 2006, 01:14:21 PM by Josh »

wr975

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 369
    • View Profile
    • Donate to Member
Re: IDEA: Use global hotkeys to control Zoom Player Pro
« Reply #7 on: July 11, 2006, 04:50:22 AM »
Hi,

I've edited your AHK script a bit and tested it on my system. All keys are working.


The main problem: You sent capital letters to ZP, so ZP did different things than expected. Example: "c" is play/pause, but "C" is Chapter Editor.

Also some key combinations were missing in ZP's key list. You've to configure CTRL+F3/F4 for "Skip 5 seconds backwards/forwards" and SHIFT+F3/F4 for "decrease/increase volume" to make the script work, or change the script to send other keys.

I hope the script works now on your system. FYI: I found no way to send the ALT key to ZP. ZP just ignores it. So, if you want to trigger some ALT+ combination in ZP using the script, you've to change the combination in the key list.

#WinActivateForce
#NoTrayIcon 
#SingleInstance force

; ^ = CTRL
; ! = ALT
; + = SHIFT

; Info: ControlSend can't send ALT to Zoom Player


; Run Zoom Player
^!+z::
Run,c:\Program Files\Zoom Player\zplayer.exe
WinActivate,Zoom Player
return

; Play/pause
^!c::
ControlSend,,c,Zoom Player
return

; Stop
^!v::
ControlSend,,v,Zoom Player
return

;Restart (seek to first frame)
^!x::
ControlSend,,x,Zoom Player
return

;Close
^!q::
winclose,Zoom Player
return

;Open File
^!l::
WinActivate,Zoom Player
ControlSend,,l,Zoom Player
return

;Next in playlist
^!b::
ControlSend,,b,Zoom Player
return

;Previous in playlist
^!z::
ControlSend,,z,Zoom Player
return

;Skip backward 5 secs
^!left::
ControlSend,,^{F3},Zoom Player
return

;Skip forward 5 secs
^!right::
ControlSend,,^{F4},Zoom Player
return

;Volume Down
^!Down::
ControlSend,,+{F3},Zoom Player
return

;Volume Up
^!Up::
ControlSend,,+{F4},Zoom Player
return

Josh

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Points: -5
  • Posts: 3,397
    • View Profile
    • Donate to Member
Re: IDEA: Use global hotkeys to control Zoom Player Pro
« Reply #8 on: July 11, 2006, 09:40:07 AM »
Looking good! One final thing, can you get it to work with the arrow keys for Vol Down, Vol Up, Skip Forward, and skip backward?

I.E.

Skip forward -> right arrow
Skip backward -> left arrow
Vol Up -> Up Arrow
Vol Down -> Down Arrow

If you could do this, I would be set! Thanks again for your help!

wr975

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 369
    • View Profile
    • Donate to Member
Re: IDEA: Use global hotkeys to control Zoom Player Pro
« Reply #9 on: July 11, 2006, 12:01:13 PM »
It's already working... as told, you need to configure the key list in Zoom Player.

Anyway, please use attached key list, then it should work fine.


Josh

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Points: -5
  • Posts: 3,397
    • View Profile
    • Donate to Member
Re: IDEA: Use global hotkeys to control Zoom Player Pro
« Reply #10 on: July 11, 2006, 01:02:37 PM »
I dont know what I was really asking, please forgive me. The wife got me up WAY to early today.