Show / Hide hidden items in File Explorer with a single shortcut Key

There is, unfortunately, no shortcut key available to toggle between showing and hiding files or folder in the File Explorer. Hence this AutoHotKey script. You can toggle the view in File Explorer to show or hide with the just a Win+h shortcut key.

This script is not that fancy, it just toggles between two different values of the specific registry key and will send F5 keystroke to refresh the view in File Explorer.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
SetTitleMatchMode, 2
#IfWinActive ahk_class CabinetWClass
#h::
  RegRead, HiddenRegValue, HKEY_CURRENT_USER, Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced, Hidden

  if HiddenRegValue = 2 
    RegWrite, REG_DWORD, HKEY_CURRENT_USER, Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced, Hidden, 1
  Else
    RegWrite, REG_DWORD, HKEY_CURRENT_USER, Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced, Hidden, 2

  WinGetClass, CabinetWClass
  Send {F5}
  return
#If

If you don’t prefer the above script, you can still toggle hidden items with the combination of multiple keystrokes in File Explorer. The key combination is Alt+v hh.

Paste rich text as clean text

This little AutoHotKey snippet will make copying rich text and pasting as clean text a bit less hassle:

1
2
3
4
5
^+v::
  clipboard := ClipboardAll ;Copy clipboard contents to a variable
  Clipboard = %clipboard% ;Save content of the variable back to the clipboard
  Send ^v ;Send Ctrl+V command
  return

The assigned shortcut key is Ctrl+Shift+V, which you can change per your preference. Copy any rich text from a web site, open word document or new email in Outlook and press Ctrl+Shift+V. AutoHotKey snippet will remove all style formattings and will paste just the clean text.

Use unique and unlimited number of email addresses for Gmail

Gmail has a great feature which allows you to create an unlimited number of email addresses based on your actual Gmail address. You can append plus sign (+) and any word after that, and that email address will still come to your Gmail mailbox. If your email address is johndoe@gmail for example, you will still receive the email if someone sends an email to johndoe+test@gmail, or johndoe+tech@gmail, or johndoe+games@gmail, etc. You can leverage this feature by creating a unique email address like johndoe+apple@gmail, or johndoe+cnn@gmail, etc. for each website you registered.

These individual pseudo email addresses will help you to identify the original registration website if they sold your email address to a third party or unknown service and you start receiving spam or junk emails from those services. Using these pseudo email address for all of your web registrations and subscriptions, you can easily configure your Mailbox filters to manage or block incoming emails.

Coming up with a random string and creating a unique email address every time is a bit hassle, so I created a AutoHotKey script which will automate the process a bit.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
^+e::
  email := "johndoe"
  string := "abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxyz"
  suffix := ""
  loop, 10
  {
    Random, Var, 1, 98
    char = % SubStr(string, Var, 1)
    suffix = %suffix%%char%
  }
  SendInput %email%{+}%suffix%@gmail.com
  return

Please change the value of email (Line: 2) in the script from “johndoe” to your email. If you email address is firstlast@gmail.com, change the value of the email (Line: 2) to “firstlast”.

With the above script running in AutoHotKey, press Ctrl+Shift+E whenever you need a unique address on email field while registering to a website and script will generate that unique email address for the site and place it in the email field of the registration form.

Here are few generated email address examples by the script:

johndoe+lzkcrpg8oo@gmail.com
johndoe+1h0xdiix83@gmail.com
johndoe+jnnvur5nn7@gmail.com
johndoe+rtsphp0mq7@gmail.com
johndoe+sfbfoq2d85@gmail.com
johndoe+4m4cnrpom0@gmail.com
johndoe+uhxee82ozo@gmail.com

For every registration or subscription to the web site, you should receive some form of confirmation email which will help you to identify the original registration website. Received a spam email which uses your unique email address? Search for that email address in your mailbox, and you will know who’s the culprit.

This hack should also work for other email service providers like Outlook etc. Change the AutoHotKey script accordingly.