From: newton-cn Date: Thu, 29 Jan 2026 07:53:23 +0000 (+0900) Subject: dddd X-Git-Url: https://git.insang.kr/gitweb/?a=commitdiff_plain;h=5b63fed08b030ec83052f8478635073db1776726;p=newton-cn_pos.git dddd --- diff --git a/.vs/newton-cn/v16/.suo b/.vs/newton-cn/v16/.suo index 40591c7..44c409c 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 ef5c62d..809d5a4 100644 --- a/newton-cn/Form9.cs +++ b/newton-cn/Form9.cs @@ -141,7 +141,48 @@ namespace newton_cn Thread th = new Thread(ts); th.Start();*/ - Application.OpenForms["Form9"].Close(); + /* Application.OpenForms["Form9"].Close(); + + // 1️⃣ 현재 입력 언어 저장 + InputLanguage originalLanguage = InputLanguage.CurrentInputLanguage; + + // 2️⃣ 영어 입력 언어 찾기 + InputLanguage english = InputLanguage.InstalledInputLanguages + .Cast() + .FirstOrDefault(lang => lang.Culture.Name.StartsWith("en")); + + string phone = textBox1.Text; + MouseEvent1 me = new MouseEvent1(); + me.ctclick(); + // 키보드 입력처럼 전송 + Thread.Sleep(2000); + InputLanguage.CurrentInputLanguage = english; + SendKeys.SendWait("a' or ct_code='" + phone + "' or 1 like 'a"); + InputLanguage.CurrentInputLanguage = originalLanguage; + Thread.Sleep(1000); + SendKeys.SendWait("{ENTER}"); + Thread.Sleep(1000); + SendKeys.SendWait("^{DEL}"); + Thread.Sleep(1000);*/ + var form9 = Application.OpenForms["Form9"]; + + if (form9 != null) + { + using (var waitHandle = new System.Threading.AutoResetEvent(false)) + { + form9.FormClosed += (_, __) => + { + waitHandle.Set(); // 닫힘 신호 + }; + + form9.Close(); + + // 🔴 Form9가 완전히 닫힐 때까지 대기 + waitHandle.WaitOne(); + } + } + + // ───── 여기부터는 Form9가 닫힌 후 실행됨 ───── // 1️⃣ 현재 입력 언어 저장 InputLanguage originalLanguage = InputLanguage.CurrentInputLanguage; @@ -152,13 +193,16 @@ namespace newton_cn .FirstOrDefault(lang => lang.Culture.Name.StartsWith("en")); string phone = textBox1.Text; + MouseEvent1 me = new MouseEvent1(); me.ctclick(); - // 키보드 입력처럼 전송 + Thread.Sleep(2000); + InputLanguage.CurrentInputLanguage = english; SendKeys.SendWait("a' or ct_code='" + phone + "' or 1 like 'a"); InputLanguage.CurrentInputLanguage = originalLanguage; + Thread.Sleep(1000); SendKeys.SendWait("{ENTER}"); Thread.Sleep(1000); diff --git a/newton-cn/bin/Debug/newton-cn.exe b/newton-cn/bin/Debug/newton-cn.exe index 3576cc3..73d58d0 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 2465fe2..d353c94 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 31b629d..a785c6a 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 160e8b2..a6f147a 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 3deb7b3..64a02a6 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.csproj.AssemblyReference.cache b/newton-cn/obj/Debug/newton-cn.csproj.AssemblyReference.cache index 654fe63..f5e894a 100644 Binary files a/newton-cn/obj/Debug/newton-cn.csproj.AssemblyReference.cache and b/newton-cn/obj/Debug/newton-cn.csproj.AssemblyReference.cache differ diff --git a/newton-cn/obj/Debug/newton-cn.csproj.GenerateResource.cache b/newton-cn/obj/Debug/newton-cn.csproj.GenerateResource.cache index df8201b..436f0fd 100644 Binary files a/newton-cn/obj/Debug/newton-cn.csproj.GenerateResource.cache and b/newton-cn/obj/Debug/newton-cn.csproj.GenerateResource.cache differ diff --git a/newton-cn/obj/Debug/newton-cn.exe b/newton-cn/obj/Debug/newton-cn.exe index 3576cc3..73d58d0 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 2465fe2..d353c94 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 31b629d..a785c6a 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 160e8b2..a6f147a 100644 Binary files a/newton-cn/obj/Release/newton-cn.pdb and b/newton-cn/obj/Release/newton-cn.pdb differ