Example #1
0
        public static void selectListViewItem(IntPtr handle, int index, bool doubleclick)
        {
            Point index1 = Vip72Handle.scrollListViewToIndex(handle, index);

            if (index1 == Vip72Handle.InvalidPoint)
            {
                return;
            }
            index1.X += 5;
            index1.Y += 5;
            Thread.Sleep(200);
            if (doubleclick)
            {
                ClickOnPointTool.ClickOnPoint(handle, index1);
                ClickOnPointTool.ClickOnPoint(handle, index1);
            }
            else
            {
                ClickOnPointTool.ClickOnPoint(handle, index1);
            }
        }