jeeswg's Media Player Classic tutorial

Helpful script writing tricks and HowTo's
User avatar
Posts: 4965
Joined: 19 Dec 2016, 01:58
Location: UK

jeeswg's Media Player Classic tutorial

21 Dec 2017, 13:28


Some Media Player Classic code:

Code: [Select all] [Expand] [Download] GeSHi © Codebox Plus


You can use PostMessage/SendMessage with WM_COMMAND to invoke various bits of functionality.

There is a list of items and WM_COMMAND codes here:
'View, Options...',
in the treeview: 'Player, Keys',
all the numbers in the ID column can be used with WM_COMMAND (0x111).

E.g. it says this about 'Play/Pause' (toggle):
'Play/Pause Space 889'
Thus you can use this code to invoke that:

Code: [Select all] [Download] GeSHi © Codebox Plus

SendMessage, 0x111, 889,,, ahk_class MediaPlayerClassicW ;WM_COMMAND := 0x111 ;MEDIA_PLAY_PAUSE (toggle)


[download link for Media Player Classic + K-Lite Codec Pack Mega]
Download K-Lite Codec Pack Mega

Media Player Classic API script I wrote, although generally I prefer to avoid using OnMessage:
winapi - media player classic - jump to point in video/audio programmatically - Stack Overflow

Any mpc-hc/_struct users can take a look at this api? - AutoHotkey Community

Return to “Tutorials”

Who is online

Users browsing this forum: No registered users and 3 guests