Showing posts with label Autohotkey. Show all posts
Showing posts with label Autohotkey. Show all posts

Sunday, January 15, 2012

Losing data due to Shift+Delete?

Many people have the habit of using 'shift + del' very often (atleast I do). So, I wanted to figure out a way so as to prevent shift + del happening in the background. Autohotkey came again to rescue me.
Here are the steps.

1) Install latest version of Autohotkey
2) Create a new text file somewhere in your Desktop.
3) Rename it to my_script.ahk
4) Open the file using any text editor and paste the below content into it.

+Del::Send {Delete}

In the above '+' denotes shift. So, what the script means to autohotkey is that, whenever user presses shift + del, send just del to the process and not shift + del.

5) Make a shortcut to the above created file.
6) Copy that shortcut to your startup folder.

When the system is restarted, you can enjoy using shift + del, and still see the files in Recycle bin.

Disclaimer: Please note that moving files frequently to recycle bin and not cleaning it up often can make the bin full and you lose your deleted data, as windows may not push data to recycle bin and delete it directly.

Always on top option in windows

Everyone would have been quite accustomed to the "Always on top" option in GNU/Linux. In windows, there are no out-of-the box ways to do it. However, you can easily achieve that in a few steps.
1) Install latest version of Autohotkey
2) Create a new text file somewhere in your Desktop.
3) Rename it to my_script.ahk
4) Open the file using any text editor and paste the below content into it.

^space::WinSet AlwaysOnTop, , A


5) Make a shortcut to the above created file.
6) Copy that shortcut to your startup folder.

Once you restart your system, you can use the shortcut 'ctrl + space' to make the current window 'Always on top'. I found it very useful when you are using calculators and command prompt. You can stop annoying now, because you don't need to use 'alt + tab' that often.

Page Counter