WallX v1.93x

Developed or developing a new product in PureBasic? Tell the world about it.
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6161
Joined: Sat May 17, 2003 11:31 am
Contact:

WallX v1.93x

Post by blueznl »

Creates a text on a coloured background, and turns that into a wallpaper, to help identify your machine. Yep, that's all. Oh wait! It also loads single and multi monitor wallpapers, duh!

I'm never sure where to post these things... if in the wrong please, could a moderator please move it to the appropriate spot? Same would apply to announcements for the Survival Guide and CodeCaddy, I guess...

Some images...

Image

Image

Image

Image

Image

Download here (source included):

http://www.xs4all.nl/~bluez/purebasic/p ... .htm#wallx
Last edited by blueznl on Fri Sep 17, 2021 2:52 pm, edited 22 times in total.
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
User avatar
luis
Addict
Addict
Posts: 3876
Joined: Wed Aug 31, 2005 11:09 pm
Location: Italy

Re: WallX v1.04x build 26 25.09.09 save 1172

Post by luis »

Very nice :)

Thank you!
"Have you tried turning it off and on again ?"
A little PureBasic review
User avatar
GG
Enthusiast
Enthusiast
Posts: 254
Joined: Tue Jul 26, 2005 12:02 pm
Location: Lieusaint (77), France

Re: WallX v1.04x build 26 25.09.09 save 1172

Post by GG »

Adopted for me !
Great work blueznl, thanks. :)
Purebasic 6.04 64 bits - Windows 11 Pro 64 bits 23H2
JCV
Enthusiast
Enthusiast
Posts: 579
Joined: Fri Jun 30, 2006 4:30 pm
Location: Middle East

Re: WallX v1.04x build 26 25.09.09 save 1172

Post by JCV »

Thank you!

:)

[Registered PB User since 2006]
[PureBasic 5.7][SpiderBasic 2.2] [Win 10 64bit]
[Intel i7 990x 4.20 Ghz] [18GB DDR3]
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6161
Joined: Sat May 17, 2003 11:31 am
Contact:

Re: WallX v1.19x build 60 save 1931

Post by blueznl »

Couldn't help myself. I've expanded WallX so that it now not only creates images, but it can now also display your wallpapers, resizing them on the fly, and (there's the little bonus) autodetect multi monitor wallpapers.

It's not fully featured yet (need to add some transparency options) but all basics work.

I would appreciate it if some people could try it with their wallpaper colledtion, especially odd-sized images, and multi monitor configurations.

Thanks in advance.

Image:

Image

The program can be found here:

http://www.xs4all.nl/~bluez/purebasic/p ... d_wallnutt
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6161
Joined: Sat May 17, 2003 11:31 am
Contact:

Re: WallX v1.26x build 75 save 2405

Post by blueznl »

Update.

Latest version: WallX v1.26x 06.12.2009 build 75 save 2405

Fixed some more problems and added some options. I've added:

- fixed two font bugs
- discovered some windows limitations (keep screens 'aligned' and you're fine)
- better transparency for texts
- added alerts
- added keyword 'silent' to surpress those alerts ;-)
- added wallx.lst file
- improved the help text
- ignored all other user requests (well, there were none, so no issue there :-))

File is here:

http://www.xs4all.nl/~bluez/purebasic/p ... d_wallnutt
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
User avatar
Rook Zimbabwe
Addict
Addict
Posts: 4326
Joined: Tue Jan 02, 2007 8:16 pm
Location: Cypress TX
Contact:

Re: WallX v1.26x build 75 save 2405

Post by Rook Zimbabwe »

This is impressive!!! 8)
Binarily speaking... it takes 10 to Tango!!!

Image
http://www.bluemesapc.com/
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6161
Joined: Sat May 17, 2003 11:31 am
Contact:

Re: WallX v1.29x build 83 save 2621

Post by blueznl »

Latest version: v1.29x 10.10.09 build 83 save 2621.

Update:

- added 'frame' parameter
- full support for any strange monitor sizes or locations
- stretch out any image over any number of monitors

(I've tested this with two real monitors and MaxiVista as a virtual monitor, all seemed to be working fine. Check out the 'distort' and 'expand' parameters if you want to test this yourself with lo-res images with wrong aspect ratios.)

Never mind the memory consumption :-) Such wallpapers on three monitors take 21 MB or more :-)

You'll find it here:

http://www.xs4all.nl/~bluez/purebasic/p ... d_wallnutt

Could anyone please test this on a multi monitor Vista and a multi monitor Windows 7? Thanks in advance.
Last edited by blueznl on Tue Aug 03, 2010 12:32 am, edited 1 time in total.
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6161
Joined: Sat May 17, 2003 11:31 am
Contact:

