It is currently Tue Sep 25, 2018 6:20 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 32 posts ]  Go to page Previous  1, 2, 3  Next
Author Message
 Post subject: Re: WallX v1.46x
PostPosted: Wed Jun 22, 2011 9:08 pm 
Offline
PureBasic Expert
PureBasic Expert
User avatar

Joined: Sat May 17, 2003 11:31 am
Posts: 6042
Which version are you using?

_________________
( PB5.xx Win10 x64 Asrock AB350 Pro4 Ryzen 1600X Evo 840 GTX1060 )
( The path to enlightenment and the PureBasic Survival Guide right here... )


Top
 Profile  
Reply with quote  
 Post subject: Re: WallX v1.46x
PostPosted: Thu Jun 23, 2011 9:08 am 
Offline
Enthusiast
Enthusiast

Joined: Tue Jul 26, 2005 12:02 pm
Posts: 205
Location: Lieusaint (77), France
Last one : WallX v1.50x c2010..2011 EJN 19.06.2011 build 131 save 3017.

_________________
Purebasic 5.51 64 bits - Windows 7 Pro 64 bits SP1


Top
 Profile  
Reply with quote  
 Post subject: Re: WallX v1.46x
PostPosted: Thu Jun 23, 2011 6:17 pm 
Offline
PureBasic Expert
PureBasic Expert
User avatar

Joined: Sat May 17, 2003 11:31 am
Posts: 6042
That's weird, it should work. I'm using a regular API call to set the wallpaper. Does it have enough rights?

_________________
( PB5.xx Win10 x64 Asrock AB350 Pro4 Ryzen 1600X Evo 840 GTX1060 )
( The path to enlightenment and the PureBasic Survival Guide right here... )


Top
 Profile  
Reply with quote  
 Post subject: Re: WallX v1.46x
PostPosted: Fri Jun 24, 2011 3:47 pm 
Offline
Enthusiast
Enthusiast

Joined: Tue Jul 26, 2005 12:02 pm
Posts: 205
Location: Lieusaint (77), France
It's on a new server at work. Seems to be a local admin.
Do the program need write access to registry or something like that ?

_________________
Purebasic 5.51 64 bits - Windows 7 Pro 64 bits SP1


Top
 Profile  
Reply with quote  
 Post subject: Re: WallX v1.46x
PostPosted: Fri Jun 24, 2011 7:01 pm 
Offline
PureBasic Expert
PureBasic Expert
User avatar

Joined: Sat May 17, 2003 11:31 am
Posts: 6042
I have it here running on the kids PC, as well as my wife's PC. Both systems are running as limited rights users, without any problems.

However, WallX does need to create a temporary file, which it does at the temp directory. From the source code:

Code:
Global wall_filename.s = GetTemporaryDirectory()+"wallx.bmp"


It does create a file there, so you would need writing rights to that folder. On XP that never poses a problem either with full or limited rights.

With full rights it works fine on Vista and Win7. I have not tried WallX on Vista or Win7 yet with limited rights. (If someone else would be able to try, feel free to do so and give me some feedback :-))

There is one registry setting affected:

