Send Command Only When Program Is Active

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
thebib622
Posts: 25
Joined: 01 Aug 2017, 17:09

Send Command Only When Program Is Active

20 Sep 2017, 01:44

Hello, I tried making this myself, but I wasn’t able to do it. (I looked here https://www.autohotkey.com/docs/commands/WinActive.htm)

I want a script made that will automatically FULLSCREEN my video player (PotPlayer should be the window title) when it detects it has been opened.

The FULLSCREEN command is ENTER.

I am hoping this is easy for someone to assistant me with. Thank you for anyone that spends time trying to help.
BoBo
Posts: 6564
Joined: 13 May 2014, 17:15

Re: Send Command Only When Program Is Active

20 Sep 2017, 02:12

Looks like potplayer is using an ini-file to keep its settings: https://forum.videohelp.com/threads/352 ... ia-ini-reg

So what about to use AHK's INIWrite to change the "fullscreen"-flag accordingly?

PS. PP seems to save its settings at the registry by default: HKEY_CURRENT_USER\Software\Daum\PotPlayerMini64 :?:
So you could use AHK's RegRead/-Write to trigger them there as well.

PPS. PP can be started using a specific configuration file ...

Code: Select all

Usage : PotPlayer[Mini].exe "filename" [options]

/filedlg		: Open file dialog
/urldlg			: Open url dialog
/folderdlg  		: Open folder dialog
/simple			: Open file navigator
/cap			: Open screen capture
/cam			: Open webcam/Other devices
/atv[:ch]		: Open Analog TV
/dtv[:ch]		: Open Digital TV
/dvd			: Open DVD
/cd[:drive]		: Open a cd drive
/add			: Add to playlist
/autoplay   		: Play the last played file
config="preset name"	: Use the specified preset

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Billykid, Google [Bot] and 209 guests