public void find()
{
//USBControl.DisableDevice(where);
- this.Delay(100);
+ this.Delay(10);
arrowmenu["left"] = new Point(992, 96);
arrowmenu["right"] = new Point(992, 167);
private void click(int time = 50)
{
mouse_event(LBUTTONDOWN, 0, 0, 0, 0);
- mouse_event(LBUTTONUP, 0, 0, 0, 0);
+ mouse_event(LBUTTONUP, 0, 0, 0, 0)
//await Task.Delay(1000);
this.Delay(time);
}
private void menuinit(int kind)
{
-
+ int menu_unit = 12;
+ int tkind= (int)Math.Ceiling((double)kind/menu_unit);
this.move(arrowmenu["left"]);
- for (int i = 0; i < kind; i++)
+ for (int i = 0; i < tkind; i++)
{
- this.click(50);
+ this.click();
}
}