Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ; Call log script
- ; By x
- ; x
- #SingleInstance force
- IfNotExist, Settings.txt
- FileAppend,
- (
- Settings file:
- Don't move the lines around
- If the line number changes the script won't work.
- Hotkey (Default "^!l"):
- ^!l
- Year format (Default "yyyy"):
- yyyy
- Month format (Default MMMMM):
- MMMMM
- File format (Deafault "dd.MM.yyyy"):
- dd.MM.yyyy
- Help on how to customize:
- http://www.autohotkey.com/docs/Hotkeys.htm
- http://www.autohotkey.com/docs/commands/FormatTime.htm
- ---------------------------------------------------------------------
- After changing the settings please restart the script to apply them.
- ---------------------------------------------------------------------
- Delete this file and run the script again for default configuration.
- ---------------------------------------------------------------------
- ), Settings.txt
- FileReadLine, H, Settings.txt, 6
- FileReadLine, Y, Settings.txt, 9
- FileReadLine, M, Settings.txt, 12
- FileReadLine, F, Settings.txt, 15
- Hotkey, %H%, Script, On
- Return
- Script:
- FormatTime, Year,, %Y%
- FormatTime, Month,, %M%
- FormatTime, File,, %F%
- IfNotExist, %Year%
- FileCreateDir, %Year%
- IfNotExist, %Month%
- FileCreateDir, %Year%\%Month%
- IfNotExist, %File%
- FileAppend,, %Year%\%Month%\%File%.txt
- IfWinNotExist, %File%,,,
- Run, Notepad %Year%\%Month%\%File%.txt
- return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement