關閉消失滑鼠+心跳

This commit is contained in:
jasonchenwork 2025-06-18 13:30:15 +08:00
parent e77b4f4fec
commit 6f8dd92285

View File

@ -18,14 +18,14 @@ namespace DualScreenDemo
static void Main()
{
Console.WriteLine("隱藏滑鼠游標");
Cursor.Hide();
// Cursor.Hide();
AppDomain.CurrentDomain.ProcessExit += (s, e) =>
{
Cursor.Show();
};
Console.WriteLine("正在與中控取得聯繫");
var sender = new HeartbeatSender.heartbeatSender();
/*var sender = new HeartbeatSender.heartbeatSender();
// 同步呼叫非同步登入取得 token
bool loginSuccess = sender.LoginAndGetTokenAsync().GetAwaiter().GetResult();
@ -49,7 +49,7 @@ namespace DualScreenDemo
{
Console.WriteLine("登入失敗,無法送出心跳");
}
*/
try
{
// COM 初始化