Re: WallX v1.31x build 98 save 2679

Post by blueznl »

Update WallX v1.31x.

- now supports automatic renew of wallpaper every 'x' seconds when the user has been 'y' seconds away
- some corrections in the help text
- some path / folder related fix but I can't remember what it was :-)
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
User avatar
OldSkoolGamer
Enthusiast
Enthusiast
Posts: 148
Joined: Mon Dec 15, 2008 11:15 pm
Location: Nashville, TN
Contact:

Re: WallX v1.31x build 98 save 2679

Post by OldSkoolGamer »

I have to say, pretty frakin sweet & very useful, THANKS a TON 8)
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6161
Joined: Sat May 17, 2003 11:31 am
Contact:

Re: WallX v1.31x build 98 save 2679

Post by blueznl »

Added a Windows 98 version to the archive. I forgot I used an XP-and-later WinApi call which caused some troubles on Windows98 (and I was too lazy to make the code smarter :-))
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6161
Joined: Sat May 17, 2003 11:31 am
Contact:

Re: WallX v1.40x

Post by blueznl »

Release Notes for WallX v1.40x c2010 EJN.
-----------------------------------------

Application:

- sets / replaces wallpaper with a generated image + text
- loads and auto resizes specified images / wallpapers
- updates wallpaper when detecting screen or ip changes
- supports multi monitor setups
- auto detects multi monitor wallpapers

Quick start:

1 copy wallx.exe into a some folder
2 copy a few .jpg files into the same folder
3 make sure enough of the desktop background is visible
4 inside that folder execute the following:

wallx.exe basemark "it lives!"
wallx.exe random nearby
wallx.exe kill


Command line parameters.
------------------------

Generic:

help - show this help text
silent - suppress alerts
resident - stay running and monitor changes
kill - stop any instances of wallx
delay <seconds> - delay execution for n seconds
renew <seconds> - renew wallpaper after n seconds
nouser <seconds> - renew only if user is away for n seconds

Colour / pattern:

base - diagonal yellow / black stripes
traffic - diagonal red / white stripes
red - red background
colour $001122 - specify colour in hex RGB

(other colours: blue green cyan lime black grey white brown pink)

Load:

load <filename> - load background from file
random <path> - pick (multiple) random images
random nearby - grab images nearby wallx.exe
current - use wallpaper from control panel
pairs <n> - chance on using wallx.lst pairs (0..100)
distort <n> - acceptable distortion in %
expand <n> - maximal increase in %

Effects:

fade - fade to black, top to bottom
drain - turn image b&w and darken 30%
dots - superimpose black dots (25%)
frame - thin dotted screen perimater

Text:

reverse - black on white text
transparent - text is drawn with 75% transparency
font <name> <size> - specify font name And size
big <text> - large white text
text <text|text> - draw one or more text lines

Output:

monitor all - output to all monitors
monitor <n> - output to monitor <n>
save <filename> - store generated background
save nearby - store in the same folder as wallx.exe
keep - set as permanent wallpaper

Combo:

mark <text> - a preset combination of commands
basemark <text> - a preset combination of commands

Equivalents to combo commands:

wallx mark "TEST"
wallx big ~ip~ dots text " TEST | ~host~ ~ip~ " fade
wallx basemark "TEST"
wallx base fade text " BASE IMAGE | TEST | ... | ~host~ ~ip~ "


Embedded text elements.
-----------------------

These elements will be replace with the actual IP number etc. on
every call.

~ip~ - ip number
~host~ - host name
~user~ - user name
~USER~ ~HOST~ - user or host name in uppercase
~timestamp~ - day and time at moment of execution
~monitor~ - monitor number (differs from windows)


Use.
----

The basics:

- before any other actions wallx creates a random coloured image
- all commands should be lowercase
- all commands are processed from left to right
- use doublequotes to pass spaces in textfields
- 'help' and 'kill' cannot be used in combination with other commands
- delay commands are executed before anything else
- monitor numbering may not match the one used by windows
- multi monitor images are automatically detected (by size and aspect)


Launching from the commandline / from within a batch file:

- pass proper parameters
- when using the 'resident' command you need to use start:

start wallx mark "EXAMPLE" resident

Launching via an icon / desktop / startup menu:

- create a shortcut to wallx.exe
- add appropriate parameters to the shortcut target

Loading images:

- images are shown on the specified screen(s)
- images are automatically resized / cropped to match aspect and size
- wallx tries to recognize and use multi monitor wallpapers
- the commands 'expand' and 'distort' modify behaviour
- 'random <path>' gives 10% chance on a pair from wall.set