Code:
x_registry_set(#HKEY_CURRENT_USER,"Control Panel\Desktop","TileWallPaper",#REG_SZ,0,"1",1)


The above sets the wallpaper to a tiled format. This is a per user setting. I've included the source code and you could comment it out.

The wallpaper is set by the following api call:

Code:
SystemParametersInfo_(#SPI_SETDESKWALLPAPER,0,@wall_filename,0)

_________________
( PB5.xx Win10 x64 Asrock AB350 Pro4 Ryzen 1600X Evo 840 GTX1060 )
( The path to enlightenment and the PureBasic Survival Guide right here... )


Top
 Profile  
Reply with quote  
 Post subject: Re: WallX v1.46x
PostPosted: Fri Jun 24, 2011 8:19 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Mon Sep 20, 2004 7:12 am
Posts: 473
Location: Hell
Shouldn't the original Desktop-picture be reshown, when calling "wallx kill"?

It's a little bit strange here, i got a grey background instead of my former picture, allthough in the desktop settings the picture is still active.
(Win XP/32Bit)

[Edit]
This snipped works as expected and resets my pic:
Code:
OpenConsole()
a$ = "D:\Wallx\DSC01140.bmp"
SystemParametersInfo_(#SPI_SETDESKWALLPAPER, 0, @a$, 0)
Input()
SystemParametersInfo_(#SPI_SETDESKWALLPAPER, 0, 0, 0)
Input()

_________________
Link dead?
Change h3x0r.ath.cx into hex0rs.coderbu.de and all will be fine.


Top
 Profile  
Reply with quote  
 Post subject: Re: WallX v1.46x
PostPosted: Sat Jun 25, 2011 11:46 pm 
Offline
PureBasic Expert
PureBasic Expert
User avatar

Joined: Sat May 17, 2003 11:31 am
Posts: 6042
Nope, the first thing wallx does is create a random coloured background. It's a remnant of previous bughunts and testing, but it didn't bother me so I kept it in :-)

_________________
( PB5.xx Win10 x64 Asrock AB350 Pro4 Ryzen 1600X Evo 840 GTX1060 )
( The path to enlightenment and the PureBasic Survival Guide right here... )


Top
 Profile  
Reply with quote  
 Post subject: Re: WallX v1.46x
PostPosted: Tue Mar 13, 2012 6:24 pm 
Offline
PureBasic Expert
PureBasic Expert
User avatar

Joined: Sat May 17, 2003 11:31 am
Posts: 6042
Small update / bugfix. Well, actually, it isn't a bug in WallX per se...

Turns out Windows Vista did things in its own way, but Windows 7 is not a stranger to that either.

On Windows 7, WallX sometimes does NOT update the background, even though the API's are correctly called, and proper values are returned. After some fooling around it seems Windows 7 only updates the background IF there is a real file and / or specific action. Valid events are theme changes etc.

So, for Windows XP and Vista the following works:

Code:
SystemParametersInfo_(#SPI_SETDESKWALLPAPER,0,@wall_filename,0)


But not for Windows 7, which might require saving a file, and telling Windows 7 to load that file on next bootup:

Code:
SystemParametersInfo_(#SPI_SETDESKWALLPAPER,0,@wall_filename,#SPIF_UPDATEINIFILE)
SystemParametersInfo_(#SPI_SETDESKWALLPAPER,0,@wall_filename,#SPIF_SENDWININICHANGE)


Just adding the command 'keep' to WallX's instructions executes the last two commands listed above, and then things work as expected.

Edit: in addition to the above Windows 7 sometimes gets confused when using themes that do not have a wallpaper. Still, the above works, unless you select a new theme without a wallpaper. It's different from Vista, but it's still somewhat weird...

'Keep' may also solve any issues on Windows Server 2008. I don't have a Server here to check. Feel free to report back if 'keep' works on Server 2008, or not...

In other words, if the following doesn't do anything:

Quote:
wallx mark "test"


Then try this:

Quote:
wallx mark "test" keep resident


Test with a reboot to make sure...

_________________
( PB5.xx Win10 x64 Asrock AB350 Pro4 Ryzen 1600X Evo 840 GTX1060 )
( The path to enlightenment and the PureBasic Survival Guide right here... )


Last edited by blueznl on Sat Mar 31, 2012 11:00 pm, edited 1 time in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: WallX v1.59x
PostPosted: Wed Mar 14, 2012 2:18 pm 
Offline
Enthusiast
Enthusiast

Joined: Tue Jul 26, 2005 12:02 pm
Posts: 205
Location: Lieusaint (77), France
It's OK now with this release on Windows Server 2008.

Thanks a lot ! :)

_________________
Purebasic 5.51 64 bits - Windows 7 Pro 64 bits SP1


Top
 Profile  
Reply with quote  
 Post subject: Re: WallX v1.59x
PostPosted: Sun Apr 01, 2012 7:54 pm 
Offline
Addict
Addict
User avatar

Joined: Thu Jun 07, 2007 3:25 pm
Posts: 3237
Location: Berlin, Germany
Hello blueznl,

I just downloaded "wallx.zip" from http://bluez.home.xs4all.nl/purebasic/purebasic%2029.htm#2_wallx_and_wallnutt.
It contains a folder named "source", but I can't find source code inside it.

Regards, Little John

_________________
Please excuse my flawed English. My native language is PureBasic.
Search
RSBasic's backups


Top
 Profile  
Reply with quote  
 Post subject: Re: WallX v1.59x
PostPosted: Mon Apr 02, 2012 9:09 am 
Offline
PureBasic Expert
PureBasic Expert
User avatar

Joined: Sat May 17, 2003 11:31 am
Posts: 6042
I've re-upped the file(s). If you want to compile it, you'll also need x_lib.pb, which is included with CodeCaddy, but WallX is that simple that you probably won't need it, or can easily replace the few procedures from that include file.

_________________
( PB5.xx Win10 x64 Asrock AB350 Pro4 Ryzen 1600X Evo 840 GTX1060 )
( The path to enlightenment and the PureBasic Survival Guide right here... )


Top
 Profile  
Reply with quote  
 Post subject: Re: WallX v1.59x
PostPosted: Tue Apr 03, 2012 3:34 pm 
Offline
Addict
Addict
User avatar

Joined: Thu Jun 07, 2007 3:25 pm
Posts: 3237
Location: Berlin, Germany
It's a good source of information for me, especially when I'm going to add e.g. support for multiple monitors to my program.
Thank you!

Regards, Little John

_________________
Please excuse my flawed English. My native language is PureBasic.
Search
RSBasic's backups


Top
 Profile  
Reply with quote  
 Post subject: Re: WallX v1.59x
PostPosted: Sun Jan 26, 2014 3:02 am 
Offline
PureBasic Expert
PureBasic Expert
User avatar

Joined: Sat May 17, 2003 11:31 am
Posts: 6042
And here we go... a new version of WallX... featuring (tada...) a GUI.

Update v1.70x

- gui
- lots of other internal stuff

Just launch it. Press the help button. Fool around. It's now bloody easy to use :-) although more tricky stuff requires the command line.

I would like to have some feedback on the current useability. It's primarily for my own use, but I'm using it as a testbed for something else.

Image

Download here (source included):

http://bluez.home.xs4all.nl/purebasic/p ... d_wallnutt

_________________
( PB5.xx Win10 x64 Asrock AB350 Pro4 Ryzen 1600X Evo 840 GTX1060 )
( The path to enlightenment and the PureBasic Survival Guide right here... )


Top
 Profile  
Reply with quote  
 Post subject: Re: WallX v1.73x
PostPosted: Sun Jan 26, 2014 2:52 pm 
Offline
PureBasic Expert
PureBasic Expert
User avatar

Joined: Sat May 17, 2003 11:31 am
Posts: 6042
Update v1.73x

- fixed shown preset
- fixed a bug with 'set'
- improved pad detection in generated commandlines
- improved shortcut naming

_________________
( PB5.xx Win10 x64 Asrock AB350 Pro4 Ryzen 1600X Evo 840 GTX1060 )
( The path to enlightenment and the PureBasic Survival Guide right here... )


Top
 Profile  
Reply with quote  
 Post subject: Re: WallX v1.80
PostPosted: Tue Nov 11, 2014 2:05 pm 
Offline
PureBasic Expert
PureBasic Expert
User avatar

Joined: Sat May 17, 2003 11:31 am
Posts: 6042
Update v1.80:

- bugfix: sometimes missed one or more adapter (changes), fixed

_________________
( PB5.xx Win10 x64 Asrock AB350 Pro4 Ryzen 1600X Evo 840 GTX1060 )
( The path to enlightenment and the PureBasic Survival Guide right here... )


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 32 posts ]  Go to page Previous  1, 2, 3  Next

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye