INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: MCC for seeking as a percentage  (Read 625 times)

blgentry

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 8014
MCC for seeking as a percentage
« on: July 06, 2023, 08:31:37 am »

Hello,

A while back I was experimenting with MCC 10048:
Code: [Select]
10048 MCC_SEEK int nPositionMilliseconds
My application is to map hot keys to jump to the middle, end, etc of a playing file.  This MCC doesn't work very well for that particular purpose because it's not possible to calculate the number of milliseconds and then pass it to a hot key, as the hot keys are statically defined in Resource.xml .

I looked for another MCC for Seek that would take a percentage, but I don't think it exists.  Maybe a new one can be created?  Or 10048 could be modified to take a percentage (0 - 100) as an option.  For example the default can be milliseconds but choosing option 1 explicitly would make it a percentage.  Like:
Code: [Select]
<Entry Key="Ctrl;5" Command="10048" Param="50,1" />
Thanks for reading.

Brian.
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42387
  • Shoes gone again!
Re: MCC for seeking as a percentage
« Reply #1 on: July 06, 2023, 09:17:22 am »

We could accept negative numbers to mean percent?  -50 would seek to the middle.  Or we could add a new MCC.  What do you recommend?
Logged
Matt Ashland, JRiver Media Center

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42387
  • Shoes gone again!
Re: MCC for seeking as a percentage
« Reply #2 on: July 06, 2023, 09:20:59 am »

I think just adding this is clean:
NEW: Added an MCC to seek to a percent (MCC_SEEK_PERCENT / 10072).
Logged
Matt Ashland, JRiver Media Center

blgentry

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 8014
Re: MCC for seeking as a percentage
« Reply #3 on: July 07, 2023, 07:39:57 am »

Awesome.  Thanks Matt.  I look forward to seeing it in the next build!

Brian.
Logged

blgentry

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 8014
Re: MCC for seeking as a percentage
« Reply #4 on: July 11, 2023, 02:23:38 pm »

I just tried out the new MCC 10072 .  It works exactly as I hoped it would.  Thanks Matt.  :)

Brian.
Logged
Pages: [1]   Go Up