topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Thursday April 25, 2024, 1:42 am
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - DyNama [ switch to compact view ]

Pages: prev1 [2] 3next
26
Finished Programs / Re: DONE: Sync folders by renaming files
« on: June 06, 2013, 03:55 AM »
OMG, this program keeps getting better! i never thot to ask for logging and undo files! works great! now there's less fear that i enter the source and destination folders backwards accidently.

27
Finished Programs / Re: DONE: Sync folders by renaming files
« on: June 05, 2013, 12:57 PM »
i thot maybe the space in the path C:\My Stuff\RenSS\RenSSDTv7.cmd was bothering the log file so i replaced every instance of
%~dp0%RenSSDT.log
with
"%~dp0%RenSSDT.log"
and voilà! it created the log file and logs every rename! but if
choice /c ny /m "View logfile"
is supposed to ask me if i want to view the log, it still doesn't. it echos a "goto" in the CMD window and then closes.

28
Finished Programs / Re: DONE: Sync folders by renaming files
« on: June 05, 2013, 12:13 PM »
so is it actually checking all 3 criteria, size, date, and checksum?

No - you said it wasn't finding any matches when it used the checksums, so that's not in this version.  It's just size, date and time.

Besides unless I can find a way to get it to work with Delayed Expansion enabled and ! in filenames I can't use the MD5 routine since it relies on Delayed Expansion.

That's okay, that explains how it is so fast!

V7 Added log file and option to display at end, (written to same folder as batch file), it just keeps getting bigger until you delete it

i love logs! unfortunately my 2 runs of RenSSDTv7 did not make a log. i searched everywhere! the path to the batch file is C:\My Stuff\RenSS\RenSSDTv7.cmd―i put "home-made" stuff in it's own folder cuz Win7 doesn't always let me write to Program Files (x86).

29
Finished Programs / Re: DONE: Sync folders by renaming files
« on: June 04, 2013, 07:57 PM »
done, mouser, from my meager resources.

4wd, wonderful!

so is it actually checking all 3 criteria, size, date, and checksum?

one more request. when RenSS finishes, could it loop back and ask for another extension using the same 2 folders, and only exit when i hit {enter}?

30
Finished Programs / Re: DONE: Sync folders by renaming files
« on: June 03, 2013, 12:30 PM »
just a few minor changes. i can do Echos! is there any way it can announce how many files were checksummed and how many were renamed?

yep, mouser, it's all good!

Code: Text [Select]
  1. @if (@CodeSection == @Batch) @then
  2.  
  3.     @echo off
  4.     setlocal EnableExtensions
  5.     setlocal DisableDelayedExpansion
  6.    
  7.     echo Choose Source Folder
  8.     for /F "delims=" %%S in ('CScript //nologo //E:JScript "%~F0"') do (
  9.         if %%S=="" exit
  10.         set srce=%%S
  11.     )
  12.     echo _
  13.     echo Source folder: "%srce%"
  14.     echo Choose Destination Folder
  15.     for /F "delims=" %%D in ('CScript //nologo //E:JScript "%~F0"') do (
  16.         if %%D=="" exit
  17.        set dest=%%D
  18.     )
  19.     echo Destination folder: "%dest%"
  20.     set /P ext=Please enter extension [eg. jpg]:
  21.     if %ext%=="" exit
  22.    
  23.     for /r "%dest%" %%a in (*.%ext%) do (call :CheckSize "%srce%" %%~za "%%~fa")
  24. :End
  25.     set srce=
  26.     set dest=
  27.     set ext=
  28.     pause
  29.     exit
  30.  
  31.     :CheckSize
  32.     for /r %1 %%b in (*.%ext%) do (if %2 equ %%~zb call :CheckDate "%~3" "%%~b")
  33.     goto :EOF
  34.  
  35.     :CheckDate
  36.     if "%~t1" equ "%~t2" (
  37.         pushd "%~dp1"
  38.         ren "%~nx1" "%~nx2"
  39.     )
  40.     popd
  41.     goto :EOF
  42.    
  43.     endlocal
  44.  
  45.     End of Batch section
  46. @end
  47.  
  48.  
  49. // JScript section
  50.  
  51. // Creates a dialog box that enables the user to select a folder and display it.
  52. var title = "Select a folder", rootFolder = 0x11;
  53. var shl = new ActiveXObject("Shell.Application");
  54. var folder = shl.BrowseForFolder(0, title, 0, rootFolder);
  55. WScript.Stdout.WriteLine(folder ? folder.self.path : "");

