My basic script use for MPC-HC64.exe (Media Player Classic 64 bit)

Post your working scripts, libraries and tools for AHK v1.1 and older
ThewarII
Posts: 49
Joined: 01 Oct 2014, 09:33

My basic script use for MPC-HC64.exe (Media Player Classic 64 bit)

Post by ThewarII » 13 Apr 2021, 11:03

First Step:
- Open mpc-hc64.exe
- Go to View >> Options
image.png
image.png (19.53 KiB) Viewed 1382 times
In Options >> Select "Keys" in Player
You will see lists ID keys in below
image.png
image.png (42.65 KiB) Viewed 1382 times
You can use that ID in code of Autohotkey in below for control MPC-HC without it active.
And this is basic script you can do
image.png
image.png (17.88 KiB) Viewed 1382 times

Code: Select all

#SingleInstance,Force
#MaxHotkeysPerInterval,1000
#MaxThreadsPerHotkey,2
#Persistent
#NoEnv
DetectHiddenWindows,On
SetTitleMatchMode,2
SetBatchLines,-1
DllCall("dwmapi\DwmEnableComposition","uint",0)

$+WheelUp::
PostMessage, 0x111, 907,,, ahk_class MediaPlayerClassicW ;volume up.
Return

$+WheelDown::
PostMessage, 0x111, 908,,, ahk_class MediaPlayerClassicW ;volume down.
Return
P/s: must have code

Code: Select all

DetectHiddenWindows,On
SetTitleMatchMode,2 ;you can use 3 replace for 2
Last edited by ThewarII on 08 Jun 2021, 07:25, edited 2 times in total.
User avatar
jasc2v8
Posts: 59
Joined: 10 Dec 2020, 12:24
Contact:

Re: My basic script use for MPC-HC64.exe (Media Player Classic 64 bit)

Post by jasc2v8 » 13 Apr 2021, 11:14

Cool, thanks for sharing.
It appears MPC-HC is end of life, but "should" work for some years to come on Windows.
https://mpc-hc.org/
ThewarII
Posts: 49
Joined: 01 Oct 2014, 09:33

Re: My basic script use for MPC-HC64.exe (Media Player Classic 64 bit)

Post by ThewarII » 08 Jun 2021, 07:27

jasc2v8 wrote:
13 Apr 2021, 11:14
Cool, thanks for sharing.
It appears MPC-HC is end of life, but "should" work for some years to come on Windows.
https://mpc-hc.org/
Welcome.
rommmcek wrote:
14 Apr 2021, 10:52
Further messages and parameters for MPC-HC64.
Yea i know.
I :superhappy:(happy) when I know about AHK.
I have & am using AHK to do anything in windows microsoft.
The first time, I know it in around year 2013.
Post Reply

Return to “Scripts and Functions (v1)”