# Desktop Live Wallpaper with Xojo?

**URL:** <https://forum.xojo.com/t/desktop-live-wallpaper-with-xojo/50298>\
**Category:** Getting Started\
**Created:** [September 18, 2019, 10:08am UTC](https://forum.xojo.com/t/desktop-live-wallpaper-with-xojo/50298 "2019-09-18T10:08:14Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![MarkusR](https://forum.xojo.com/user_avatar/forum.xojo.com/markusr/32/685_2.png) [@MarkusR](https://forum.xojo.com/u/MarkusR)\
**Post date:** [September 18, 2019, 10:08am UTC](https://forum.xojo.com/t/desktop-live-wallpaper-with-xojo/50298/1 "2019-09-18T10:08:14Z")

</div>

hello,  
is it possible to make a Desktop Live Wallpaper windows service with Xojo?

---

<div class="post-metadata">

**Author:** ![Sascha\_S](https://forum.xojo.com/user_avatar/forum.xojo.com/sascha_s/32/22328_2.png) [@Sascha\_S](https://forum.xojo.com/u/Sascha_S)\
**Post date:** [September 18, 2019, 10:23am UTC](https://forum.xojo.com/t/desktop-live-wallpaper-with-xojo/50298/2 "2019-09-18T10:23:38Z")

</div>

Can’t answer your question. But i am sure someone who could answer would like to know OS + Version. 😉

---

<div class="post-metadata">

**Author:** ![Ivan\_Tellez](https://forum.xojo.com/letter_avatar_proxy/v4/letter/i/a9a28c/32.png) [@Ivan\_Tellez](https://forum.xojo.com/u/Ivan_Tellez)\
**Post date:** [September 18, 2019, 3:08pm UTC](https://forum.xojo.com/t/desktop-live-wallpaper-with-xojo/50298/3 "2019-09-18T15:08:42Z")

</div>

[quote=454641:@Markus Rauch]hello,  
is it possible to make a Desktop Live Wallpaper windows service with Xojo?[/quote]

Well, technically you can do anything in Xojo, even a service in windows. BUT yo need a PRO licence for that kind of app, and since the framework is very limited, you will need a lot of declares just for displaying images. If you want something fancier like 3D, yes, you can program your own engine, but, as you can turn a screw with your nail, definitely it is better to choose a more apropriate tool for the job.

---

<div class="post-metadata">

**Author:** ![Sascha\_S](https://forum.xojo.com/user_avatar/forum.xojo.com/sascha_s/32/22328_2.png) [@Sascha\_S](https://forum.xojo.com/u/Sascha_S)\
**Post date:** [September 18, 2019, 3:21pm UTC](https://forum.xojo.com/t/desktop-live-wallpaper-with-xojo/50298/4 "2019-09-18T15:21:48Z")

</div>

> [@454642:@Sascha S](#):
>
> Can’t answer your question. But i am sure someone who could answer would like to know OS + Version. 😉

[quote=454641:@Markus Rauch]hello,  
is it possible to make a Desktop Live Wallpaper windows service with Xojo?[/quote]

Oops! 🙂

---

<div class="post-metadata">

**Author:** ![MarkusR](https://forum.xojo.com/user_avatar/forum.xojo.com/markusr/32/685_2.png) [@MarkusR](https://forum.xojo.com/u/MarkusR)\
**Post date:** [September 18, 2019, 8:36pm UTC](https://forum.xojo.com/t/desktop-live-wallpaper-with-xojo/50298/5 "2019-09-18T20:36:27Z")

</div>

i have windows 10 and a xojo pro licence.

if we could use the open gl class & commands for rendering a desktop background in real time that would be cool.

a 2d painted canvas to windows desktop would also be nice.

---

<div class="post-metadata">

**Author:** ![brian\_franco](https://forum.xojo.com/user_avatar/forum.xojo.com/brian_franco/32/156_2.png) [@brian\_franco](https://forum.xojo.com/u/brian_franco)\
**Post date:** [September 18, 2019, 8:41pm UTC](https://forum.xojo.com/t/desktop-live-wallpaper-with-xojo/50298/6 "2019-09-18T20:41:47Z")

</div>

> [@454658:@Ivan Tellez](#):
>
> as you can turn a screw with your nail, definitely it is better to choose a more appropriate tool for the job.

I’m going to have to remember this quote 🙂

---

<div class="post-metadata">

**Author:** ![MarkusR](https://forum.xojo.com/user_avatar/forum.xojo.com/markusr/32/685_2.png) [@MarkusR](https://forum.xojo.com/u/MarkusR)\
**Post date:** [September 20, 2019, 7:30am UTC](https://forum.xojo.com/t/desktop-live-wallpaper-with-xojo/50298/7 "2019-09-20T07:30:10Z")

</div>

this more appropriate tool is called “visual studio”?

---

<div class="post-metadata">

**Author:** ![MarkusR](https://forum.xojo.com/user_avatar/forum.xojo.com/markusr/32/685_2.png) [@MarkusR](https://forum.xojo.com/u/MarkusR)\
**Post date:** [October 2, 2019, 12:40pm UTC](https://forum.xojo.com/t/desktop-live-wallpaper-with-xojo/50298/8 "2019-10-02T12:40:08Z")

</div>

this small code change the windows desktop background image in a timer action event with interval 1000 ms.  
not live but at least a change of images.  
Number is a integer Property with default =1

```auto
System.DebugLog "Timer"

Declare Function SystemParametersInfo Lib "user32" Alias "SystemParametersInfoA" (ByVal uAction As Integer, ByVal uParam As Integer, ByVal lpvParam As CString, ByVal fuWinIni As Integer) As Integer

Const SETDESKWALLPAPER = 20
Const UPDATEINIFILE = &H1

Dim Location As CString = "C:\\Temp\\test"+Str(Number)+".jpg"

Dim Ret As Integer
Ret = SystemParametersInfo(SETDESKWALLPAPER, 0, Location, UPDATEINIFILE)

Number = Number +1
If Number > 3 Then Number = 1
```

---

<div class="post-metadata">

**Author:** ![system](https://forum.xojo.com/uploads/default/original/1X/455b4dcc0e61630e9f81940004ddffa49c432a46.png) [@system](https://forum.xojo.com/u/system)\
**Post date:** [April 29, 2021, 4:05pm UTC](https://forum.xojo.com/t/desktop-live-wallpaper-with-xojo/50298/9 "2021-04-29T16:05:41Z")

</div>