31
Finished Programs / Re: DONE: Sync folders by renaming files
« on: June 03, 2013, 11:10 AM »
That'll do, 4wd! terrific!

i did switch %dest% and %srce% in the for loop
    for /r "%dest%" %%a in (*.%ext%) do (call :CheckSize "%srce%" %%~za "%%~fa")
cuz it is indeed backwards from v3 which i was just using 7 hours ago! no, i was in fact using the real files this time, but i was trying it on an extension that doesn't have that many renames. being backwards means it un-renamed 2 files! i retrieved their old filenames from a catalog, no problem.

i also put in prompts when choosing the folders:
    echo Choose Source Folder
so i don't lose track of what i'm doing. would it be presumptuous of me to post here the whole file of my minor changes?

the neat thing about this program is that if i choose the wrong folder or type the wrong extension, it won't find any matches so it'll do nothing. another good thing is a folder that got partially backed up to 2 different destination just renames the files that are there and doesn't copy the missing files, something every sync program wants to do. after i run the program, i use Vice Versa Free, a file comparing program, to verify it got all the files renamed.

Thanx!


32
Finished Programs / Re: DONE: Sync folders by renaming files
« on: June 03, 2013, 03:14 AM »
i tried RenSSv1 (filesize only) on 2 folders with 16 ~320meg videos each and it worked just fine once i changed the file to ".avi", then ".wmv", then ".mp4". there's a way to pass the extension to the batch file too, isn't there?

then i tried RenSSv3 on a folder with 110 videos = 29.6gigs, and it's backup, of which only about a dozen files actually needed renaming. 22 .mp4s = 8gigs took about 15 minutes. 75 .wmvs = 16.8gigs took about 25minutes. does the program detect whether the file needs renaming? i much prefer selecting folders from a list rather than typing at a command prompt―thanx!

some files that should have been did not get renamed. also i get a DOS error message: The system cannot find the file specified. on one run i got it 9 times before it was done. most if not all of the new file names had punctuation marks in them, especially exclamation points, for example [email protected]. is there anything in the process that would balk at that?

Thanx for the help!

33
Finished Programs / Re: DONE: Sync folders by renaming files
« on: June 03, 2013, 02:35 AM »
The first batch file really does work! it is very clever! i couldn't have written it. a little low tech tho. perhaps i lied about the "whatever is easier".  :D

I'm an old DOS man, but i eventually forgot most of the DOS i knew when i reluctantly converted to Windows in 1995. i don't actually know how to set my path any more, so i put fciv in the same folder RenSSv3 is in. i neglected to say i'm running this on a win7 x64 Dell laptop with several external hard drives.

It's good to have a checksum option, but i just checked a couple hundred .jpgs and videos and couldn't find a single pair of files that were exactly the same size, even pix taken within seconds of each other. i do have lots of videos too, and i'm afraid checksums would take a long time. before i asked this question, i tried a few sync programs and dupe finders; FreeFileSync when given 2 dozen videos on each side to examine estimated it would take 2 hours. can it check the date and time instead of checksum?
 

