From: newton-cn Date: Thu, 29 Jan 2026 08:05:46 +0000 (+0900) Subject: dddd X-Git-Url: https://git.insang.kr/gitweb/?a=commitdiff_plain;h=38ce816814792f220aabea79ee5508d8380b81e1;p=newton-cn_pos.git dddd --- diff --git a/.vs/newton-cn/v16/.suo b/.vs/newton-cn/v16/.suo index 74574db..8a6554e 100644 Binary files a/.vs/newton-cn/v16/.suo and b/.vs/newton-cn/v16/.suo differ diff --git a/newton-cn/Form9.cs b/newton-cn/Form9.cs index 9bc6e13..8468780 100644 --- a/newton-cn/Form9.cs +++ b/newton-cn/Form9.cs @@ -14,24 +14,6 @@ namespace newton_cn { public partial class Form9 : Form { - class ImeHelper - { - [DllImport("user32.dll")] - private static extern IntPtr GetKeyboardLayout(uint idThread); - - [DllImport("user32.dll")] - private static extern IntPtr LoadKeyboardLayout(string pwszKLID, uint Flags); - - [DllImport("user32.dll")] - private static extern int ActivateKeyboardLayout(IntPtr hkl, uint Flags); - - public static void SwitchToEnglish() - { - // 0x409 = en-US - IntPtr hkl = LoadKeyboardLayout("00000409", 1); - ActivateKeyboardLayout(hkl, 0); - } - } [DllImport("user32.dll")] @@ -165,14 +147,12 @@ namespace newton_cn me.ctclick(); // 키보드 입력처럼 전송 Thread.Sleep(2000); - ImeHelper.SwitchToEnglish(); - SendKeys.SendWait("a' or ct_code='" + phone + "' or 1 like 'a"); - SendKeys.SendWait("{HANGUL}"); // 한/영 키 + Clipboard.SetText("a' or ct_code='" + phone + "' or 1 like 'a"); + SendKeys.SendWait("^v"); // ^ = Ctrl Thread.Sleep(1000); SendKeys.SendWait("{ENTER}"); Thread.Sleep(1000); SendKeys.SendWait("^{DEL}"); - Thread.Sleep(1000); } private void listView1_SelectedIndexChanged(object sender, EventArgs e) diff --git a/newton-cn/bin/Debug/newton-cn.exe b/newton-cn/bin/Debug/newton-cn.exe index 712f537..9675cfd 100644 Binary files a/newton-cn/bin/Debug/newton-cn.exe and b/newton-cn/bin/Debug/newton-cn.exe differ diff --git a/newton-cn/bin/Debug/newton-cn.pdb b/newton-cn/bin/Debug/newton-cn.pdb index 2e519fc..08db36a 100644 Binary files a/newton-cn/bin/Debug/newton-cn.pdb and b/newton-cn/bin/Debug/newton-cn.pdb differ diff --git a/newton-cn/bin/Release/newton-cn.exe b/newton-cn/bin/Release/newton-cn.exe index 23947e9..496ed09 100644 Binary files a/newton-cn/bin/Release/newton-cn.exe and b/newton-cn/bin/Release/newton-cn.exe differ diff --git a/newton-cn/bin/Release/newton-cn.pdb b/newton-cn/bin/Release/newton-cn.pdb index 1395c6d..d91e6c6 100644 Binary files a/newton-cn/bin/Release/newton-cn.pdb and b/newton-cn/bin/Release/newton-cn.pdb differ diff --git a/newton-cn/obj/Debug/DesignTimeResolveAssemblyReferences.cache b/newton-cn/obj/Debug/DesignTimeResolveAssemblyReferences.cache index 4aa4474..8b0e090 100644 Binary files a/newton-cn/obj/Debug/DesignTimeResolveAssemblyReferences.cache and b/newton-cn/obj/Debug/DesignTimeResolveAssemblyReferences.cache differ diff --git a/newton-cn/obj/Debug/newton-cn.exe b/newton-cn/obj/Debug/newton-cn.exe index 712f537..9675cfd 100644 Binary files a/newton-cn/obj/Debug/newton-cn.exe and b/newton-cn/obj/Debug/newton-cn.exe differ diff --git a/newton-cn/obj/Debug/newton-cn.pdb b/newton-cn/obj/Debug/newton-cn.pdb index 2e519fc..08db36a 100644 Binary files a/newton-cn/obj/Debug/newton-cn.pdb and b/newton-cn/obj/Debug/newton-cn.pdb differ diff --git a/newton-cn/obj/Release/newton-cn.exe b/newton-cn/obj/Release/newton-cn.exe index 23947e9..496ed09 100644 Binary files a/newton-cn/obj/Release/newton-cn.exe and b/newton-cn/obj/Release/newton-cn.exe differ diff --git a/newton-cn/obj/Release/newton-cn.pdb b/newton-cn/obj/Release/newton-cn.pdb index 1395c6d..d91e6c6 100644 Binary files a/newton-cn/obj/Release/newton-cn.pdb and b/newton-cn/obj/Release/newton-cn.pdb differ