Running resident:

- launch wallx with the parameter 'resident'
- wallx will automatically detect changes in IP and / or screensize
- on every change it will execute the given parameters again
- to kill all instances of wallx use 'kill' as in:

wallx kill

Start resident and kill later:

start wallx mark "EXAMPLE" resident
wallx kill

WallX can automatically change wallpapers. Random wallpapers every 4
seconds when the user is away for at least 60 seconds:

start wallx random nearby renew 4 nouser 60 resident


Files.
------

The wallx.cmd file:

- create a file wallx.cmd in the same folder as wallx.exe
- this file may contain any wallx commands on multiple lines
- wallx will execute this file when called without parameters

Example wallx.cmd:

; sample wallx.cmd
;
silent
random c:\software\wallpaper
mark "XPS710"

The wallx.lst file:

- create a file wallx.lst in the same folder as the images
- this is only used for the 'random' command
- contains user defined pairs of images, seperated by colons
- empty lines and those starting with a semi colon are ignored
- pairs from the wallx.lst file are shown at random (default 20%)
- use the 'pairchance' parameter to increase the chance (0..100)

Example wallx.lst:

; sample wallx.lst
;
apple.jpg , pear.jpg
sunrise.jpg, sundown.jpg


Notes.
------

Using with Vista (64):

on Vista (64) WallX will get stuck for a while when launched
from the task scheduler or from the startup folder, unfortunately
there's nothing I can do about that, it has to do with the way
Vista allows creation of new files (suggestions welcome!)...
you may want to add the 'keep' option

To launch windows next time with the last generated image:

wallx text "I'll be back" keep

Drag / drop images on a desktop icon (using a batchfile):

rem create and save this batch file
rem create a shortcut on the desktop pointing to this batch file
rem drag / drop one or more image files onto this shortcut
wallx.exe silent load %1 monitor 2 load %2

Other examples:

wallx traffic fade
wallx red big 1
wallx big ~ip~ text ~timestamp~
wallx blue big "~ip~" dots text "~host~ ~ip~" fade
wallx traffic fade big 1 dots text "MYSQL SERVER |~host~ - ~ip~"
wallx colour $FAFBFC reverse mark save "c:\wallx.bmp"
wallx pink mark "MYSQL SERVER" save nearby
wallx delay 2 mark "WHO LOVES VISTA"
wallx "blue fade font Arial 100 text CLIENT|~host~-~ip~"
wallx monitor all base monitor 1 fade monitor 2 dots
wallx load wallpaper.jpg
wallx random c:\software\wallpaper
wallx random c:\software\wallpaper transparent mark "XPS710"
wallx distort 50 expand 300 random frame big ~desktop~
Last edited by blueznl on Tue Dec 28, 2010 6:08 pm, edited 2 times in total.
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6161
Joined: Sat May 17, 2003 11:31 am
Contact:

Re: WallX v1.40x

Post by blueznl »

Update WallX v1.40x.

- bugfix 'silent'
- added 'renew'
- added 'nouser'
- added '~user~'
- added '~USER~' and '~HOST~'
- added 'current'
- added 'keep'
- fixed some typos
- switched to x_lib (too lazy to maintain multiple code bases)
- much improved help function and help text (see previous post)

Some changes might have made it already into the earlier v1.31x. I don't recall :-)

For those that want to superimpose some text over their existing backgrounds this has now become possible using the new 'current' keyword: wallx current mark "~USER~"

Start windows with the last generated image: wallx random nearby keep

This version may need a bit of testing on non-XP machines. Comments welcome.
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6161
Joined: Sat May 17, 2003 11:31 am
Contact:

Re: WallX v1.46x

Post by blueznl »

Update WallX v1.46x.

- should now detect multiple IP addresses and show last changed address (needs some more verification)
- should now detect hibernation timeouts and refresh accordingly
- some changes in the commands (don't recall what exactly, has been a while :-))

Same place, as usual: http://bluez.home.xs4all.nl/purebasic/p ... d_wallnutt
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
User avatar
GG
Enthusiast
Enthusiast
Posts: 254
Joined: Tue Jul 26, 2005 12:02 pm
Location: Lieusaint (77), France

Re: WallX v1.46x

Post by GG »

In Windows 2008 R2 Standard Edition 64 bits, the simple command wallx mark "TEST" doesn't work at all : Nothing changes.
Has anybody encoutered this ?
Purebasic 6.04 64 bits - Windows 11 Pro 64 bits 23H2
Post Reply