autopilot-deno icon indicating copy to clipboard operation
autopilot-deno copied to clipboard

Question: Doesn't it support windows system?

Open nurmohammed840 opened this issue 4 years ago • 5 comments

Some commend didn't work on my system...

nurmohammed840 avatar Apr 05 '21 21:04 nurmohammed840

Which commands? Also please specify your Deno version.

littledivy avatar Apr 06 '21 14:04 littledivy

deno 1.8.3 (release, x86_64-pc-windows-msvc)
v8 9.0.257.3
typescript 4.2.2

Tried exemple:

import AutoPilot from 'https://deno.land/x/[email protected]/mod.ts';

// create a new AutoPilot instance.
var pilot = new AutoPilot();

// type a string
await pilot.type("Yay! This works"); 

// alert something
await pilot.alert("This is a alert");

// get screen size
console.log(await pilot.screenSize()); 

// move mouse
await pilot.moveMouse(200, 400);

// take a full-screen screenshot
await pilot.screenshot("screenshot.png");

Only pilot.type and pilot.screenSize worked.

nurmohammed840 avatar Apr 06 '21 15:04 nurmohammed840

@nurmohammed840 Can you see if you can reproduce this in the latest autopilot release (0.3.0)?

littledivy avatar Jul 21 '21 11:07 littledivy

I tried it out in Windows and Ubuntu 20.04 ( WSL2.0 ),

deno 1.12.1 (release, x86_64-pc-windows-msvc)
v8 9.2.230.14
typescript 4.3.5

Unfortunately, It can't download plugin from internet... And give this error message:

error: Uncaught (in promise) Error: downloading plugin "autopilot_deno" from "https://github.com/manyuanrong/deno-plugin-prepare/releases/download//autopilot_deno.dll" failed.
    throw Error(`downloading plugin "${name}" from "${remoteUrl}" failed.`);
          ^
    at downloadFromRemote (https://deno.land/x/[email protected]/mod.ts:81:11)
    at async download (https://deno.land/x/[email protected]/mod.ts:51:7)
    at async prepare (https://deno.land/x/[email protected]/mod.ts:65:21)
    at async https://deno.land/x/[email protected]/src/bind.js:32:3

nurmohammed840 avatar Jul 22 '21 03:07 nurmohammed840

Oops. Fixed plugin download in 0.3.2

littledivy avatar Jul 22 '21 09:07 littledivy