34
Finished Programs / DONE: Sync folders by renaming files
« on: June 01, 2013, 04:10 PM »
Hi, gang,
When i download photos and videos from my camera, i move them off the sd card, and then immediately back them up to an external hard drive. eventually i rename the original photos with notes about the contents. the problem i'd like to solve is that the backup copies did not get the new name. i don't want to recopy them, that could take too long, i just want to match the files by size, date & time, and extention, none of which will change (i don't think i need checksum comparison), and put the new name on them.

[attachimg=#1][/attachimg]

I can actually match them manually by just sorting by size, which i've done in the file browser in the photo above. (isn't it amazing that no two photos or videos are exactly the same size!) now all i need is to copy each filename to the clipboard 1-at-a-time in the right panel, then apply the new name to the matching file in the left panel. but with dozens if not hundreds of files, that's a lot of work. i'd like an easier way to do that, please.

My thinking is a duplicate finder that offers to apply 1 filename to the other (in addition to deleting one, which i won't use, but that's what dupe finders usually offer to do), a file-syncing program that recognizes duplicate files, a program that shows the files that match together with a rename button or a checkbox and a Rename Selected button, a program that pops up a window for each match and offers to rename the right file to match the left or vice versa, a dual-pane explorer just like the above pic where i highlight the 2 files and press a button, whatever is easier.


35
Post New Requests Here / Re: IDEA: Very simple timeclock utility
« on: March 04, 2013, 03:00 AM »
here's another change. when you Add Comments To Log, the buttons don't line up unless you sent button 5 back to the left―change "xp+5" to "xp-450". here's the whole Comment subroutine:


Code: Autohotkey [Select]
  1. Comment:                ;;; ;Comment Gui triggered from tray menu
  2.   SetTimer, logchanges, OFF
  3.   Gui, 7:-SysMenu +AlwaysOnTop
  4.   Gui, 7:add, Text,,Add a Comment to the Log
  5.   Gui, 7:add, edit, w600 vcmnts,
  6.   Gui, 7:Add, GroupBox, w600 h60,Quick Text Buttons
  7.   Gui, 7:add, Button,xp+5 yp+25 w140 gCustComment1 , %Custom1%
  8.   Gui, 7:add, Button,x+10        w140 gCustComment2 , %Custom2%
  9.   Gui, 7:add, Button,x+10        w140 gCustComment3 , %Custom3%
  10.   Gui, 7:add, Button,x+10        w140 gCustComment4 , %Custom4%
  11.   Gui, 7:add, Button,xp-450 yp+25 w140 gCustComment5 , %Custom5%
  12.   Gui, 7:add, Button,x+10        w140 gCustComment6 , %Custom6%
  13.   Gui, 7:add, Button,x+10        w140 gCustComment7 , %Custom7%
  14.   Gui, 7:add, Button,x+10        w140 gCustComment8 , %Custom8%
  15.   Gui, 7:Font,Bold
  16.   Gui, 7:add, Button,xs w600 gsavecomment Default, &Save comments
  17.   Gui, 7:show,,Add a Comment
  18. Return ;;


also, somehow a LF/CR got deleted in line 321. without this, comments aren't written to the log.
Return  ;;savecomment:             ;;; ;save comment

should be
Code: Autohotkey [Select]
  1. Return  ;;
  2. savecomment:            ;;; ;save comment

36
Post New Requests Here / Re: IDEA: Very simple timeclock utility
« on: March 01, 2013, 08:00 PM »
i find i missed a Return in adding the other 4 buttons. it goes after line 254.

Code: Autohotkey [Select]
  1. Cust4:
  2.  Gui, 6:Submit, NoHide
  3.   GuiControl,,SDedit,%SDedit% %custom4%
  4. Return
  5. Cust5:                  ;;; ;Custom message control for idle alarm

37
Post New Requests Here / Re: IDEA: Very simple timeclock utility
« on: February 20, 2013, 05:04 PM »
I went ahead and added the other 4 buttons to the Idle box:
[attachtimg=1]

so here's my version of TitleLog with all the typos fixed: [attachurl=#2][/attachurl]

38
Post New Requests Here / Re: IDEA: Very simple timeclock utility
« on: February 20, 2013, 04:35 PM »
Here's 2 problems that need fixing. here's a sample Detail View as it first comes up:
[attachtimg=1]
if i change the start date, tho, the Detail View does NOT include all entries between the 2 dates but rather just the entries of the first date:
[attachtimg=5]
if i change the end date too, the Detail View includes all entries from the start date to now, ignoring the end date:
[attachtimg=2]

if i click the Summary View button, i get a nice summarry of all the apps used with the total time in each:
[attachtimg=3]
but if i change the start date, i get a realistic apps list, but all the times are zero:
[attachtimg=4]

the simplest change i would like to see is the time column of the Detail View with 12-hour time with am/pm. i find it distracting that the time is a 4-digit number without punctuation but elapsed time is written with colons.

39
Post New Requests Here / Re: IDEA: Very simple timeclock utility
« on: February 13, 2013, 12:11 AM »
I'm still interested in this program. i have it running all the time but know that it's not perfect. and even tho i wrote a macro in AHK today, i don't really program either―it took a half hour to get syntax of 1 function right! so i too would love it if someone took over this program.

40
N.A.N.Y. 2012 / Re: NANY 2012 - Pledge & Final Release: Stick A Note
« on: December 30, 2012, 02:51 AM »
Anand,
How could SAN match a wrong note to the window title is what i'm curious about. Restarting the program does not fix that, and SAN is fairly consistent in that it usually picks the same wrong note to display on a particular window.

Of course tend to your wife and job. There's no program like StickANote so i'm sure i'll still be using it, workarounds and all.

Have a Happy New Year!

41
N.A.N.Y. 2012 / Re: NANY 2012 - Pledge & Final Release: Stick A Note
« on: December 29, 2012, 02:38 PM »
Hi, Anandcoral,
as i said, i love this program, but the sad fact is, it goofs up a lot on my win7 x64 laptop. here's screenshots of SAN showing the wrong note:
SAN_error 5.jpg
SAN_error 7.jpg
These are windows that do have a note, SAN is just showing the wrong one. Sometimes i want to edit the existing note but the wrong note comes up in the SAN editor. i had to move the SAN…txt file of the wrong note out of the StickANote folder―in fact i moved all of them except the ones i wanted to edit. Then i moved them back and restarted SAN, but that did not stop it from showing wrong notes.

here's a screenshot of SAN showing a note that doesn't even belong―this note transfers to every window that has focus, even the "Show hidden icons" window in the tray!
SAN_error 1.jpg
End-tasking SAN and restarting does stop this behavior.

I'll find workarounds if i must, but i sure would like fixes. perhaps a way to unload or refresh the SAN database in memory?

42
anandcoral, i love this program! my image viewer vueprint puts the name of the image in the title bar, so with stick-a-note keying on the title bar, i can put individual notes on different pictures! i already have 407 notes. will SAN be able to handle 1,000 notes? 10,000 notes?

SAN does goof up every so often on my win7 x64 laptop and suddenly start showing the wrong note on every window that gets focus--it even shows the note on the pop-up window when i click on the tray hidden-icon button! but i just end task and restart the program.

43
General Software Discussion / Re: scroll down to next picture
« on: April 03, 2012, 02:51 AM »
if i wanted to rip the pictures, the download manager i use, DownThemAll, will do that, plus i have Bulk Image Downloader registered shareware. no, all i want is more control over scrolling on a webpage. thanx gang!

do any of you even think something like that, pressing a button or a key to jump to the next photo, is even possible? or a button that pops up a menu of jump links to each picture on the page, like a table of contents (not links to where the picture is stored)? i would rather type "n" or pick "next" on a menu than scroll independent of the pictures. javascript to extract all the "img src" in the html or something?

44
Post New Requests Here / Re: IDEA: Very simple timeclock utility
« on: March 30, 2012, 07:08 PM »
here is another set of typographic errors:
 If (Custom1<>"Undefined" and Custom1<>"")                                       ;if underfined or empty, dont show in Tray Menu
      Menu, tray, add, %Custom1%, M1
  If (Custom2<>"Undefined" and Custom2<>"")
      Menu, tray, add, %Custom2%, M2
  If (Custom3<>"Undefined" and Custom3<>"")
      Menu, tray, add, %Custom3%, M3
  If (Custom4<>"Undefined" and Custom4<>"")
      Menu, tray, add, %Custom4%, M4
  If (Custom5<>"Undefined" and Custom5<>"")
      Menu, tray, add, %Custom5%, M5
  If (Custom6<>"Undefined" and Custom6<>"")
      Menu, tray, add, %Custom6%, M6
  If (Custom7<>"Undefined" and Custom7<>"")
      Menu, tray, add, %Custom5%, M7
  If (Custom8<>"Undefined" and Custom8<>"")
      Menu, tray, add, %Custom6%, M8
Brett forgot to change the last 2 to %Custom7% and %Custom8%.

Save:                    ;;; ;save and submit to ini from PrefsGui GUI:2
  Gui, 2:Submit
  IniWrite, %Custom1%, %A_Scriptdir%\TitleLog Prefs.ini, Custom, 1
  IniWrite, %Custom2%, %A_Scriptdir%\TitleLog Prefs.ini, Custom, 2
  IniWrite, %Custom3%, %A_Scriptdir%\TitleLog Prefs.ini, Custom, 3
  IniWrite, %Custom4%, %A_Scriptdir%\TitleLog Prefs.ini, Custom, 4
  IniWrite, %Custom5%, %A_Scriptdir%\TitleLog Prefs.ini, Custom, 5
  IniWrite, %Custom6%, %A_Scriptdir%\TitleLog Prefs.ini, Custom, 6
  IniWrite, %Custom5%, %A_Scriptdir%\TitleLog Prefs.ini, Custom, 7
  IniWrite, %Custom6%, %A_Scriptdir%\TitleLog Prefs.ini, Custom, 8
  IniWrite, %Idletime%, %A_Scriptdir%\TitleLog Prefs.ini, Idletime, 1
  IniWrite, %donotlog%, %A_Scriptdir%\TitleLog Prefs.ini, Donotlog, 1
here too.

but lanux128 messaged me to suggest replacing the whole thing with a loop:
Loop, 8                                                               ; since there are only 8 custom msg supported via gui (lanux128)
  {
  If ((Custom%A_Index%<>"Undefined") And (Custom%A_Index%<>""))    ;if undefined or empty, dont show in Tray Menu
    {
      Menu, Tray, Add, % Custom%A_Index%, CustomMsg              ; change M1-M8 labels into "CustomMsg"    (lanux128)
    }                                          
  }

45
General Software Discussion / Re: scroll down to next picture
« on: March 30, 2012, 05:10 PM »
i am just reading the blog, not just looking at pictures (not always, anyway), but i hate when a page down cuts a pic in half so i have to arrow down to get the whole pic on the screen. i hit the arrow button a few times...not enough, a few more times...still not enough. what can i say, i let little things like that bother me.  :)

