Advertisement
Guest User

Call Log Script

a guest
Jul 7th, 2015
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ; Call log script
  2. ; By x
  3. ; x
  4.  
  5. #SingleInstance force
  6. IfNotExist, Settings.txt
  7. FileAppend,
  8. (
  9. Settings file:
  10. Don't move the lines around
  11. If the line number changes the script won't work.
  12.  
  13. Hotkey (Default "^!l"):
  14. ^!l
  15.  
  16. Year format (Default "yyyy"):
  17. yyyy
  18.  
  19. Month format (Default MMMMM):
  20. MMMMM
  21.  
  22. File format (Deafault "dd.MM.yyyy"):
  23. dd.MM.yyyy
  24.  
  25. Help on how to customize:
  26. http://www.autohotkey.com/docs/Hotkeys.htm
  27. http://www.autohotkey.com/docs/commands/FormatTime.htm
  28.  
  29. ---------------------------------------------------------------------
  30. After changing the settings please restart the script to apply them.
  31. ---------------------------------------------------------------------
  32. Delete this file and run the script again for default configuration.
  33. ---------------------------------------------------------------------
  34. ), Settings.txt
  35.  
  36. FileReadLine, H, Settings.txt, 6
  37. FileReadLine, Y, Settings.txt, 9
  38. FileReadLine, M, Settings.txt, 12
  39. FileReadLine, F, Settings.txt, 15
  40.  
  41. Hotkey, %H%, Script, On
  42. Return
  43.  
  44. Script:
  45. FormatTime, Year,, %Y%
  46. FormatTime, Month,, %M%
  47. FormatTime, File,, %F%
  48.  
  49. IfNotExist, %Year%
  50.    FileCreateDir, %Year%
  51. IfNotExist, %Month%
  52.    FileCreateDir, %Year%\%Month%
  53. IfNotExist, %File%
  54.    FileAppend,, %Year%\%Month%\%File%.txt
  55. IfWinNotExist, %File%,,,
  56.     Run, Notepad %Year%\%Month%\%File%.txt
  57. return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement