mirror of
https://github.com/LorisYounger/VPet.git
synced 2024-08-30 18:42:36 +00:00
修复快捷键错误
This commit is contained in:
parent
a200b6ebaf
commit
4d47ed66ca
@ -209,7 +209,14 @@ namespace VPet_Simulator.Windows
|
||||
}
|
||||
else
|
||||
{
|
||||
System.Windows.Forms.SendKeys.SendWait(content);
|
||||
try
|
||||
{
|
||||
System.Windows.Forms.SendKeys.SendWait(content);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
MessageBox.Show("快捷键运行失败:无法运行指定内容".Translate() + '\n' + e.Message);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user