Play with Coding

2 posters

Go down

Play with Coding Empty Play with Coding

Post by rr1050 Tue Jun 23, 2020 9:41 pm

hello there,

I am playing a video file through Excel VBA code.
I set the screen to viewpreset 2, but I want to seek bar in my view.
I do not want to set viewpreset 3 or 1, then how I can add seek bar through a code in below code.

Thanks, RR

Code:

Shell "C:\Program Files (x86)\K-Lite Codec Pack\MPC-HC64\mpc-hc64.exe /viewpreset 2 /close "

rr1050

Posts : 6
Join date : 2020-06-23

Back to top Go down

Play with Coding Empty Re: Play with Coding

Post by Admin Tue Jun 23, 2020 11:49 pm

Preset 2 is with seekbar. I assume you mean without seekbar, so only borders?

You can manipulate the setting in the Registry:
REG ADD HKEY_CURRENT_USER\Software\MPC-HC\MPC-HC\Settings /v ControlState /t REG_DWORD /d 0

Admin
Admin

Posts : 7632
Join date : 2011-06-17

https://codecs.forumotion.net

Back to top Go down

Play with Coding Empty Re: Play with Coding

Post by rr1050 Wed Jun 24, 2020 11:40 am

No sir, I want seekbar with viewpreset 2 setting.

How to change registry?

rr1050

Posts : 6
Join date : 2020-06-23

Back to top Go down

Play with Coding Empty Re: Play with Coding

Post by Admin Wed Jun 24, 2020 1:48 pm

Viewpreset 2 already has seekbar!

If you want viewpreset 1, so no borders, menus, or other controls, but enable seekbar. Then use this command line to change settings in Registry:
REG ADD HKEY_CURRENT_USER\Software\MPC-HC\MPC-HC\Settings /v ControlState /t REG_DWORD /d 1
REG ADD HKEY_CURRENT_USER\Software\MPC-HC\MPC-HC\Settings /v HideCaptionMenu /t REG_DWORD /d 3

Admin
Admin

Posts : 7632
Join date : 2011-06-17

https://codecs.forumotion.net

Back to top Go down

Play with Coding Empty Re: Play with Coding

Post by rr1050 Wed Jun 24, 2020 2:26 pm

My bad completely, I required the "Status" which shows the how much time video play and left below seek bar.

Pls help with this...

rr1050

Posts : 6
Join date : 2020-06-23

Back to top Go down

Play with Coding Empty Re: Play with Coding

Post by Admin Wed Jun 24, 2020 5:16 pm

Code:
Shell "REG ADD HKEY_CURRENT_USER\Software\MPC-HC\MPC-HC\Settings /v ControlState /t REG_DWORD /d 16"
Shell "C:\Program Files (x86)\K-Lite Codec Pack\MPC-HC64\mpc-hc64.exe /close"

Admin
Admin

Posts : 7632
Join date : 2011-06-17

https://codecs.forumotion.net

Back to top Go down

Play with Coding Empty Re: Play with Coding

Post by rr1050 Wed Jun 24, 2020 7:27 pm

It worked, but seek bar is disappeared.

I admitted my bad earlier, my requirement is seek bar and status.

Pls help out.

rr1050

Posts : 6
Join date : 2020-06-23

Back to top Go down

Play with Coding Empty Re: Play with Coding

Post by Admin Wed Jun 24, 2020 10:16 pm

Use value 17 instead of 16 for ControlState

Admin
Admin

Posts : 7632
Join date : 2011-06-17

https://codecs.forumotion.net

Back to top Go down

Play with Coding Empty Re: Play with Coding

Post by rr1050 Thu Jun 25, 2020 8:34 am

Wow Finally It worked.

Thanks for helping me, Only I changed to F 17 instead of D17.

rr1050

Posts : 6
Join date : 2020-06-23

Back to top Go down

Play with Coding Empty Re: Play with Coding

Post by rr1050 Thu Jun 25, 2020 8:30 pm

One more thoughts, can i give command to player CTRL-5 by excel VBA?

What could be code?

rr1050

Posts : 6
Join date : 2020-06-23

Back to top Go down

Play with Coding Empty Re: Play with Coding

Post by Admin Thu Jun 25, 2020 9:55 pm

Use google to find answer. I have never written VBA code.

Admin
Admin

Posts : 7632
Join date : 2011-06-17

https://codecs.forumotion.net

Back to top Go down

Play with Coding Empty Re: Play with Coding

Post by Admin Thu Jun 25, 2020 9:57 pm


Admin
Admin

Posts : 7632
Join date : 2011-06-17

https://codecs.forumotion.net

Back to top Go down

Play with Coding Empty Re: Play with Coding

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum