Thanks to the post from wOxxOm, below the question, I was able to create this AutoHotkey script that solves my original problem: set the software time in Media Player Classic, directly, without using the Go To... field.
It also solves the problem of retrieving video information.
Hotkeys:
- Ctrl + Q to launch the MPC API,
- Ctrl + W to get information,
- Numeric keys to navigate through the video.
;================================================== ^q:: ;start MPC API hWnd := A_ScriptHwnd+0 OnMessage(WM_COPYDATA:=74, "On_WM_COPYDATA") ;64-bit Run, "C:\Program Files (x86)\K-Lite Codec Pack\MPC-HC64\mpc-hc64.exe" /slave %hWnd% ;32-bit ;Run, "C:\Program Files (x86)\K-Lite Codec Pack\MPC-HC\mpc-hc.exe" /slave %hWnd% Return ;================================================== ^w:: ;display information Send(vMPCApiHWnd, 0xA0003004, "") ;CMD_GETCURRENTPOSITION := 0xA0003004 vElapsed := 19990101 vDuration := 19990101 vElapsed += vMPCApiCurrent, S vDuration += vMPCApiDuration, S if (vMPCApiCurrent >= 3600) OR (vMPCApiDuration >= 3600) vFormat := "HH:mm:ss" else vFormat := "mm:ss" FormatTime, vElapsed, %vElapsed%, %vFormat% FormatTime, vDuration, %vDuration%, %vFormat% SplitPath, vMPCApiPath, vName, vDir, vExt, vNameNoExt, vDrive vText = ;continuation section ( title: %vMPCApiTitle% author: %vMPCApiAuthor% description: %vMPCApiDesc% name: %vName% path: %vMPCApiPath% elapsed: %vElapsed% (%vMPCApiCurrent%) duration: %vDuration% (%vMPCApiDuration%) ) MsgBox %vText% Return ;==================================================
USEFUL LINKS:
Sending Strings via SendMessage - Ask a Question - AutoHotkey Community
https://autohotkey.com/board/topic/98334-sending-strings-via-sendmessage/
Media Player Classic - Remote Homecinema MPC API (via WM_COPYDATA) - AutoIt Scripting Scripts - AutoIt Forums
https://www.autoitscript.com/forum/topic/85354-media-player-classic-homecinema-mpc-remote-api-via-wm_copydata/
mpcapi.h
https://raw.githubusercontent.com/jeeb/mpc-be/master/src/apps/mplayerc/mpcapi.h