From: newton-cn Date: Tue, 12 Aug 2025 03:22:35 +0000 (+0900) Subject: 상품검색 업데이트 X-Git-Url: https://git.insang.kr/gitweb/?a=commitdiff_plain;h=89ced274aa181ecdae118c49764086b4319f3de6;p=newton-cn_pos.git 상품검색 업데이트 --- diff --git a/.vs/newton-cn/v16/.suo b/.vs/newton-cn/v16/.suo index 835b746..8157705 100644 Binary files a/.vs/newton-cn/v16/.suo and b/.vs/newton-cn/v16/.suo differ diff --git a/newton-cn/MouseEvent1.cs b/newton-cn/MouseEvent1.cs index 701b222..d005634 100644 --- a/newton-cn/MouseEvent1.cs +++ b/newton-cn/MouseEvent1.cs @@ -13,22 +13,22 @@ namespace newton_cn { class MouseEvent1 { - private string where = "cn"; + //private string where = "cn"; private int m_ThreadNo = 0; - + private int pr; private int kind; private int aCount; private bool mInit; - public MouseEvent1(int pr, int kind, int aCount= 1, bool mInit= true) + public MouseEvent1(int pr, int kind, int aCount = 1, bool mInit = true) { this.pr = pr; this.kind = kind; this.aCount = aCount; this.mInit = mInit; - + } [DllImport("user32.dll")] @@ -40,96 +40,104 @@ namespace newton_cn const uint RBUTTONDOWN = 0x0008; // 오른쪽 마우스 버튼 눌림 const uint RBUTTONUP = 0x00010; // 오른쪽 마우스 버튼 떼어짐 - List menus= new List(); - List items= new List(); + List menus = new List(); + List items = new List(); Dictionary arrowmenu = new Dictionary(); Dictionary arrowitem = new Dictionary(); public void find() { - USBControl.DisableDevice(where); + //USBControl.DisableDevice(where); this.Delay(200); - arrowmenu["left"] = new Point(935, 170); - arrowmenu["right"] = new Point(985, 170); + arrowmenu["left"] = new Point(992, 96); + arrowmenu["right"] = new Point(992, 167); - arrowitem["left"] = new Point(935, 535); - arrowitem["right"] = new Point(985, 535); + arrowitem["left"] = new Point(992, 316); + arrowitem["right"] = new Point(992, 534); menus.Add(new Point(0, 0)); - menus.Add(new Point(440, 98)); - menus.Add(new Point(545, 98)); - menus.Add(new Point(650, 98)); - menus.Add(new Point(755, 98)); - menus.Add(new Point(860, 98)); - menus.Add(new Point(965, 98)); - menus.Add(new Point(440, 170)); - menus.Add(new Point(545, 170)); - menus.Add(new Point(650, 170)); - menus.Add(new Point(755, 170)); - menus.Add(new Point(860, 170)); + menus.Add(new Point(440 - 30, 98 - 3)); + menus.Add(new Point(545 - 30, 98 - 3)); + menus.Add(new Point(650 - 30, 98 - 3)); + menus.Add(new Point(755 - 30, 98 - 3)); + menus.Add(new Point(860 - 30, 98 - 3)); + menus.Add(new Point(965 - 30, 98 - 3)); + menus.Add(new Point(440 - 30, 170 - 3)); + menus.Add(new Point(545 - 30, 170 - 3)); + menus.Add(new Point(650 - 30, 170 - 3)); + menus.Add(new Point(755 - 30, 170 - 3)); + menus.Add(new Point(860 - 30, 170 - 3)); + menus.Add(new Point(950 - 30, 170 - 3)); items.Add(new Point(0, 0)); - items.Add(new Point(440, 240)); - items.Add(new Point(545, 240)); - items.Add(new Point(650, 240)); - items.Add(new Point(755, 240)); - items.Add(new Point(860, 240)); - items.Add(new Point(965, 240)); - items.Add(new Point(440, 320)); - items.Add(new Point(545, 320)); - items.Add(new Point(650, 320)); - items.Add(new Point(755, 320)); - items.Add(new Point(860, 320)); - items.Add(new Point(965, 320)); - items.Add(new Point(440, 390)); - items.Add(new Point(545, 390)); - items.Add(new Point(650, 390)); - items.Add(new Point(755, 390)); - items.Add(new Point(860, 390)); - items.Add(new Point(965, 390)); - items.Add(new Point(440, 460)); - items.Add(new Point(545, 460)); - items.Add(new Point(650, 460)); - items.Add(new Point(755, 460)); - items.Add(new Point(860, 460)); - items.Add(new Point(965, 460)); - items.Add(new Point(440, 535)); - items.Add(new Point(545, 535)); - items.Add(new Point(650, 535)); - items.Add(new Point(755, 535)); - items.Add(new Point(860, 535)); + items.Add(new Point(440 - 30, 240)); + items.Add(new Point(545 - 30, 240)); + items.Add(new Point(650 - 30, 240)); + items.Add(new Point(755 - 30, 240)); + items.Add(new Point(860 - 30, 240)); + items.Add(new Point(965 - 30, 240)); + items.Add(new Point(440 - 30, 315)); + items.Add(new Point(545 - 30, 315)); + items.Add(new Point(650 - 30, 315)); + items.Add(new Point(755 - 30, 315)); + items.Add(new Point(860 - 30, 315)); + items.Add(new Point(965 - 30, 315)); + items.Add(new Point(440 - 30, 390)); + items.Add(new Point(545 - 30, 390)); + items.Add(new Point(650 - 30, 390)); + items.Add(new Point(755 - 30, 390)); + items.Add(new Point(860 - 30, 390)); + items.Add(new Point(965 - 30, 390)); + items.Add(new Point(440 - 30, 460)); + items.Add(new Point(545 - 30, 460)); + items.Add(new Point(650 - 30, 460)); + items.Add(new Point(755 - 30, 460)); + items.Add(new Point(860 - 30, 460)); + items.Add(new Point(965 - 30, 460)); + items.Add(new Point(440 - 30, 535)); + items.Add(new Point(545 - 30, 535)); + items.Add(new Point(650 - 30, 535)); + items.Add(new Point(755 - 30, 535)); + items.Add(new Point(860 - 30, 535)); + items.Add(new Point(965 - 30, 535)); + items.Add(new Point(440 - 30, 600)); + items.Add(new Point(545 - 30, 600)); + items.Add(new Point(650 - 30, 600)); + items.Add(new Point(755 - 30, 600)); + items.Add(new Point(860 - 30, 600)); + items.Add(new Point(965 - 30, 600)); if (mInit) { this.menuinit(kind); int tkind = kind; - while (tkind - 11 > 0) + while (tkind - 12 > 0) { move(arrowmenu["right"]); click(); - tkind = tkind - 11; + tkind = tkind - 12; } move(menus[tkind]); click(); - } + } int tpr = pr; //43 - while(tpr - 29 > 0) + while (tpr - 36 > 0) { move(arrowitem["right"]); click(); - tpr = tpr - 29; + tpr = tpr - 36; } move(items[tpr]); - for (int i=0; i< aCount; i++) + for (int i = 0; i < aCount; i++) { click(); } - USBControl.EnableDevice(where); + //USBControl.EnableDevice(where); } @@ -140,7 +148,7 @@ namespace newton_cn this.Delay(100); } - private void click(int time= 100) + private void click(int time = 100) { mouse_event(LBUTTONDOWN, 0, 0, 0, 0); mouse_event(LBUTTONUP, 0, 0, 0, 0); @@ -152,7 +160,7 @@ namespace newton_cn { this.move(arrowmenu["left"]); - for (int i=0; i<15; i++) + for (int i = 0; i < 15; i++) { this.click(50); } diff --git a/newton-cn/bin/Debug/newton-cn.exe b/newton-cn/bin/Debug/newton-cn.exe index 7e5a1ef..d197006 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 01dbf55..9bbad1d 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 757ded6..101e842 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 80d841f..ce970b0 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 50d988a..b0b965b 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 deleted file mode 100644 index 654fe63..0000000 Binary files a/newton-cn/obj/Debug/newton-cn.csproj.AssemblyReference.cache and /dev/null differ diff --git a/newton-cn/obj/Debug/newton-cn.csproj.FileListAbsolute.txt b/newton-cn/obj/Debug/newton-cn.csproj.FileListAbsolute.txt index 1462588..d6bbf9d 100644 --- a/newton-cn/obj/Debug/newton-cn.csproj.FileListAbsolute.txt +++ b/newton-cn/obj/Debug/newton-cn.csproj.FileListAbsolute.txt @@ -34,6 +34,5 @@ z:\바탕 화면\insang\workspace\newton-cn_pos\newton-cn\obj\Debug\newton-cn.cs 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.csproj.AssemblyReference.cache z:\바탕 화면\insang\workspace\newton-cn_pos\newton-cn\obj\Debug\newton_cn.Form7.resources z:\바탕 화면\insang\workspace\newton-cn_pos\newton-cn\obj\Debug\newton_cn.Form8.resources diff --git a/newton-cn/obj/Debug/newton-cn.exe b/newton-cn/obj/Debug/newton-cn.exe index 7e5a1ef..d197006 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 01dbf55..9bbad1d 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.csproj.AssemblyReference.cache b/newton-cn/obj/Release/newton-cn.csproj.AssemblyReference.cache new file mode 100644 index 0000000..654fe63 Binary files /dev/null and b/newton-cn/obj/Release/newton-cn.csproj.AssemblyReference.cache differ diff --git a/newton-cn/obj/Release/newton-cn.csproj.FileListAbsolute.txt b/newton-cn/obj/Release/newton-cn.csproj.FileListAbsolute.txt index 80e63aa..0041222 100644 --- a/newton-cn/obj/Release/newton-cn.csproj.FileListAbsolute.txt +++ b/newton-cn/obj/Release/newton-cn.csproj.FileListAbsolute.txt @@ -36,3 +36,4 @@ z:\바탕 화면\insang\workspace\newton-cn_pos\newton-cn\obj\Release\newton_cn. z:\바탕 화면\insang\workspace\newton-cn_pos\newton-cn\obj\Release\newton_cn.Form6.resources z:\바탕 화면\insang\workspace\newton-cn_pos\newton-cn\obj\Release\newton_cn.Form7.resources z:\바탕 화면\insang\workspace\newton-cn_pos\newton-cn\obj\Release\newton_cn.Form8.resources +z:\바탕 화면\insang\workspace\newton-cn_pos\newton-cn\obj\Release\newton-cn.csproj.AssemblyReference.cache diff --git a/newton-cn/obj/Release/newton-cn.exe b/newton-cn/obj/Release/newton-cn.exe index 757ded6..101e842 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 80d841f..ce970b0 100644 Binary files a/newton-cn/obj/Release/newton-cn.pdb and b/newton-cn/obj/Release/newton-cn.pdb differ