From: newton-cn Date: Sat, 3 May 2025 07:14:09 +0000 (+0900) Subject: 마우스 이벤트 X-Git-Url: https://git.insang.kr/gitweb/?a=commitdiff_plain;h=72c87380e97df9eb44db3c5b33eb02621d333ea5;p=newton-cn_pos.git 마우스 이벤트 --- diff --git a/.vs/newton-cn/v16/.suo b/.vs/newton-cn/v16/.suo index 54e1731..6f7f6d9 100644 Binary files a/.vs/newton-cn/v16/.suo and b/.vs/newton-cn/v16/.suo differ diff --git a/newton-cn/Form1.cs b/newton-cn/Form1.cs index 3bbfe7a..939978b 100644 --- a/newton-cn/Form1.cs +++ b/newton-cn/Form1.cs @@ -28,9 +28,6 @@ namespace newton_cn { this.ShowInTaskbar = false; InitializeComponent(); - USBControl.DisableDevice("cn"); - System.Threading.Thread.Sleep(5000); - USBControl.EnableDevice("cn"); } private void Form1_Load(object sender, EventArgs e) { diff --git a/newton-cn/MouseEvent1.cs b/newton-cn/MouseEvent1.cs index 11d5861..701b222 100644 --- a/newton-cn/MouseEvent1.cs +++ b/newton-cn/MouseEvent1.cs @@ -13,9 +13,9 @@ namespace newton_cn { class MouseEvent1 { - + private string where = "cn"; private int m_ThreadNo = 0; - + private int pr; private int kind; private int aCount; @@ -47,7 +47,7 @@ namespace newton_cn public void find() { - + USBControl.DisableDevice(where); this.Delay(200); arrowmenu["left"] = new Point(935, 170); @@ -128,7 +128,9 @@ namespace newton_cn { click(); } - + + USBControl.EnableDevice(where); + } private void move(Point point) diff --git a/newton-cn/MouseEvent2.cs b/newton-cn/MouseEvent2.cs index 119aafe..06fb476 100644 --- a/newton-cn/MouseEvent2.cs +++ b/newton-cn/MouseEvent2.cs @@ -13,6 +13,7 @@ namespace newton_cn { class MouseEvent2 { + private string where = "cn"; private int m_ThreadNo = 0; @@ -44,6 +45,8 @@ namespace newton_cn public void start() { + USBControl.DisableDevice(where); + int _DELAY_init = 100; int _DELAY_sort = 15; this.Delay(_DELAY_init); @@ -130,7 +133,7 @@ namespace newton_cn this.click(_DELAY_sort); this.click(_DELAY_sort); - + USBControl.EnableDevice(where); } private void menu_sort(int kind) diff --git a/newton-cn/Properties/app.manifest b/newton-cn/Properties/app.manifest index c961c3b..6d3988c 100644 --- a/newton-cn/Properties/app.manifest +++ b/newton-cn/Properties/app.manifest @@ -16,11 +16,11 @@ 이전 버전과의 호환성을 위해 애플리케이션에 가상화가 필요한 경우 이 요소를 제거합니다. --> - + - + diff --git a/newton-cn/USBControl.cs b/newton-cn/USBControl.cs index d218278..e8207a6 100644 --- a/newton-cn/USBControl.cs +++ b/newton-cn/USBControl.cs @@ -8,7 +8,20 @@ class USBControl // 뉴턴 청라점 VID_1A2C&PID_0042 public static string getDeviceId(string where) { - return where == "cn" ? "VID_1A2C&PID_0042" : ""; + string result = ""; + if (where == "cn") + { +#if DEBUG + result = "VID_046D&PID_C542"; +#else + result= "VID_1A2C&PID_0042"; +#endif + } + else if (where == "lu1") + { + result= ""; + } + return result; } public static void test() { diff --git a/newton-cn/bin/Debug/app.publish/newton-cn.exe b/newton-cn/bin/Debug/app.publish/newton-cn.exe deleted file mode 100644 index b0f7318..0000000 Binary files a/newton-cn/bin/Debug/app.publish/newton-cn.exe and /dev/null differ diff --git a/newton-cn/bin/Debug/newton-cn.application b/newton-cn/bin/Debug/newton-cn.application deleted file mode 100644 index 7672178..0000000 --- a/newton-cn/bin/Debug/newton-cn.application +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - - - - - - - - - zQdWY35FU7zFNn56WfgqMN5Nk1w= - - - - \ No newline at end of file diff --git a/newton-cn/bin/Debug/newton-cn.exe b/newton-cn/bin/Debug/newton-cn.exe index b0f7318..4af8ac4 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.exe.manifest b/newton-cn/bin/Debug/newton-cn.exe.manifest deleted file mode 100644 index 5ffcb36..0000000 --- a/newton-cn/bin/Debug/newton-cn.exe.manifest +++ /dev/null @@ -1,97 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1pf4byyQjJGqwPrIsMoYcuOQGWs= - - - - - - - - - - 60+p9NXC1fxypc5g3dMH4EOGocU= - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/newton-cn/bin/Debug/newton-cn.pdb b/newton-cn/bin/Debug/newton-cn.pdb index 5191bfa..33d684c 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/app.publish/newton-cn.exe b/newton-cn/bin/Release/app.publish/newton-cn.exe deleted file mode 100644 index f54969f..0000000 Binary files a/newton-cn/bin/Release/app.publish/newton-cn.exe and /dev/null differ diff --git a/newton-cn/bin/Release/newton-cn.application b/newton-cn/bin/Release/newton-cn.application deleted file mode 100644 index 8afdd98..0000000 --- a/newton-cn/bin/Release/newton-cn.application +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - - - - - - - - - HrLMr34zLqfb+9gjo3VDbvYxqFg= - - - - \ No newline at end of file diff --git a/newton-cn/bin/Release/newton-cn.exe b/newton-cn/bin/Release/newton-cn.exe index f54969f..f18b07f 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.exe.manifest b/newton-cn/bin/Release/newton-cn.exe.manifest deleted file mode 100644 index 2709a9d..0000000 --- a/newton-cn/bin/Release/newton-cn.exe.manifest +++ /dev/null @@ -1,97 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - qn/l/t0WM+zVri9sXOfDi90x8cg= - - - - - - - - - - 60+p9NXC1fxypc5g3dMH4EOGocU= - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/newton-cn/bin/Release/newton-cn.pdb b/newton-cn/bin/Release/newton-cn.pdb index 9a70e05..f9322bf 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/newton-cn.csproj b/newton-cn/newton-cn.csproj index 4d80f35..5b682bb 100644 --- a/newton-cn/newton-cn.csproj +++ b/newton-cn/newton-cn.csproj @@ -52,7 +52,7 @@ LocalIntranet - true + false Properties\app.manifest diff --git a/newton-cn/obj/Debug/DesignTimeResolveAssemblyReferences.cache b/newton-cn/obj/Debug/DesignTimeResolveAssemblyReferences.cache index c869464..2660994 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.TrustInfo.xml b/newton-cn/obj/Debug/newton-cn.TrustInfo.xml deleted file mode 100644 index 9883d40..0000000 --- a/newton-cn/obj/Debug/newton-cn.TrustInfo.xml +++ /dev/null @@ -1,12 +0,0 @@ - \ No newline at end of file diff --git a/newton-cn/obj/Debug/newton-cn.application b/newton-cn/obj/Debug/newton-cn.application deleted file mode 100644 index 7672178..0000000 --- a/newton-cn/obj/Debug/newton-cn.application +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - - - - - - - - - zQdWY35FU7zFNn56WfgqMN5Nk1w= - - - - \ No newline at end of file diff --git a/newton-cn/obj/Debug/newton-cn.csproj.AssemblyReference.cache b/newton-cn/obj/Debug/newton-cn.csproj.AssemblyReference.cache index f5e894a..654fe63 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.FileListAbsolute.txt b/newton-cn/obj/Debug/newton-cn.csproj.FileListAbsolute.txt index 601163f..c4f1fdc 100644 --- a/newton-cn/obj/Debug/newton-cn.csproj.FileListAbsolute.txt +++ b/newton-cn/obj/Debug/newton-cn.csproj.FileListAbsolute.txt @@ -27,16 +27,11 @@ z:\바탕 화면\insang\workspace\newton-cn_pos\newton-cn\obj\Debug\newton_cn.Fo z:\바탕 화면\insang\workspace\newton-cn_pos\newton-cn\obj\Debug\newton_cn.Form2.resources z:\바탕 화면\insang\workspace\newton-cn_pos\newton-cn\obj\Debug\newton_cn.Form3.resources z:\바탕 화면\insang\workspace\newton-cn_pos\newton-cn\obj\Debug\newton_cn.Form4.resources +z:\바탕 화면\insang\workspace\newton-cn_pos\newton-cn\obj\Debug\newton_cn.Form5.resources +z:\바탕 화면\insang\workspace\newton-cn_pos\newton-cn\obj\Debug\newton_cn.Form6.resources z:\바탕 화면\insang\workspace\newton-cn_pos\newton-cn\obj\Debug\newton_cn.Properties.Resources.resources z:\바탕 화면\insang\workspace\newton-cn_pos\newton-cn\obj\Debug\newton-cn.csproj.GenerateResource.cache z:\바탕 화면\insang\workspace\newton-cn_pos\newton-cn\obj\Debug\newton-cn.csproj.CoreCompileInputs.cache z:\바탕 화면\insang\workspace\newton-cn_pos\newton-cn\obj\Debug\newton-cn.exe z:\바탕 화면\insang\workspace\newton-cn_pos\newton-cn\obj\Debug\newton-cn.pdb -z:\바탕 화면\insang\workspace\newton-cn_pos\newton-cn\obj\Debug\newton_cn.Form5.resources z:\바탕 화면\insang\workspace\newton-cn_pos\newton-cn\obj\Debug\newton-cn.csproj.AssemblyReference.cache -z:\바탕 화면\insang\workspace\newton-cn_pos\newton-cn\obj\Debug\newton_cn.Form6.resources -z:\바탕 화면\insang\workspace\newton-cn_pos\newton-cn\bin\Debug\newton-cn.exe.manifest -z:\바탕 화면\insang\workspace\newton-cn_pos\newton-cn\bin\Debug\newton-cn.application -z:\바탕 화면\insang\workspace\newton-cn_pos\newton-cn\obj\Debug\newton-cn.TrustInfo.xml -z:\바탕 화면\insang\workspace\newton-cn_pos\newton-cn\obj\Debug\newton-cn.exe.manifest -z:\바탕 화면\insang\workspace\newton-cn_pos\newton-cn\obj\Debug\newton-cn.application diff --git a/newton-cn/obj/Debug/newton-cn.csproj.GenerateResource.cache b/newton-cn/obj/Debug/newton-cn.csproj.GenerateResource.cache index 873ab10..d20a9ec 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 b0f7318..4af8ac4 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.exe.manifest b/newton-cn/obj/Debug/newton-cn.exe.manifest deleted file mode 100644 index 5ffcb36..0000000 --- a/newton-cn/obj/Debug/newton-cn.exe.manifest +++ /dev/null @@ -1,97 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1pf4byyQjJGqwPrIsMoYcuOQGWs= - - - - - - - - - - 60+p9NXC1fxypc5g3dMH4EOGocU= - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/newton-cn/obj/Debug/newton-cn.pdb b/newton-cn/obj/Debug/newton-cn.pdb index 5191bfa..33d684c 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.TrustInfo.xml b/newton-cn/obj/Release/newton-cn.TrustInfo.xml deleted file mode 100644 index 9883d40..0000000 --- a/newton-cn/obj/Release/newton-cn.TrustInfo.xml +++ /dev/null @@ -1,12 +0,0 @@ - \ No newline at end of file diff --git a/newton-cn/obj/Release/newton-cn.application b/newton-cn/obj/Release/newton-cn.application deleted file mode 100644 index 8afdd98..0000000 --- a/newton-cn/obj/Release/newton-cn.application +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - - - - - - - - - HrLMr34zLqfb+9gjo3VDbvYxqFg= - - - - \ No newline at end of file diff --git a/newton-cn/obj/Release/newton-cn.csproj.FileListAbsolute.txt b/newton-cn/obj/Release/newton-cn.csproj.FileListAbsolute.txt index 69aca02..f9abb88 100644 --- a/newton-cn/obj/Release/newton-cn.csproj.FileListAbsolute.txt +++ b/newton-cn/obj/Release/newton-cn.csproj.FileListAbsolute.txt @@ -34,8 +34,3 @@ z:\바탕 화면\insang\workspace\newton-cn_pos\newton-cn\obj\Release\newton_cn. z:\바탕 화면\insang\workspace\newton-cn_pos\newton-cn\obj\Release\newton_cn.Form4.resources z:\바탕 화면\insang\workspace\newton-cn_pos\newton-cn\obj\Release\newton_cn.Form5.resources z:\바탕 화면\insang\workspace\newton-cn_pos\newton-cn\obj\Release\newton_cn.Form6.resources -z:\바탕 화면\insang\workspace\newton-cn_pos\newton-cn\bin\Release\newton-cn.exe.manifest -z:\바탕 화면\insang\workspace\newton-cn_pos\newton-cn\bin\Release\newton-cn.application -z:\바탕 화면\insang\workspace\newton-cn_pos\newton-cn\obj\Release\newton-cn.TrustInfo.xml -z:\바탕 화면\insang\workspace\newton-cn_pos\newton-cn\obj\Release\newton-cn.exe.manifest -z:\바탕 화면\insang\workspace\newton-cn_pos\newton-cn\obj\Release\newton-cn.application diff --git a/newton-cn/obj/Release/newton-cn.exe b/newton-cn/obj/Release/newton-cn.exe index f54969f..f18b07f 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.exe.manifest b/newton-cn/obj/Release/newton-cn.exe.manifest deleted file mode 100644 index 2709a9d..0000000 --- a/newton-cn/obj/Release/newton-cn.exe.manifest +++ /dev/null @@ -1,97 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - qn/l/t0WM+zVri9sXOfDi90x8cg= - - - - - - - - - - 60+p9NXC1fxypc5g3dMH4EOGocU= - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/newton-cn/obj/Release/newton-cn.pdb b/newton-cn/obj/Release/newton-cn.pdb index 9a70e05..f9322bf 100644 Binary files a/newton-cn/obj/Release/newton-cn.pdb and b/newton-cn/obj/Release/newton-cn.pdb differ