Skip to content

Commit

Permalink
Update README about remote control
Browse files Browse the repository at this point in the history
  • Loading branch information
CrendKing committed Sep 15, 2020
1 parent d248549 commit 819d57e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,12 @@ This function takes no argument.
* The optimal buffer sizes depends on the performance of the computer hardware as well as the AviSynth script. If any change is made to to the script during playback, user could use the "Reload" button in the settings page to trigger recalibration.
* Use the input format selectors if user wants to only activate the filter on certain video formats.

## Remote Control and API

Since version 0.6.0, this filter allows other programs to remotely control it via API. By default the functionality is disabled and can be activated by adding a non-zero DWORD value **RemoteControl** to registry key **HKEY_CURRENT_USER\SOFTWARE\AviSynthFilter**.

For details of the API, please refer to the comments in source file [api.h](https://github.com/CrendKing/avisynth_filter/blob/master/avisynth_filter/src/api.h).

## Example script

Add a line of text to videos with less than 20 FPS. Otherwise disconnect the filter.
Expand Down
2 changes: 1 addition & 1 deletion avisynth_filter/src/remote_control.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ auto RemoteControl::Run() -> void {
return;
}

_hWnd = CreateWindowEx(0, wc.lpszClassName, nullptr, 0, 0, 0, 0, 0, 0, nullptr, wc.hInstance, nullptr);
_hWnd = CreateWindowEx(0, wc.lpszClassName, nullptr, 0, 0, 0, 0, 0, nullptr, nullptr, wc.hInstance, nullptr);
if (!_hWnd) {
return;
}
Expand Down

0 comments on commit 819d57e

Please sign in to comment.