Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jsautogui not working #2

Open
tkyoon opened this issue Sep 15, 2023 · 2 comments
Open

jsautogui not working #2

tkyoon opened this issue Sep 15, 2023 · 2 comments

Comments

@tkyoon
Copy link

tkyoon commented Sep 15, 2023

I successfully installed jsautogui
npm install jsautogui --save
However, when I run the test code, a line hangs(call screenshot).
Can you tell me the problem?

test code
`const jsautogui = require("jsautogui");

const log = require("./util/logger");

log.trace("X");

const main = (async () => {

log.trace("main");

try {

    jsautogui.options.extension = "cmd";

    await jsautogui.ready();

    console.log("1");

    console.log(await jsautogui.screenshot("test.png"));

    console.log("2");

} catch (e) {

    log.error(e);

}

});

main();

`

image

@tkyoon
Copy link
Author

tkyoon commented Sep 15, 2023

Code tags are not displayed properly😭

@OguzhanUmutlu
Copy link
Owner

@tkyoon I'll fix this package completely when I have time. Thanks for the report.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants