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
# Deletes some discord cache files which can cause video stream to be low quality, jittery or lowered bitrate. | |
# You can run this with discord running and it should restart discord afterwards. | |
$answer = [System.Windows.Forms.MessageBox]::Show("Do you want to clear discord cache files","Do you really want to been as far even as decided to use even go want to do look more like?", "YesNo", "Hand", "Button1") | |
if($answer -match 'No'){ | |
Write-Output $answer | |
exit | |
} | |
# Self-elevate the script if required | |
if (-Not ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] 'Administrator')) { | |
if ([int](Get-CimInstance -Class Win32_OperatingSystem | Select-Object -ExpandProperty BuildNumber) -ge 6000) { |
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
;Stop start isnt working stop script manually. | |
#NoEnv | |
#Persistent | |
global KeepRunning := False | |
sendData(){ | |
Loop, read, file.txt | |
{ | |
if (KeepRunning = true){ | |
Send {Text}!t %A_LoopReadLine% | |
Send {Enter} |