修正错误

This commit is contained in:
gongxh
2022-05-05 20:42:02 +08:00
parent c6e7e582b8
commit b6b365339f
14 changed files with 28 additions and 57 deletions

View File

@@ -24,13 +24,13 @@ namespace CleanMachineHMI
[DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = true)]
private static extern int RegisterWindowMessage(string lpString);
private static bool hasKeyboard=false;
private static bool hasKeyboard = false;
private static readonly string USB = "USB";
static KeyboardAutoPopUp()
static KeyboardAutoPopUp()
{
// hasKeyboard = GetKeyboardPresent();
hasKeyboard = GetKeyboardPresent();
@@ -65,7 +65,7 @@ namespace CleanMachineHMI
if (hasKeyboard) return 0;
try
{
dynamic file = "C:\\Program Files\\Common Files\\microsoft shared\\ink\\TabTip.exe";
if (!System.IO.File.Exists(file))
return -1;