Messages - skrommel [ switch to compact view ]

Pages: prev1 ... 5 6 7 8 9 [10] 11 12 13 14 15 ... 187next
46
:) Chime plays a sound file or tells the time on the hour and every x minutes.

Chime.jpg

Chime is portable, it saves it's settings to Chime.ini, just copy the file to the folder you put the script in on your other computers.

Download and install AutoHotkey to run the script.
Save the script as Chime.ahk and doubleclick to run.

17.07.2017: Added code to the Browse button. @stisev
18.07.2017: Added option to chime multiple times on the hour. @nogojoe
18.07.2017: The program checks for files 0.wav, 1. wav... 23.wav to be played on the hour. @mouser
21.07.2017: Added volume bar. @orbis. Removed a bug affecting playing individual hour files. @nogojoe
16.08.2017: Changed timing
21.10.2017: Added checkbox to ignore the volume

Skrommel

47
SortMoviesByGenre creates links to movies, placing them in folders of genre, based on parts of their filename. :)

SortMoviesByGenre.jpg

I'm not sure how standardized your foldernames are. I added an option to separate the title and genre from the rest of the folder name by a user defines text, but maybe separating by genre would be better? I could add all the IMDB genres to the file, and use that to split the folder names.

Download and install AutoHotkey to run the script.
Save the script to a text file called SortMoviesByGenre.ahk and double click to run.

Skrommel

Code: Autohotkey [Select]
  1. ;SortMoviesByGenre.ahk
  2. ; Create links to movies, placing them in folders of genre, based on parts of their filename
  3. ;Skrommel @2017
  4.  
  5.  
  6. IniRead,moviefolder,SortMoviesByGenre.ini,Settings,moviefolder
  7. IniRead,sortedfolder,SortMoviesByGenre.ini,Settings,sortedfolder
  8. IniRead,separator,SortMoviesByGenre.ini,Settings,separator
  9. If moviefolder=ERROR
  10.   moviefolder=C:\Movies
  11. If sortedfolder=ERROR
  12.   sortedfolder=C:\Sorted
  13. If separator=ERROR
  14.   separator=.DVD,.CAM,.XVID
  15.  
  16. Gui,Add,Text,xm,Folder with movies
  17. Gui,Add,Edit,xm w300 vmoviefolder,% moviefolder
  18. Gui,Add,Button,x+5 w50 GBROWSEMOVIE,&Browse
  19. Gui,Add,Text,xm,Folder to put links sorted by genre into
  20. Gui,Add,Edit,xm w300 vsortedfolder,% sortedfolder
  21. Gui,Add,Button,x+5 w50 GBROWSESORTED,B&rowse
  22. Gui,Add,Text,xm,Text separating title and genre from the rest of the name.`nUse , between separators
  23. Gui,Add,Edit,xm w300 vseparator,% separator
  24. Gui,Add,Button,xm w50 GSORT +Default,&Sort
  25. Gui,Add,StatusBar,,Skrommel @ 2017
  26. Gui,Show,,SortMoviesByGenre
  27. Return
  28.  
  29.  
  30. BROWSEMOVIE:
  31. {
  32.   FileSelectFolder,newmoviefolder,% "*" moviefolder,3,Select folder with movies
  33.   If ErrorLevel=1
  34.     Return
  35.   IfExist,% newmoviefolder
  36.     Break
  37.   MsgBox,% "The movie folder could not be found!"
  38. }
  39. GuiControl,,moviefolder,% newmoviefolder
  40. Return
  41.  
  42.  
  43. BROWSESORTED:
  44. {
  45.   FileSelectFolder,newsortedfolder,% "*" sortedfolder,3,Select folder with movies
  46.   If ErrorLevel=1
  47.     Return
  48.   IfExist,% newsortedfolder
  49.     Break
  50.   MsgBox,% "The sorted folder could not be found!"
  51. }
  52. GuiControl,,sortedfolder,% newsortedfolder
  53. Return
  54.  
  55.  
  56. Gui,Submit,NoHide
  57. IfNotExist,% moviefolder
  58. {
  59.   MsgBox,% "The movie folder could not be found!"
  60.   Return
  61. }
  62.  
  63. IniWrite,% moviefolder,SortMoviesByGenre.ini,Settings,moviefolder
  64. IniWrite,% sortedfolder,SortMoviesByGenre.ini,Settings,sortedfolder
  65. IniWrite,% separator,SortMoviesByGenre.ini,Settings,separator
  66.  
  67. SB_SetText("Sorting moivies into " sortedfolder "...")
  68. Loop,% moviefolder "\*.*",2,0
  69. {
  70.   first=999                                           ;Extract title and genre
  71.   Loop,Parse,separator,`,
  72.   {
  73.     If (pos>0 And pos<first)
  74.       first:=pos
  75.   }
  76.   StringLeft,titlegenre,A_LoopFileName,% first
  77.  
  78.   StringSplit,part_,titlegenre,`.                     ;Extract genre
  79.   genre:=part_%part_0%
  80.  
  81.   title=                                              ;Extract title
  82.   Loop,% part_0-1
  83.     title:=title part_%A_Index% " "
  84.   title=% title
  85.  
  86.   FileCreateDir,% sortedfolder "\" genre                ;Create link
  87.   FileCreateShortcut,% A_LoopFileLongPath,% sortedfolder "\" genre "\" title ".lnk"
  88. }
  89. SB_SetText("Finished sorting movies into " sortedfolder)
  90. Return
  91.  
  92.  

48
Skrommel's Software / Re: MoveOut: License? I want to extend it
« on: April 25, 2015, 03:16 PM »
Feel free, danielo515! :)

Skrommel

49
Happy anniversary, mouser! :)

I'm late to join this thread, and I must have been late joining DoncationCoder, too, 'cause no way it's been 10 years!  :tellme:

DonationCoder was my 40 year crisis, 8) together with buying a piano, and I must say it was a fun time, completing a Coding Snack just about every other night! I still have the DonationCredits, but I'll probably bankrupt DonationCoder if I withdraw them? :o

But three kids and a wife soon took their fair share of attention, :-* and now I run my little five man computer firm, selling computers, hosting servers, developing web pages and of course programming helpful tools for local businesses, so I still use AutoHotkey pretty much every day!  :Thmbsup:

In the evenings I run the town news web page, and dream of finding the time to complete my groundbreaking software project and retire at 50! :)

So thank you DonationCoder, for all the praise, and for giving my life direction!

I'll be back full time when that retirement is secured, mouser! :P

Skrommel

50
Try PDF Creator in combination with Coherent PDF!  :)

http://www.pdfforge.org/pdfcreator
http://community.coherentpdf.com

PDF Creator installs a printer. Anything printed to it creates a PDF file, and the process of saving, stamping and finally printing to a real printer can be automated! Use Coherent PDF to add text to every page.

To make it work I also had to use AutoHotkey, PDF Creator wouldn't send the proper variables to Coherent PDF.

http://www.autohotkey.com

Install all three tools, save the script below as Stamp.ahk and pont to it in PDF Creator's Actions - Run script. Also configure Auto-Save and Actions - Print Document and you'll be datestamping every page you print in no time!

;Stamp.ahk
; Adds timestamp to the the top of every page of a PDF file
;Skrommel @ 2014

RunWait,cpdf.exe -topleft 10 -font Courier -add-text "%A_Now%" "%1%" -o "%1%"

Pages: prev1 ... 5 6 7 8 9 [10] 11 12 13 14 15 ... 187next
Go to full version