Move A Directory To The Recycle Bin

A Delphi function that will move a directory to the recycle bin.

Using RecycleDir:

Parameters:

Dir: A string value specifying the name of the directory to be moved to the recycle bin.

Return Value:

The function will return the Boolean value True if successful.

If the function fails, it will return the Boolean value False.

Example:

 

Move A File To The Recycle Bin

A Delphi function that will move the specified file to the recycle bin.

Using RecycleFile

Parameters:

FileName: A String value specifying the name of the file to be moved to the recycle bin.

Return Value:

The function will return the Boolean value True if successful.

If the function fails, it will return the Boolean value False.

Example:

Is Key Pressed

A Delphi function to determine if a key on the keyboard is being held down by the user.

Using IsKeyDown:

Parameters:

VK: The virtual key code of the key you want to check.

Return Value:

Returns True if the key specified is pressed, False if the key in not pressed.

Example: