mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-19 02:23:01 +08:00
屏蔽待机功能
This commit is contained in:
@@ -110,7 +110,7 @@ namespace MeoAsstGui
|
||||
new CombData { Display = "关闭模拟器", Value = "killemulator" },
|
||||
new CombData { Display = "退出并关闭模拟器", Value = "exitwithkillemulator" },
|
||||
new CombData{ Display="关机",Value="shutdown" },
|
||||
new CombData { Display = "待机", Value = "suspend" },
|
||||
//new CombData { Display = "待机", Value = "suspend" },
|
||||
new CombData { Display = "休眠", Value = "hibernate" }
|
||||
};
|
||||
var temp_order_list = new List<DragItemViewModel>(new DragItemViewModel[task_list.Length]);
|
||||
@@ -586,7 +586,9 @@ namespace MeoAsstGui
|
||||
}
|
||||
break;
|
||||
case "suspend":
|
||||
System.Diagnostics.Process.Start("powercfg", "-h off");
|
||||
System.Diagnostics.Process.Start("rundll32.exe", "powrprof.dll,SetSuspendState 0,1,0");
|
||||
System.Diagnostics.Process.Start("powercfg", "-h on");
|
||||
break;
|
||||
case "hibernate":
|
||||
System.Diagnostics.Process.Start("shutdown.exe", "-h");
|
||||
|
||||
Reference in New Issue
Block a user