Beispiel #1
0
        //通过名称设置下拉框选项
        static void suilvwenti()
        {
            var bar    = WinApi.FindWindow(null, "商品编码添加");
            var child  = WinApi.FindWindowEx(bar, IntPtr.Zero, null, "*税率");
            var child1 = WinApi.FindWindowEx(bar, child, null, null);

            Console.WriteLine($"bar:{bar},child:{child},child1:{child1}");
            //通过索引设置下拉框选项
            WinApi.SetComboxItemValue(child1, "3%");
        }