jeeswg's Media Player Classic tutorial

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

jeeswg's Media Player Classic tutorial

21 Dec 2017, 13:28

CODE EXAMPLES

Some Media Player Classic code:

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



WM_COMMAND EXAMPLES

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)


LINKS

[download link for Media Player Classic + K-Lite Codec Pack Mega]
Download K-Lite Codec Pack Mega
https://www.codecguide.com/download_k-lite_codec_pack_mega.htm

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
http://stackoverflow.com/questions/41310778/media-player-classic-jump-to-point-in-video-audio-programmatically

Any mpc-hc/_struct users can take a look at this api? - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=5&t=38700

Return to “Tutorials”

Who is online

Users browsing this forum: No registered users and 3 guests