Click here to Skip to main content
15,889,992 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have used the pyautogui module to automatically take pictures using Imaging Edge Desktop Application. The problem is I'd like for this code to run headlessly. I've considered things like Xvfb and virtual displays.

My question is do you see any reason why pyautogui code would not run headlessly using a display emulator as your primary monitor?

My PC is windows and I can set up the code to run on startup using the Windows task scheduler app. Thus, I can just start my PC up and let it run my code/control the camera. That's my hope anyway. What are your thoughts?

Edit: I tried it and my pyautogui code works headlessly with a HDMI emulator.

What I have tried:

I've researched Xvfb, but my App(Imaging Edge) is only available for windows and mac. Xvfb only works with Linux. It may be possible to use WLS (windows Linux subsystem) but it seems like a long shot. I've tried to look for ways to create a virtual display in Windows but I saw someone in a windows forum say its not a feature yet and referred to the commentator to a "future suggestions/recommendations" page for windows.
Posted
Updated 7-Aug-20 8:08am
v2
Comments
Richard MacCutchan 30-Jul-20 12:34pm    
There is a simple way to find out.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900