splitpic.jpg

46
Coding Snacks / Re: IDEA: Grammar Nazi Mass Rename
« on: March 30, 2012, 04:55 PM »
i learned a little regex just to use it in BRU!


47
General Software Discussion / scroll down to next picture
« on: March 29, 2012, 11:08 PM »
hi, gang! i frequently end up browsing blogs that start each post with a picture. the pic of course has no relation to how much the webpage scrolls down when i click in the scroll bar. if i'm interested in seeing every picture, i end up clicking once in the scroll bar, then clicking the up or down arrows a couple times, which is irritating. anyone know of a program or firefox addon that scrolls down to the next picture with 1 click? an example blog would be this cooking blog, http://mykentuckyhome-kim.blogspot.com/, that i wish i could press a button and scroll right down to the next picture.

48
Coding Snacks / Re: IDEA: Grammar Nazi Mass Rename
« on: March 29, 2012, 10:32 PM »
am i too late? i like a program called Bulk Rename Utility: http://www.bulkrenam...co.uk/Main_Intro.php

49
Post New Requests Here / Re: IDEA: Very simple timeclock utility
« on: March 22, 2012, 02:28 AM »
each preset msg is coded to show the msgbox then turn off the timer:
  Gui,3: show,,%Custom1%     ;this pops up the msgbox, no?
  SetTimer, logchanges, off     ;this turns off the timer
