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

Make PyAutoGUI work on headless AWS. #54

Closed
chrism91 opened this issue Sep 17, 2015 · 6 comments
Closed

Make PyAutoGUI work on headless AWS. #54

chrism91 opened this issue Sep 17, 2015 · 6 comments

Comments

@chrism91
Copy link

Hi!

Love this module. I am working on developing some pieces that are running on instances in the AWS cloud EC2 servers. I would like to use some of the autogui features as a web-console workaround. But I get Xlib errors. Is there any workaround for them? faking a VGA output? I am able to get a desktop via VNC.

Thanks!

@asweigart
Copy link
Owner

I'm no xlib expert, I cobbled those functions together mostly from StackOverflow answers. But if there's a solution for this, I'd love to get pull requests.

But for me personally anyway, this isn't on my road map of things to do. You might have better luck with something like Selenium.

@asweigart asweigart changed the title AWS workaround? Make PyAutoGUI work on headless AWS. Sep 18, 2015
@chrism91
Copy link
Author

Just got it to work! Sorry for the invalid request. Looks like your mod doesn't depend on physical interfaces in the hardware. Good thing. For me. And probably others.

Side note: Is there a way to pass variables copied using keyboard shortcuts? I have 'ctrl' 'c' copied a line of text, and would like to know if your module has any knowledge of the content performed by shortcuts.

Thanks!
Chris

@chrism91
Copy link
Author

Selenium is dope. But for the kinds of authentication I'm working around, this tool is ideal.

@duedl0r
Copy link

duedl0r commented Sep 24, 2015

Could you describe how you got it to work?
Cheers

@dragon788
Copy link

Has anyone tested this with Xvfb or it's successor (can't recall the name offhand)? They implement a passable X server that can be utilized by exporting DISPLAY=:99 or something similar and running Xvfb with the appropriate arguments.

@asweigart
Copy link
Owner

Currently PyAutoGUI doesn't support remote/headless machines. I've created a master issue #133 to track the development of this feature.

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

4 participants