關閉消失滑鼠+心跳
This commit is contained in:
parent
e77b4f4fec
commit
6f8dd92285
@ -18,14 +18,14 @@ namespace DualScreenDemo
|
|||||||
static void Main()
|
static void Main()
|
||||||
{
|
{
|
||||||
Console.WriteLine("隱藏滑鼠游標");
|
Console.WriteLine("隱藏滑鼠游標");
|
||||||
Cursor.Hide();
|
// Cursor.Hide();
|
||||||
AppDomain.CurrentDomain.ProcessExit += (s, e) =>
|
AppDomain.CurrentDomain.ProcessExit += (s, e) =>
|
||||||
{
|
{
|
||||||
Cursor.Show();
|
Cursor.Show();
|
||||||
};
|
};
|
||||||
|
|
||||||
Console.WriteLine("正在與中控取得聯繫");
|
Console.WriteLine("正在與中控取得聯繫");
|
||||||
var sender = new HeartbeatSender.heartbeatSender();
|
/*var sender = new HeartbeatSender.heartbeatSender();
|
||||||
|
|
||||||
// 同步呼叫非同步登入取得 token
|
// 同步呼叫非同步登入取得 token
|
||||||
bool loginSuccess = sender.LoginAndGetTokenAsync().GetAwaiter().GetResult();
|
bool loginSuccess = sender.LoginAndGetTokenAsync().GetAwaiter().GetResult();
|
||||||
@ -49,7 +49,7 @@ namespace DualScreenDemo
|
|||||||
{
|
{
|
||||||
Console.WriteLine("登入失敗,無法送出心跳");
|
Console.WriteLine("登入失敗,無法送出心跳");
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
// COM 初始化
|
// COM 初始化
|
||||||
|
Loading…
x
Reference in New Issue
Block a user