This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; | |
; Ade's Anti AFK AHK script for WoW | |
; | |
; | |
; How to use this script | |
; | |
; Make sure WoW is running | |
; Start this script by right clicking on it and selecting "Run Script" | |
; Press Shift+Ctrl+F9 to activate the script |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$room="danche" | |
$request_interval=100 | |
Add-Type -AssemblyName System.Windows.Forms | |
function is_stream() { | |
$url="http://www.douyutv.com/"+$room | |
$reply=(New-Object System.Net.WebClient).DownloadString($url) | |
$status = $reply.Contains("feedback-report-button") | |
return $status |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
palette="/tmp/palette.png" | |
filters="fps=10,scale=600:-1:flags=bicubic" | |
ffmpeg -v warning -i $1 -vf "$filters,palettegen" -y $palette | |
ffmpeg -v warning -i $1 -i $palette -lavfi "$filters [x]; [x][1:v] paletteuse" -y $2 |