Windows allows users to set the lock screen background to Slideshow but makes the user pick the albums for the slide show.
I have a device on the shop floor that I need to set the pictures programatically and cannot rely on the shop floor staff to know what folders to look in.
Is there an API where I can set the lock screen background?
Related
I have an application for Windows which is basically a toolbar on top of all windows.
Unfortunately, our users ask why does it overlap a fullscreen video playing in Google Chrome. Since the application works with no issues along with other fullscreen applications (such as games), it seems to be a pseudo fullscreen mode. How do we hide the toolbar in such cases?
Right now there is only one idea: keep an eye on MoveWindow, compare window class name against a predefined list and rectangle against screen size then deduce whether it is the 'pseuso fullscreen' mode. Any better ideas?
I want to whip something up that would run a small script every time i clicked on the Desktop. Any hints on how to make this happen?
For those interested, the script would toggle the display of desktop icons.
I assume you mean on the desktop background, not any icon. You could create a transparent overlay window, use [window setIgnoresMouseEvents:NO] to make it receive clicks, and set its window level to something between the desktop and the icons (kCGDesktopWindowLevel and kCGDesktopIconWindowLevel).
You would presumably want to create one of those per screen and monitor for changes in the screen configuration to add, remove, or resize them as appropriate. Either observe the NSApplicationDidChangeScreenParametersNotification or implement the -applicationDidChangeScreenParameters: application delegate method (which amounts to the same thing).
It needs to create instant messenger application.
Background thread should work under lock screen and after Home button is pressed.
As I see, it is possible and IM+ (by SHAPE services) works the same way, but how it is possible?
Working under lock screen possible by creating DispatcherTimer, but how to make process alive after user press Home button?
You can't run a application in the background on Windows Phone. You can run it under the lock screen sure, but not in the background.
And Periodic Background Tasks won't suit your need, as they only run every 30 minutes, as a separate process.
So again, it's not possible to run a chat/IM application in the background.
How do you hide the desktop icons and the windows open to show the desktop wallpaper in cocoa?
Trying to show a preview??
If so you could try:
Showing a full-screen app with the image to simulate a preview.
Once user selects a wallpaper, use APIs provide to set that image as the
wallpaper.
(You could,minimise your app now)
I hope this is what you wanted to achieve...
GoodLUCK!!
I'm trying to trigger a desktop slideshow change but I can't find a public API to do it...
The closer I got was to see the name of the methods that are using (they are using a COM object, but I don't know the CLSID to instantiate it).
I already know how to change the desktop wallpaper (i'm doing that already), what I want is a way to trigger the slideshow transition (new to Windows 7).
This doesn't answer your question, and you may have worked it out already, but if the desktop slideshow engine (as I'll call it) has been started (if you bring up 'Personalize' > 'Desktop Background' then choose 'Windows Desktop Backgrounds' from the 'Picture location' drop down, then you'll see the background fade in and out - that's the engine on) then you can use the IActiveDesktop interface by calling 'SetWallpaper' with your JPEG picture and then 'ApplyChanges' with the following parameters:
AD_APPLY_ALL | AD_APPLY_FORCE | AD_APPLY_BUFFERED_REFRESH
When you do you'll notice the slideshow transition effect is used to show the wallpaper you've specified. Lovely.
Reboot however (or kill off Explorer.exe and re-start it) and the same call won't do the transition, it'll just change the background in the old, instant way. Some digging with Spy++ shows that when the slideshow engine is running, the actual desktop FolderView no longer lives under 'Program Manager' in the window parent / child relationship, it's owned by a new window called 'WorkerW' which lives inside Explorer (ties up nicely with your call stack above). In other words, it's taking control of the desktop window from Progman.
So what you need to do is figure out how to get Explorer to initialise that new owner of the desktop window (the 'slideshow engine') and then you can use the IActiveDesktop interface to change the background.