arizonapolew.blogg.se

Autohotkey app
Autohotkey app







autohotkey app

We append the Note variable's content to the FinalFileName file.We preemptively delete any previous file with the same path & filename.That's why we defined them at the beginning of the script. To get the full path and filename of the target file, we "sandwich" the newly-assembled FileName variable between the NotesPath and the FileNameExtra variables.We then return its original content to the clipboard from the TempClipboard variable.The sanitization function will return the "clean" title to the clipboard, from where we map it to the FileName variable.This function will "sanitize" the text, removing non-alphanumeric characters and allowing us to use the title's text as a filename. We do the above because we want to copy the note's title to the clipboard, used as an intermediary for sending it to a function we'll add next.We then temporarily copy the clipboard's actual contents to the TempClipboard variable."Gui, GN:Submit" grabs the status of every GUI element, meaning it also "grabs" anything typed in the two text fields.The "FileEncoding" line sets the created text file's encoding."QNButtonOK:" states that what comes after is what AutoHotkey "should do" when the default OK button of the GUI is clicked.However, the app itself will be useless because we haven't yet added support for saving anything.įix that by adding the following to your script: QNButtonOK:įinalFilename = %NotesPath%\%FileName%%FileNameExtra% As you will see, the main note's area will be pre-populated with the clipboard's contents.









Autohotkey app