i don't really know, but it seems to me that the easiest explanation for it working under old AHK but not AHK_L is that AHK popped up the msgbox first but for some reason AHK_L turns off the timer first, so a new window, albeit one created by this program, doesn't get logged.

if just popping up a new window isn't going to work under AHK_L, we could have each of the 8 presets call a subroutine that ends the previous timer and logs the result, and starts a new timer for the preset. unfortunately i don't find one. i think Brett intended to make one out of the Logchanges sub, he has a comment ";move this section as a gosub", that does what each preset message would have to do. but i don't know how to do that.

50
Post New Requests Here / Re: IDEA: Very simple timeclock utility
« on: March 21, 2012, 12:26 AM »
i'm running the titlelog.ahk file with AutoHotkey_L on a win7 x64 laptop. i'm also running a hotstring.ahk file that i just created, and 2 AutoHotkey executable programs, CapShift and Close2Quit, that i got here a while ago on donationcoder.

actually i realized that if
Code: Text [Select]
  1. SetTimer, logchanges, off
is a line to turn off the timer, the timer must be on, therefore it's redundant to change that line to "on". there was 1 more line that Brett intended to turn it back on after it had been off:
Code: Text [Select]
  1. SetTimer, logchanges, ON                        ;turn the timer back ON
so i put semi-colons in front of the 9 lines rather than change them.

Pages: prev1 [2] 3next