GithubHelp home page GithubHelp logo

darxmorph / deletewallpaper Goto Github PK

View Code? Open in Web Editor NEW
11.0 2.0 0.0 51 KB

Ever downloaded a wallpaper pack and found some wallpapers you don't like? Well, now it's easy to get rid of 'em! Just right-click your desktop, and click 'Delete current desktop wallpaper'

C# 73.92% Visual Basic 26.08%

deletewallpaper's Introduction

DeleteWallpaper

Allows you to easily delete/trash/move your current wallpaper image

Features

  • Hackable: Easy to customize
  • Light: Occupies just a few KB
  • Easy to use: Both install and use are easy

Install

You can get the latest binary from Releases

If you're running Windows 7, you might also need the .NET Framework 4.5

In Windows 8 / 8.1 / 10 it should be preinstalled

Use

To delete your current wallpaper, right-click your desktop and click Delete current desktop wallpaper

By default, it will move the file to the Recycle Bin. See below how to change the program's behaviour.

Uninstall

You can uninstall it from Control Panel -> Uninstall a program -> DeleteWallpaper -> Click Uninstall

Customize

The program folder

The program is located in %appdata%\DeleteWallpaper

To access it, just open an Explorer window and type in the path: %appdata%\DeleteWallpaper

delwp.vbs

This will just launch win7.vbs if OS is Windows 7 or win8.vbs if OS is Windows 8 / 8.1 / 10

You shouldn't need to edit this

win7.vbs

This will get the current wallpaper path on Windows 7 and call hackme.vbs with the wallpaper path

You shouldn't need to edit this

win8.vbs

This will get the current wallpaper path on Windows 8 / 8.1 / 10 and call hackme.vbs with the wallpaper path

You shouldn't need to edit this

hackme.vbs

This file basically calls TrashFile.exe (who performs delete/trash/move) with the needed arguments

Things you might need to edit:

Const action = 1

Specify the action to perform on file. Valid options are:

  • 0 = DeleteShell [EXPERIMENTAL/NOT RECOMMENDED]: Delete file using Win32 shell. Will trash or remove depending on your Windows settings (right click Recycle Bin, properties to find out)
  • 1 = Trash: Will send file to Recycle bin using VB/.NET's FileSystem.DeleteFile()
  • 2 = DeleteIO: Will PERMANENTLY erase file using C#/.NET's File.Delete()
  • 3 = Move: Will move file to the path specified by whereToMove. Path must exist.
whereToMove = "C:\Users\yourusername\Desktop\deletedwallpapers"

If you used action = 3, specify here the folder where to move.

IMPORTANT: Folder must exist

Const tryNextWallpaper = True

Valid options: True/False

Specify if you want to skip to next wallpaper (calls nextwp.vbs)

If you're using a non-English system, you'll have to edit nextwp.vbs (see below)

nextwp.vbs

Uses SendKeys to simulate user action (Next desktop background)

You might want to edit it on non-English Windows systems

To find out what key you need to use for your Windows Language:

On your desktop, do Shift + F10

The letter you need to put will be underlined on the line which says "Next desktop background" (in your language)

About the VS projects

All the VS projects are written in C# and target .NET Framework 4.5

DeleteWallpaperInstaller

Code for the Installer

DeleteWallpaperUninstaller

Code for the Uninstaller

TrashFile

Little program that is able to delete/trash/move files based on arguments given

It also handles symlinks

Default behavior with symlinks: Delete symlink and perform action on real file

Just for the curious, I'll leave the syntax:

TrashFile.exe (action) (filePath) (whereToMove)

action: use the same as in hackme.vbs

filePath: Path of the file to delete/trash/move

whereToMove is used only with move (Destination directory, must exist)

Paths with spaces: Remember to put quotation marks, just like usual ("")

deletewallpaper's People

Contributors

darxmorph avatar

Stargazers

EzzAk avatar  avatar  avatar  avatar Alexander avatar  avatar thenonhacker avatar Eyad hisham avatar Ariel avatar  avatar  avatar

Watchers

Ariel avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.