My plan is to create an Autohotkey macro that saves the currently opened file in Notepad++ on my Desktop. I was able to make it open the "Save as" standard dialog box, but I don't know how I can make it go to the Desktop (Windows 7). I know the ClassNN of the combobox where you can select the folder, but when I send a 'D' for desktop keystroke it goes into one of my partitions rather than my Desktop.
A hack would be to send a click to the combobox that contains the main directories, then send 'up arrow' 50 times, then send a 'd', then {enter}, but this is not very elegant or stable I think.
Here is my current code:
#IfWinActive, ahk_class Notepad++
!F11::
Send ^s
WinWaitActive, Save As
;ControlSend, ComboBox1, {Up}{Up}{Up}{Up}{Up}{Up}{Up}{Up}{Up}{Up}{Up}{Up}{Up}{Up}{Up}{Up}{Up}{Up}{Up}{Up}{Up}{Up}{Up} d, Save As
ControlSend, Edit1, `%USERPROFILE`%\Desktop\%A_Hour% %A_Min% %A_Sec%, Save As
;ControlSend, Button2, {Space}, Save As
Return
#IfWinActive
The following is are sample realizations that are contaminated still with SHIFT at random times:
%USERPROFILE%|DEsktop\02 27 40
5USERPROFILE%\desktop\02 30 25
C:\Users\UserName\Desktop
as the default open/save directory for Notepad++.