PotPlayer x64 Function Library

Post your working scripts, libraries and tools
jly
Posts: 57
Joined: 30 Sep 2020, 06:06

Re: PotPlayer x64 Function Library

21 Oct 2020, 08:34

There are several opened potplayer windows on the desktop.
How to use shortcut keys to open the specified video file in the specified window?
Gh0sTG0
Posts: 31
Joined: 25 Jun 2018, 07:58

Re: PotPlayer x64 Function Library

19 Jul 2021, 13:51

Hi. Nice thing. But not works PotPlayer_JumpForward fot me at all... It is doing nothing.
Am I correct that there's no way to move 5 seconds forward (send {Right} somewhere?) except to winactivate->send?
x32
Posts: 139
Joined: 25 Nov 2016, 16:44

Re: PotPlayer x64 Function Library

19 Jul 2021, 19:06

Is Potplayer still around? I thought they had shut down. I haven't had it on my system for a while so the code for jump forward may have changed. I believe the codes were listed in the manual so check and see if it is different than it use to be (0x5005). If it is, change it in the library script.

Also make sure "ahk_class" is still the same. If Potplayer still uses SendMessage for controls then you should not need to activate it to control with this Autohotkey library.

Code: Select all

PotPlayer_JumpForward() ; Set for 5 seconds but seems to jump an arbitrary amount.
		{
		ppct := ppctm()
		newtime := ppct+5000 ; Add 5 seconds to current time.
		SendMessage, 0x0400, 0x5005,newtime,, ahk_class PotPlayer64
		}
Gh0sTG0
Posts: 31
Joined: 25 Jun 2018, 07:58

Re: PotPlayer x64 Function Library

20 Jul 2021, 02:06

x32 wrote:
19 Jul 2021, 19:06
Is Potplayer still around? I thought they had shut down. I haven't had it on my system for a while so the code for jump forward may have changed. I believe the codes were listed in the manual so check and see if it is different than it use to be (0x5005). If it is, change it in the library script.

Also make sure "ahk_class" is still the same. If Potplayer still uses SendMessage for controls then you should not need to activate it to control with this Autohotkey library.

Code: Select all

PotPlayer_JumpForward() ; Set for 5 seconds but seems to jump an arbitrary amount.
		{
		ppct := ppctm()
		newtime := ppct+5000 ; Add 5 seconds to current time.
		SendMessage, 0x0400, 0x5005,newtime,, ahk_class PotPlayer64
		}
Hi. I checked class name, it's "ahk_class PotPlayer64" for me.
Where and how can I check that control names?
Btw I added messagebox, looks like ppctm() gets correct number, next adds them correct number and then just can't send it correct.

I tried playing with "newtime := ppct+5000", changing it to +30000, and looks like it starts working... but it adds =20 seconds to video... That's really strange, but it works, hope it will help someone else if they use this thing.
I played a bit more and find, that for:
- 10000 and less - it moves for 0 seconds
- 10001 - 20000 - adds 10 seconds ~99% of times, some times adds 7 seconds.
- 20001 - adds 10 seconds once if it is on start of video (0 seconds), then adds 20 seconds. Sometimes can add 17 seconds.
- near 30000 it adds 20 seconds, sometimes 27 seconds (maybe it's because some keyframes in video)
- near 35000 it adds 30 seconds.
malcev
Posts: 1135
Joined: 12 Aug 2014, 12:37

Re: PotPlayer x64 Function Library

20 Jul 2021, 05:29

Uncheck
Playback->Jump (to)->Use keyframe to jump to a time.
Gh0sTG0
Posts: 31
Joined: 25 Jun 2018, 07:58

Re: PotPlayer x64 Function Library

20 Jul 2021, 06:16

malcev wrote:
20 Jul 2021, 05:29
Uncheck
Playback->Jump (to)->Use keyframe to jump to a time.
Yep, now works correct. TY.

Return to “Scripts and Functions”

Who is online

Users browsing this forum: Nixcalo and 29 guests