title: media player classic - jump to point in video/audio programmatically
body: <p>In Media Player Classic I found a way to jump to a point in a video/audio programmatically, avoiding the <code>Go To...</code> box.
  The jump distances are available at <kbd>Options</kbd> → <kbd>Tweaks</kbd>,
  and <code>HKEY_CURRENT_USER\Software\MPC-HC\MPC-HC\Settings</code>
  (<code>JumpDistL</code>/<code>JumpDistM</code>/<code>JumpDistS</code>).</p>
  
  <p>What I do is find the jump distances in the address space of Media Player Classic, and set the value of the large jump distance such
  that if you applied it to the elapsed time you would get the desired time.</p>
  
  <p>I then send a <code>WM_COMMAND</code> message with parameter <code>903</code>/<code>904</code> (all via AutoHotkey. I get the elapsed time by retrieving/parsing the contents of the <kbd>Edit</kbd> control.)</p>
  
  <p>Because the jump is <em>relative</em> to the current point, it is imprecise,
  and arrives within a second of the right time, but doesn't arrive
  at exactly the same point each time.</p>
  
  <p>Is there a more direct way of accomplishing this and if not,
  would any Media Player Classic users/programmers
  consider discussing on the forum, introducing new <code>WM_COMMAND</code> messages
  that allow jump to point (in milliseconds),
  or that retrieve the numerical values listed <a href="http://localhost:13579/variables.html" rel="nofollow noreferrer">here</a>
  (<code>state</code>, <code>position</code>, <code>duration</code>, <code>volumelevel</code>, <code>muted</code>, <code>playbackrate</code>, <code>reloadtime</code>).
  (The method found <a href="http://localhost:13579/variables.html" rel="nofollow noreferrer">here</a> is too slow to get the time accurately, and requires special options be set).</p>