auto("fast");
if (!requestScreenCapture()) {
toast("请求截图失败");
stop();
}
launchPackage("com.umonistudio.tile");
sleep(10000);
click(250, 250);
var asd;
var img;

sleep(2000);
var c = 1;
for (;;) {
img = captureScreen();
if (images.pixel(img, 135, 1111) == -1.467184E7) {
click(135, 1200);
//i++;
continue;
}

if (images.pixel(img, 405, 1111) == -1.467184E7)

{
    click(405, 1200);
    //i++;
    continue;
}

if (images.pixel(img, 675, 1111) == -1.467184E7)

{
    click(675, 1200);
    //i++;
    continue;
}


if (images.pixel(img, 945, 1111) == -1.467184E7) {
    click(945, 1200);
    //i++;
    continue;
}
sleep(100);

}

开发者

这样子,或者用文件

auto("fast");
if (!requestScreenCapture()) {
    toast("请求截图失败");
    stop();
}
launchPackage("com.umonistudio.tile");
sleep(10000);
click(250, 250);
var asd;
var img;

sleep(2000);
var c = 1;
for (;;) {
    img = captureScreen();
    if (images.pixel(img, 135, 1111) == -1.467184E7) {
        click(135, 1200);
        //i++;
        continue;
    }

    if (images.pixel(img, 405, 1111) == -1.467184E7)

    {
        click(405, 1200);
        //i++;
        continue;
    }

    if (images.pixel(img, 675, 1111) == -1.467184E7)

    {
        click(675, 1200);
        //i++;
        continue;
    }


    if (images.pixel(img, 945, 1111) == -1.467184E7) {
        click(945, 1200);
        //i++;
        continue;
    }
    sleep(100);
}

谁来写一下王者荣耀的脚本呀?

@gg22g2发个脚本试一下 中说:

auto("fast");
if (!requestScreenCapture()) {
toast("请求截图失败");
stop();
}
launchPackage("com.umonistudio.tile");
sleep(10000);
click(250, 250);
var asd;
var img;

sleep(2000);
var c = 1;
for (;;) {
img = captureScreen();
if (images.pixel(img, 135, 1111) == -1.467184E7) {
click(135, 1200);
//i++;
continue;
}

if (images.pixel(img, 405, 1111) == -1.467184E7)

{
    click(405, 1200);
    //i++;
    continue;
}

if (images.pixel(img, 675, 1111) == -1.467184E7)

{
    click(675, 1200);
    //i++;
    continue;
}


if (images.pixel(img, 945, 1111) == -1.467184E7) {
    click(945, 1200);
    //i++;
    continue;
}
sleep(100);

}

@gg22g2发个脚本试一下 中说:

auto("fast");
if (!requestScreenCapture()) {
toast("请求截图失败");
stop();
}
launchPackage("com.umonistudio.tile");
sleep(10000);
click(250, 250);
var asd;
var img;

sleep(2000);
var c = 1;
for (;;) {
img = captureScreen();
if (images.pixel(img, 135, 1111) == -1.467184E7) {
click(135, 1200);
//i++;
continue;
}

if (images.pixel(img, 405, 1111) == -1.467184E7)

{
    click(405, 1200);
    //i++;
    continue;
}

if (images.pixel(img, 675, 1111) == -1.467184E7)

{
    click(675, 1200);
    //i++;
    continue;
}


if (images.pixel(img, 945, 1111) == -1.467184E7) {
    click(945, 1200);
    //i++;
    continue;
}
sleep(100);

}

  • [列表]([0_1514956390409_脚本](正在上传 0%) 链接地址)
  • 7
    帖子
  • 4203
    浏览

与 Auto.js 的连接断开,我们正在尝试重连,请耐心等待