Use CTRL+WIN+h to hide a window and CTRL+WIN+s to show one of them if the password is correct. When you start the program, a master pwd must be specified. When you want to show a window, if you specify the correct pwd, it's shown a menu with all hidden window. Select the one you want to show.
Thanks Lazslo for the suggestions
Naturally this is a beta version. Use it at your own risk.
;Author: Salvatore Agostino Romeo ;exit app by killing app #NoTrayIcon pwd= Menu,kiu,add InputBox, pwd, Insert a pwd, Insert the master password`n to show hidden windows, HIDE num:=1 SetTimer,hidewins,500 return ;hide all "encrypted windows" hidewins: Loop,%num% { wth_temp:=win%A_Index% WinHide, ahk_id %wth_temp% } return ;select window to hide ^#h:: winToHide= MouseGetPos, , , winToHide ;if the user press cancel win%num%=%winToHide% num:=num+1 return ;unhide a window if the user specify the right password ^#s:: Menu,kiu,DeleteAll InputBox, new_pwd, Insert a pwd, Insert the password to unhide a window, HIDE if (new_pwd=pwd) { Loop,%num% { wth_temp:=win%A_Index% DetectHiddenWindows, On WinGetTitle, title , ahk_id %wth_temp% DetectHiddenWindows, Off Menu,kiu,add,%title%,showWin } Menu,kiu,show } return showWin: SetTimer,hidewins,off wth_temp:=win%A_ThisMenuItemPos% WinShow,ahk_id %wth_temp% win%A_ThisMenuItemPos%= Loop,% num - A_ThisMenuItemPos { before:=A_ThisMenuItemPos + A_Index - 1 after:=A_ThisMenuItemPos + A_Index win%before%:=win%after% } num:=num-1 SetTimer,hidewins,500 return