Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <ol> <li><p>After joining the images together into a big image, you have to set the wallpaper mode to <strong>tiled</strong> to make it so the image spans the desktop (otherwise it will restart on each monitor).</p> <p>Couple of ways to do this:</p> <p>a) Using <a href="http://msdn.microsoft.com/en-us/library/bb776357%28v=vs.85%29.aspx" rel="noreferrer">IActiveDesktop</a> (which does <em>not</em> require Active Desktop to be used, don't worry). This is nicest as on Win7 the new wallpaper will fade in.</p> <p>You create an IActiveDesktop / CLSID_ActiveDesktop COM object and then call SetWallpaper, SetWallpaperOptions and finally ApplyChanges. (As I'm not a Python dev, I'm not sure exactly how you access the COM object, sorry.)</p> <p>OR:</p> <p>b) Via the registry. This isn't as nice, but works well enough.</p> <p>Under <code>HKEY_CURRENT_USER\Control Panel\Desktop</code> set:</p> <ul> <li><code>TileWallpaper</code> to (REG_SZ) <code>1</code> (i.e. the string "1" not the number 1)</li> <li><code>WallpaperStyle</code> to (REG_SZ) <code>0</code> (i.e. the string "0" not the number 0)</li> <li>Then call SystemParameterInfo(SPI_SETDESKTOPWALLPAPER...) as you do already.</li> </ul> <p>.</p> <p>By the way, the code I'm looking at, which uses IActiveDesktop and falls back on the registry if that fails, passes <code>SPIF_UPDATEINIFILE | SPIF_SENDCHANGE</code> as the last argument to SystemParameterInfo; you're currently passing 0 which could be wrong.</p></li> <li><p><a href="http://msdn.microsoft.com/en-us/library/dd162610%28v=vs.85%29.aspx" rel="noreferrer">EnumDisplayMonitors</a> is the Win32 API for getting details on the monitors, including their screen sizes and positions relative to each other.</p> <p>That API returns its results via a callback function that you have to provide. (It calls it once for each monitor.) I am not a Python developer so I'm not sure how you can call such a function from Python.</p> <p>A quick Google for "Python EnumWindows" (EnumWindows being a commonly-used API which returns results in the same way) finds people talking about that, and using a Lambda function for the callback, so it looks like it's possible but I'll leave it to someone who knows more about Python.</p> <p>Note: Remember to cope with monitors that aren't right next to each other or aren't aligned with each other. Your compiled image may need to have blank areas to make things line up right on all the monitors. If you move one of the monitors around and do a PrtScn screenshot of the whole desktop you'll see what I mean in the result.</p></li> </ol>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload