I'm a beginner to Python so any help will be much appreciated,
I have a Windows laptop which I use and a 2 monitors which I connect to it, when I am using the monitors the laptop lid is shut, and when I'm using the laptop I'm away from the monitors
I want to create a script that will do the following:
- Check whether the 2 monitors are connected
- If they are then set the wallpaper to "Image 1" on Stretch
- If the laptop screen is only connected, then set the wallpaper to "Image 2" on Fill
I would want to turn this into code essentially:
Image 1 = "C:\\Users....\Image1.png"
Image 2 = "C:\\Users....\Image2.png"
Laptop Screen = HP ENVY x360 Screen?
Dual Monitors = SAMSUNG 24 and SAMSUNG 24
if Dual Monitors is connected:
set wallpaper to Image 2 on Stretch
else:
set wallpaper to Image 1 on Fill
Can someone advise me on how I would do this but in Python?