It is currently March 29th, 2024, 8:08 am

Remove update / Point to directory

Get help with creating, editing & fixing problems with skins
firewater
Posts: 10
Joined: November 25th, 2013, 2:43 am

Re: Remove update / Point to directory

Post by firewater »

Aaaah, alright. I was just wondering in case it would be a quick fix. Thanks again for the help earlier!
User avatar
jsmorley
Developer
Posts: 22628
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Remove update / Point to directory

Post by jsmorley »

Sure thing.
User avatar
QwopJoans
Posts: 115
Joined: February 6th, 2016, 11:06 pm

Re: Remove update / Point to directory

Post by QwopJoans »

Can I jump in and say that Brian wrote a nifty hotkey plugin found here and that you can use cmd.exe to delete a specified file using the del /q <FileName> command?

So you could write a measure like this to delete the given file:

Code: Select all

[DeleteWallpaper]
Measure=Plugin
Plugin=HotKey
HotKey=LALT D LBUTTON
KeyUpAction=["cmd.exe" /c del /q "%USERPROFILE%\Documents\Visual\Wallpaper\#CurrentWallpaperName#.png"]
And then tacking on some code for the new wallpaper and a refresh.
firewater
Posts: 10
Joined: November 25th, 2013, 2:43 am

Re: Remove update / Point to directory

Post by firewater »

Oh my god man. I come here (after a year, this is kind of a tradition now) to check if I'm able to do this now and I try your method, but it doesn't work so I switch some parameters, among them "#CurrentWallpaperName#" to "*#Name#*" and it deleted ALL my wallpapers... thanks f---ing god I got most of them back with a program. And yes it's my fault, but what a scare that was.

Sooo, what would be the correct term?

Code: Select all

[DeleteWallpaper]
Measure=Plugin
Plugin=HotKey
HotKey=LALT
KeyUpAction=["cmd.exe" /c del /q "C:\Wallpapers\#CurrentWallpaperName#.png" "C:\Wallpapers\#CurrentWallpaperName#.jpeg" "C:\Wallpapers\#CurrentWallpaperName#.jpg"] [!Refresh]
It's not getting deleted with this.
firewater
Posts: 10
Joined: November 25th, 2013, 2:43 am

Re: Remove update / Point to directory

Post by firewater »

Me again. I don't mind what I asked last time now, but I would like to know if it's possible for it to remember the image used as a wallpaper rather than loading a random one every time Rainmeter is launched (so every time I restart my computer).