Lion: Change Background Pictures on all Desktops - desktop

I would like to change the wallpaper on all desktops simultaneously to one picture using a shell script (basically anything shell, python, applescript, automator would be fine).
Any hints?
Daniel

Related

Qt Camera Example - changing settings does not work

I have built and run the Camera Example project from the examples in Qt (QtCreator -> examples).
All went correctly.
I can run the program and display video stream from my laptops camera (Lenovo X220) and from my android phone (using DroidCam Client in the background).
The example has many options, that you can change.
I can use the sliders to adjust Exposure Compensation or Quality. But they do not appear to work.
Nothing except form image capture does not appear to work. The same goes for the QML example.
Has anyone tried those examples?
Is there a way to make the functions provided by the example work?
Is there another way to make those changes?
I am using Window 10 with the latest updates, but I have tried the example a couple moths ago, and the results were the same.

Python cross platform compatible multi screen screenshot

Python interpretor used: 2.7 (having trouble with python3.5 py2app on OSX 10.11
I am working on an interesting screenshot app using python and pygame but i am stuck at 1 screen limit since pygame doesn't seem to implicitly support multiple screens.
My problem is that right now I use pyautogui screenshot function to capture the whole screen and i open it in a pygame fullscreen window where i can modify the image and such.
I would like to know if there is a way to screenshot multiple displays at once in a cross platform compatible way. Right now i have yet to figure out how to make pyautogui screenshot any other display other than the default one
You may wish to look into the pyscreenshot library, its a purely python library and is supposed to be crossplatform, however also has issues with the multi monitor problem.
Another method is to call a subprocess of the specific os you are using, this means calling its native ability to screenshot via command, here is an example on IOS from this stackoverflow post outlining what i mean:
from subprocess import call
call(["/usr/sbin/screencapture", "screen1.png", "screen2.png"])
By #Mark Setchell
Looking at the website its already on the roadmap of pyautogui to make handling multiple screens simpler so hopefully they will resolve this.
There is also a long post here outlining the issue as it currently stands with pyautogui's multi-monitor support. So unfortunately as it stands it looks like both pygame and pyautogui do not (easily) support multi-monitor screenshotting atleast without hackish type implementations if your monitor calibrations are not completely side by side as it offsets x and y values to possibly negative's.
Latestly there is yet another...as always..another python library specifically for multi monitor screenshots in python called desktopmagic. Its available here however it makes no promises of being crossplatform and infact states only that "takes screenshots on windows". So for your purpose it may not be suitable.
Anyway hope this helps in anyway or atleast gives you more options. Hope your project works out.

Can I restrain Qt to only use bundled fonts and never rely on system fonts?

In our Qt5 application we bundle a custom font as a resource. We use only this font in the application, and rely on no other fonts.
The font we use has a whooping 128 variations (regular, bold, black, extrabold, extrabold italic, semibold, thin, condensed etc). and we have naturally decided to only bundle the tiny subset of those variations that we actually use.
To make matters more complex, the font we use exists in several versions with small changes between them.
On my development computer I have installed all the 128 variations of one version of the font in the OS itself while on the clients that run the software we can't really tell if the fonts are present or not in their OS, and if present, in which version.
We have experienced cases where the fonts looks severely different between my development computer and on the end clients. We use the font in a virtual keyboard widget and some symbols on the keys show up OK on my computer while they are missing (showing the empty box character) on the client.
So my question is, can we somehow restrain the font system in Qt to only use the fonts provided by the resources bundled with the program? That would mean that any reference to system default fonts such as Arial would simply result in our font to be used instead, or simply denied with an error.
Any insights and tips are warmly welcomed.
Thanks!

Windows 7 current startup/shutdown bitmaps

Someone can tell me how to get CURRENTLY USED startup/shutdown bitmaps or animations of Windows 7 ? I know they are changed based on theme used. I am coding little tool to edit the current theme images, i dont want to use existing tool.
Thanks in advance.
As #Red Serpent wrote in his comment, these background images are not part of the theme, instead they are provided by the OEM, hence won't change when you change Windows theme.
It is possible to change the login, logout and lock screen backgrounds independently from the current theme. You can achive this by altering a registry setting and creating/modifying some dedicated image files deep in the Windows folder. The required steps are described in this blog post.
You can extract and change the OEM login screen background images by locating and reading these files. However, the default Windows 7 login screen cannot be extracted as it resides somewhere else, maybe bundled in a resource file with a dozen of other images.

COM library for Explorer-like system views

To provide a Windows Explorer-like view of the user's system, we have been using the shell controls from LogicNP (formerly Sky Software), but these have deficiencies, e.g., no support for Win7 libraries. The vendor has not responded to our inquiries about updates, so we're looking to replace the package.
Requirements:
ActiveX (no managed code or MFC)
Tree and list views of the system
Per-item checkboxes
32- and 64-bit versions
Any recommendations for a replacement product?
TIA.
Based on the fact that you said you need to support Windows XP:
I accomplished this by using the Shell API to enumerate files & folders and then I used custom drawing to draw the correct icons for each shell item in a standard listview control. It was a fair bit of work and I don't know exactly what you need your shell view to accomplish, but this may be the best option.
This might be a good place to start reading:
http://msdn.microsoft.com/en-us/library/bb776889.aspx