Skip to content

Commit

Permalink
Fix cursor showing lol
Browse files Browse the repository at this point in the history
  • Loading branch information
MistressPlague committed Jan 12, 2025
1 parent 19ba8c4 commit 6badd44
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions Automatic OSC Router/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ private static void Main()
Console.Title = "Automatic OSC Router By Kanna";
Console.WriteLine("Welcome to Automatic OSC Router by Kanna. I saw there was router software out there, but they really weren't that good, so i made this! It's fully automatic and can even automatically detect the window titles!");
Console.WriteLine("If you appreciate my work, please consider donating: https://paypal.me/KannaVR");

Console.CursorVisible = false;

using var osc = new OscListener(new IPEndPoint(IPAddress.Loopback, 9001));

Expand Down Expand Up @@ -48,7 +50,6 @@ private static void Main()

if (ToSendDataTo.ContainsKey(i))
{
//Console.WriteLine($"Detected OSC on port {i} shut down, removing sender");
ToSendDataTo.Remove(i, out _);
}
}
Expand All @@ -59,11 +60,8 @@ private static void Main()
continue;
}

// Let Process finish opening
Thread.Sleep(500);

//var process = FindProcessUsingPort(i);
//Console.WriteLine($"Detected OSC on port {i} from {process.MainWindowTitle}, opening sender");
var sender = new OscSender(new IPEndPoint(IPAddress.Loopback, i));
ToSendDataTo[i] = sender;
}
Expand All @@ -73,12 +71,11 @@ private static void Main()
}
});

Console.WriteLine(""); // Spacing
Console.WriteLine("");

Task.Run(async () =>
{
var initialCursorTop = Console.CursorTop;
Console.CursorVisible = false; // Hide the cursor

while (true)
{
Expand Down

0 comments on commit 6badd44

Please sign in to comment.