[Goodie] AutoHotKey Script to Execute Code Within a Note
Posted: Fri Mar 20, 2009 9:53 pm
AutoHotKey Script to Execute Embeded Code Within a Note
The general idea behind this AutoHotKey script is to be able to execute an embedded AutoHotKey script which is contained with in a note. This allows me to create website/application login scripts.
Currently the script only supports a single embedded script within a note.
Vista users will need to run the script with admin permissions.
The hotkey for the script is Ctrl-Alt-L
The script parses the clipboard contents looking for the below code wrapper, strips out the script code and executes it.
(Can be on a single line)
AutoHotKey::<<
AutoHotKey Script Code...
>>
The steps I use for a website are the following:
I also have included a couple of example hotkeys for creating note templates for logins. You could also modify the script to include the 2 and 3 steps as part of the process. For myself, I wanted something a little more generic.
Along with the script file I've included a sample batch file for launching the script.
Long Live CintaNotes!
Example Note Text
The general idea behind this AutoHotKey script is to be able to execute an embedded AutoHotKey script which is contained with in a note. This allows me to create website/application login scripts.
Currently the script only supports a single embedded script within a note.
Vista users will need to run the script with admin permissions.
The hotkey for the script is Ctrl-Alt-L
The script parses the clipboard contents looking for the below code wrapper, strips out the script code and executes it.
(Can be on a single line)
AutoHotKey::<<
AutoHotKey Script Code...
>>
The steps I use for a website are the following:
- Search for website note
- Press Ctrl-C to copy note contents to the clipboard
- Press F3 to launch browser with website URL
- After website has loaded, place the cursor at the appropriate login field (if necessary) and press Ctrl-Alt-L
I also have included a couple of example hotkeys for creating note templates for logins. You could also modify the script to include the 2 and 3 steps as part of the process. For myself, I wanted something a little more generic.
Along with the script file I've included a sample batch file for launching the script.
Long Live CintaNotes!
Example Note Text
Code: Select all
This is an example website logon script
AutoHotKey::<<
SendInput {Esc}Username{Tab}pa$$word{Enter}
Sleep 5000
SendInput {Tab 10}Some secret question answer{Enter}
>>