topbanner_forum
  *

avatar image

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

Login with username, password and session length
  • Thursday November 13, 2025, 8:45 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

Recent Posts

Pages: prev1 ... 192 193 194 195 196 [197] 198 199 200 201 202 ... 309next
4901
General Software Discussion / Comment Explorer 2.5.0.4
« Last post by MilesAhead on August 25, 2011, 04:24 PM »
http://milesaheadsoftware.org

Comment Explorer allows you to add and view Comments for files in Explorer.
It's written as a Hotkey Tray App to avoid Shell Extension Hell.  Should work
on Windows XP and later both 32 and 64 bit.

It requires Scripting.Dictionary be available on the machine.
Up and Down Arrow Keys in Explorer Window will show the
Comment for the file in a ToolTip if it exists. If not, it will
show the file path of the selected file/folder.

To add a Comment, press Shift-F11.


See Readme.txt for usage particulars.
Source is included.  To compile use
AutoHotkey v1.1.22.02 or later.
4902
Here's my current version.  Initial testing seems ok.
To Toggle Arrow Keys enabled just double click Tray Icon.  Shows status in icon tooltip.

CommentExplorer.ahk

/*
 * * * Compile_AHK SETTINGS BEGIN * * *

[AHK2EXE]
Exe_File=%In_Dir%\CommentExplorer.exe
No_UPX=1
[VERSION]
Set_Version_Info=1
File_Version=1.0.0.0
Inc_File_Version=0
Product_Version=1.0.0.0
[ICONS]
Icon_1=%In_Dir%\C.ico

* * * Compile_AHK SETTINGS END * * *
*/

#SingleInstance ignore
#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.
#Include MilesAhead.ahk
progname := _FileBaseName(A_ScriptFullPath)
tiptext := progname . "  ==> No"
Menu Tray,NoStandard
Menu Tray,Add,Donate,DoDonate
Menu Tray,Add,Visit Hotkey Page,DoVisit
Menu Tray,Add,About,DoAbout
Menu Tray,Add
Menu Tray,Add,Arrow ToolTips,ToggleTips
Menu Tray,Add
Menu Tray,Add,Quit,DoQuit
Menu Tray,Default,Arrow ToolTips
if (A_IsCompiled)
  Menu Tray,Icon,%A_ScriptFullPath%,1
Menu Tray,Tip,%tiptext%

ArrowsEnabled := 0

IniFile = %A_ScriptDir%\%A_ScriptName%
IniFile := RegExReplace(IniFile,"i)ahk$","ini")
IniFile := RegExReplace(IniFile,"i)exe$","ini")
IniRead,ArrowsOn,%IniFile%,Settings,ArrowsEnabled,1
if ArrowsOn
  gosub,ToggleTips

GroupAdd,ExplorerGroup, ahk_class CabinetWClass
GroupAdd,ExplorerGroup, ahk_class ExploreWClass
TipActive := 0
FileName := ""
CommentFile := "Comments.txt"
sd := ComObjCreate("Scripting.Dictionary")
gosub,ReadCommentFile

#IfWinActive, ahk_Group ExplorerGroup
~Up::
~Down::
  if !ArrowsEnabled
    Return
  if TipActive
     gosub,ClearTip
  Clipboard= ; clear clipboard
  Send ^c
  ClipWait,0
  if sd.exists(Clipboard)
   {
      str := sd.item(Clipboard)
      ToolTip,%str%
   }
  else
   ToolTip,%Clipboard%
  TipActive := 1
  SetTimer,ClearTip,-4000
Return

+F11::
  Clipboard= ; clear
  Send ^c
  ClipWait,0
  FileName := Clipboard
  str := ""
  if sd.exists(FileName)
   str := sd.item(FileName)
  InputBox,Comment,,Enter Comment,,,,,,,,%str%
  if ErrorLevel
   Return
  sd.item(FileName) := Comment
Return


ClearTip:
  if TipActive
  {
    ToolTip
    TipActive := 0
  }
Return

ReadCommentFile:
  IfNotExist,%CommentFile%
   Return
  FileRead,Contents,%CommentFile%
  if Contents=
   Return
  Loop, parse, Contents, `n, `r
  {
   if Mod(A_Index,2)
      keystr := A_LoopField
   else
      sd.item(keystr) := A_LoopField
  }
Return

ToggleTips:
  ArrowsEnabled := !ArrowsEnabled
  Menu Tray,ToggleCheck,Arrow ToolTips
  if ArrowsEnabled
    tiptext := progname . "  ==> Yes"
  else
    tiptext := progname . "  ==> No"
  Menu Tray,Tip,%tiptext%
Return

DoAbout:
  FileGetVersion,filever,%progname%.exe
  MyMsg =
  (
%progname% v %filever% Copyright (c) 2011 www.FavesSoft.com`n
Use Up Down Arrows to see Comments in Explorer`n
Press Shift-F11 to Add Comment for a File`n
  )
  MsgBox, 4160, About %progname%, %MyMsg%
Return

DoDonate:
  Run,"http://www.favessoft.com/donate.html"
Return

DoVisit:
  Run,"http://www.favessoft.com/hotkeys.html"
Return

DoQuit:
  IniWrite,%ArrowsEnabled%,%IniFile%,Settings,ArrowsEnabled
  IfExist,%CommentFile%
   FileDelete,%CommentFile%
  for k, v in sd.Keys()
  {
   if sd.exists(k)
   {
    FileAppend,%k%`n,%CommentFile%
    str := sd.item(k)
    FileAppend,%str%`n,%CommentFile%
   }
  }
  sd := 0
  ExitApp

4903
To use 32 bit shell extensions on 64 bit OS you have to access via either a 32 bit file manager, such as FreeCommander etc., or the 32 bit Explorer.  Microsoft had a work-around.  They stored a 32 bit Explorer under SysWow64 folder.  If you launched it, most 32 bit shell extensions would work. That's why I wrote HalfShell hotkey app.  My 32 bit shell extensions, and other peoples, were working kick ass on Vista64.  Then I got word from people they weren't working on 64 bit W7.  Turns out, as I mentioned earlier, that the hard link was no longer guaranteed to go to a 32 bit Explorer.  Basically MS shot themselves in the foot but the bullet went through everyone using the work-around.

Maybe 64 bit compiler sales were slow since the 32 bit shell extensions were working? ;)

I'm updating my AHK doodad.  I've used the key/comment text data file for years.  But I never stress tested it with a lot of data.  If somebody could add some more efficient or robust data storage that would be a big bonus.  For simplicity I'm back to using the entire file path as key. In my TipOff program I only use the file name part with a comment file in each folder.  Probably not so necessary now since we seem to be back to the OS wanting to be on C: with Vista and W7. So the drive letter thing is less likely to break it.

A little more work and I'll post what I have for working AHK prototype.

4904
I should mention I'm compiling the above with AutoHotkey_L latest version.
4905
Okay, here's a start on a working program. To hold lots of comments it may be preferable to use a db engine.  For this demo a text file of alternating keys/comments is used.

It should work on any Windows with Scripting.Dictionary regardless of the "bitness" of the OS.

/*
 * * * Compile_AHK SETTINGS BEGIN * * *

[AHK2EXE]
Exe_File=%In_Dir%\CommentExp.exe
No_UPX=1
[VERSION]
Set_Version_Info=1
File_Version=1.0.0.0
Inc_File_Version=0
Product_Version=1.0.0.0

* * * Compile_AHK SETTINGS END * * *
*/

; CommentExp.ahk
;
; Crude start to displaying comments in Explorer
; regardles of "bitness" of the OS.
;
; Should work on any Windows with Scripting.Dictionary
;
; When the Up and Down Arrow keys are used in an
; Explorer Window, a ToolTip will show near the Mouse.
;
; If there is a commment for the file, it is shown.
; Otherwise the filename is displayed.
;
; Press Shift-F11 to add a comment for a flle.
;
; Comments.txt is written in the same folder as
; CommentExp.exe and read back on program run.
;
; Possible enhancements: Use db engine instead of
; just a text file of alternating keys/comments.
;
; It's free for you to modify for your own use at
; your own risk.
;
; MilesAhead
;
#SingleInstance ignore
#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.
OnExit,SaveAndQuit
GroupAdd,ExplorerGroup, ahk_class CabinetWClass
GroupAdd,ExplorerGroup, ahk_class ExploreWClass
TipActive := 0
FileName := ""
CommentFile := "Comments.txt"
sd := ComObjCreate("Scripting.Dictionary")
gosub,ReadCommentFile

#IfWinActive, ahk_Group ExplorerGroup
~Up::
~Down::
  if TipActive
     gosub,ClearTip
  Clipboard= ; clear clipboard
  Send ^c
  ClipWait,0
  if sd.exists(Clipboard)
   {
      str := sd.item(Clipboard)
      ToolTip,%str%
   }
  else
   ToolTip,%Clipboard%
  TipActive := 1
  SetTimer,ClearTip,-4000
Return

+F11::
  Clipboard= ; clear
  Send ^c
  ClipWait,0
  FileName := Clipboard
  str := ""
  if sd.exists(FileName)
   str := sd.item(FileName)
  InputBox,Comment,,Enter Comment,,,,,,,,%str%
  if ErrorLevel
   Return
  sd.item(FileName) := Comment
Return


ClearTip:
  if TipActive
  {
    ToolTip
    TipActive := 0
  }
Return

ReadCommentFile:
  IfNotExist,%CommentFile%
   Return
  FileRead,Contents,%CommentFile%
  if Contents=
   Return
  Loop, parse, Contents, `n, `r
  {
   if Mod(A_Index,2)
      keystr := A_LoopField
   else
      sd.item(keystr) := A_LoopField
  }
Return
  
SaveAndQuit:
  IfExist,%CommentFile%
   FileDelete,%CommentFile%
  for k, v in sd.Keys()
  {
   if sd.exists(k)
   {
    FileAppend,%k%`n,%CommentFile%
    str := sd.item(k)
    FileAppend,%str%`n,%CommentFile%
   }
  }
  sd := 0
ExitApp

4906
The display in ToolTip in Explorer can be done with AHK I think.  I have a test stub that displays the filename when you use Up and Down Arrows in Explorer.  But I don't know enough about using either SQLlite or Scripting.Dictionary or native associative arrays in AHK to use the filename to look up the comment.

The OP mentioned the desire to search, which is another difficulty.  Using TreePad files with comments one can search the entire TreePad file using Control-f.  Also one can make a "master" TreePad file by importing the TreePad comment file for each directory, thereby enabling a system wide search.  But it would be a bit cumbersome unless one is adept at TreePad.  I couldn't find any command line switch to open a TreePad file to a search.

Here's the test stub I have so far.  It may be desirable to get rid of the code that saves the clipboard contents at each hotkey press as it will likely slow things down when fetching the comment.  Maybe have a menu option to disable the Up and Down Arrow monitoring so as not to interfere when using the clipboard for stuff.

;
; Demonstrates showing a ToolTip as Up and Down Arrows
; are used in Explorer.
;
; The next step is to use the filename to look up a
; comment associated with the file.  The ToolTip should
; display that, if it exists, instead of the filename.
;
; Step after that would be a method to enter a comment for
; the selected file and store it in an associative array
; or use some database engine.  For a few thousand comments
; Scripting.Dictionary may work, or AHK associative arrays.
;
; MilesAhead
;
#SingleInstance ignore
#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.

GroupAdd,ExplorerGroup, ahk_class CabinetWClass
GroupAdd,ExplorerGroup, ahk_class ExploreWClass
TipActive := 0

#IfWinActive, ahk_Group ExplorerGroup
~Up::
~Down::
  if TipActive
     gosub,ClearTip
  ClipSaved := ClipboardAll ; save entire clipboard
  Clipboard= ; clear clipboard
  Send ^c
  ClipWait,0
  ToolTip,%Clipboard%
  Clipboard := ClipSaved
  ClipSaved = ; free memory
  TipActive := 1
  SetTimer,ClearTip,-4000
Return

ClearTip:
  if TipActive
  {
    ToolTip
    TipActive := 0
  }
Return
4907
Uggg, no joy in a simple solution I see. I have renamed some downloaded files to make their association a little easier to retain their 'meaning' but nothing on a regular basis. (Sometimes what seems logical at time of downloads changes with the passing of time on my part.) Tagging would sort of help but not my desired solution. I use "Everything" to run file searches which helps root out files but this is dependent upon my remembering parts of file names and what not. The older I get the harder it is to remember them dang parts of titles, )). I will keep looking though.

I know what you mean. When using aliases in Windows to launch commands I often remember what the program does, but forget the alias as well as the program name. It can be frustrating.

4908
I took a look at Explorer Notes as I was curious.  Somewhat similar to my TipOff except TipOff allows up to 4 kb of text in a comment rather than 255 characters.  Also TipOff comments can be multi-line.  When stored to file it filters out the cr/lf pairs and uses a tilde('~') in the file in their place to keep the data file simple alternating key/comment lines of text.

It's not a search engine.  When you select a file in Explorer, if it has been commented and is of the supported type:
.7z .arc, .arj, .cab, .exe, .gif, .gz, .jpg, .lzh,
  .msi, .rar, .rpm, .tar, .tgz, .txt, .Z, and .zip

The comment will show in a ToolTip.

Otherwise you right click the file, select Properties, then click the Comment Tab.  There's an EditBox where you can read and edit the comment.  You can use Enter and spaces to make comments appear somewhat aligned.

There's an adjustment in the Windows OS to set the ToolTip speed(mouse hover delay.)  See the help file.  But even when you decrease the delay it's not as smooth as I'd like it.  The ideal might be to have an app window open and send the comment to it.  But Explorer integration is really tough.  Especially when they insist on changing things every time a new Windows comes out.

I probably saw the Rubening utility as I used to subscribe to PC Mag back then.  Probably what inspired me to try to write my own. :)

One big pita with this type of utility is moving the files. Due to the drive letter thing. I ended up putting in a shell extension to copy the files with the corresponding comments to another folder.  Also I put a data file in the current folder to get away from the drive letter being part of the key to the comment.  But it really needs to be part of the file system to be smooth in my opinion.

But as a quick test you might try using the Rubenking utility in a 32 bit file manager.  My 32 bit TipOff will work on 64 bit systems if using 32 bit FreeCommander instead of 64 bit Explorer.  The same is likely true of Rubenking's DLL. It's got to be a 32 bit shell extension.



4909
An idea that may be helpful with the TreePadLite description file approach is to go the other way. Instead of commenting a file with a cryptic name, save the cryptic name as the comment in case you need to search the download at some later date, and rename the download file to something descriptive.

Especially when I download set up files that have names like SetUp_someappxyz_1465.msi  I put the descriptive filename first, then the fact it's a set up.  Like MakeMKV1614_Setup.exe instead of SetupMakeMKV1614.exe or however it comes from the site. It sorts better that way instead of looking through 200 files that start with SetUp__

4910
I worked on this for a number of years to comment my downloads in Explorer.  I wrote a 32 bit shell extension called TipOff.  But especially for 64 bit I came to the conclusion that there's really no good way of doing it unless you happen to have written a pretty comprehensive file manager.

You may get TipOff to work on 64 bit if you use it in a 32 bit file manager such as FreeCommander.  I wrote a small utility to launch 32 bit explorer in 64 bit Windows so that many of these 32 bit extensions would work.  I got the work-around from Microsoft site(launching 32 bit explorer from SysWow64 folder) but they later changed it so that there's no way to determine if the hard link would launch a 32 or 64 bit Explorer. I gave up at that point.

I haven't updated TipOff in awhile because I got tired of the silliness.  You can try it if you like:

http://www.favessoft.com/tipoff.html

Also I have a different approach.  Making a TreePadLite file for an entire folder and you fill in the descriptions later.  All the top level files are entered as nodes in the tree. I call it TreePadGen:

http://www.favessoft.com/downloads.html

The other way that may work semi-smoothly would be a tray app that watched the mouse in Explorer window.  Every time you selected a file it would use the name as an index into an associative array(map, hash, whatever) and show the comment in a tooltip.  You'd hit a hotkey to enter the description.  Not really smooth.  Another reason why I gave up because you really just want to select the file with the mouse and the comment mechanism be provided by the OS and/or file system.  It's clunky to do it from outside.

I don't work on this type application anymore as it's a case of been there, done that. I spent too much time already on something that can't really be done smoothly in Windows. I messed with it from around 2001 to a couple years ago.  That's enough for me. :)


4911
Post New Requests Here / Re: PC Shut down
« Last post by MilesAhead on August 22, 2011, 01:01 AM »
If they are on the same network this approach may be better(assuming it works)

http://www.powershel...ft/4402/Default.aspx
4912
Post New Requests Here / Re: PC Shut down
« Last post by MilesAhead on August 22, 2011, 12:39 AM »
4913
Post New Requests Here / Re: PC Shut down
« Last post by MilesAhead on August 21, 2011, 11:18 PM »
@MilesAhead: Bro, please read my last post above

You don't say if it shuts down when someone never logged in.
That's what I'm curious about.
4914
Post New Requests Here / Re: PC Shut down
« Last post by MilesAhead on August 21, 2011, 06:23 PM »
http://www.barefooti...com/autoshutdown.htm

Claims it uses a service to work when no user is logged in.
It says 30 day trial. I'd just make a restore point before installing.
4915
Found Deals and Discounts / Re: EaseUS Todo Backup Free has USB 3.0 support
« Last post by MilesAhead on August 21, 2011, 06:18 PM »
I have a couple of BlacX USB 2.0 docks.  They worked fine with Macrium boot CD.  One thing I like about the SIIG docs is the fan.  Although the single takes as much space as a double, the drives are noticeably cooler when you pull them out with your hand.

I don't know how you can find out ahead of time, but I had Sharkoon USB 3.0 dock and it would spin down the drive after an idle time.  I wrote a small program to create a file and delete it every 5 minutes to avoid spin down.  But it seems to need to be manually flushed before pulling the drive out.  I had some sync issues I didn't notice with the SIIG.  I don't know how the BlacX is.  Maybe you can find out from user reviews.


4916
Post New Requests Here / Re: PC Shut down
« Last post by MilesAhead on August 21, 2011, 12:06 AM »
I found this:

http://www.apponic.c...oshutdown-pro-44764/

It says "shareware" which implies you can try it before purchase. I have no clue if it works. But it states it can shut down without a user being logged on.

4917
Found Deals and Discounts / Re: EaseUS Todo Backup Free has USB 3.0 support
« Last post by MilesAhead on August 20, 2011, 11:51 PM »
btw, as I use this more I do see it allows you to choose partitions to back up.  You just have to make a task with the wizard. The UI is a bit more spartan than Macrium but so far I like it. Of course the proof will be if I have to restore.  Hoping I don't have to test it for a bit. :)
4918
Found Deals and Discounts / Re: EaseUS Todo Backup Free has USB 3.0 support
« Last post by MilesAhead on August 20, 2011, 10:54 PM »
This is the dock:

http://www.newegg.co...Item=N82E16817270020

I'm using with SIIG Superspeed PCIexpress card (5 Gb/s)

http://www.newegg.co...Item=N82E16815150161

The good thing is this release is the Free version.  So if it doesn't work you're not out anything.  But I tried Macrium boot CD after my system had been powered up, and after completely powering down, and the access light in the dock never flickered once. (I'm talking Linux boot CD made from new Macrium v. 5 trial.)


I'm not sure if it works with on board USB 3.0  But they seem interested in doing it.  On their support forum there was a question about no USB 3.0 posted around the end of July and already they are making changes.

I'm sure Macrium will get it too eventually.  Seems like NEC driver is too common to ignore I would think.  That's what SIIG card uses, NEC chips and Windows driver.
4919
Found Deals and Discounts / EaseUS Todo Backup Free has USB 3.0 support
« Last post by MilesAhead on August 20, 2011, 09:57 PM »
http://www.todo-back...ness/free-backup.htm

I just tried the Linux boot CD made with EaseUS Todo Free edition. To my pleasant surprise it recognized the drives in my SIIG USB 3.0 docks running off SIIG USB 3.0 PCIexpress card.

Even the new Macrium Reflect 5 Pro does not recognize my SIIG card.

I made one backup image after trying the boot CD.  Doesn't have the options that Macrium has, but is much simpler.  Backup My System doesn't ask any questions other than the folder to put the image. It backs up the partition you booted from.  It does look like it may have some features Macrium doesn't like Clone to dissimilar hardware.

The main thing for me right now is avoiding messing around with putting backup images on USB 2.0 drives or using a USB 2.0 dock.  I haven't tried the restore but Macrium restore from USB 2.0 on my systems copied off the source at about 22 MB/s. I'm sure USB 3.0 read will be much faster.

Also if anyone is interested, SIW2 poster on another forum has a utility program that makes a boot CD with a menu to make it easier to use restore type programs.  You can take a look at this thread if you are curious:

http://www.sevenforu...ram.html#post1533753

4920
Featured on the excellent FreeDownloadADay site today:
http://www.freedownl...-keyboard-shortcuts/

I noticed that just now.  Congratulations tranglos !!


4921
Developer's Corner / Re: Next step up from Autohotkey
« Last post by MilesAhead on August 17, 2011, 03:56 PM »
all you had to say was "There's an interrupt for that. Int 21H subfunction 
For which, I believe, the C equivalent is "I think you'll find that in Knuth?"  :)

I knuth you were going to say that. :)
Unfortunately I don't have a para-digms to rub together these days.
4922
Ah well, it is advisable to take your PC once or twice a year apart for cleaning out the accumulated dust, A good time to change the rubber bands as well.   :)

Hamster replacement may also be advisable.


4923
Developer's Corner / Re: Next step up from Autohotkey
« Last post by MilesAhead on August 16, 2011, 04:07 PM »
Dos programming manual to Int 21H
I'm no programmer, and even I've heard of that!  :)

Heh heh.  They used to call it "the Dos Interrupt." If you wanted to fake it you new assembler to non asm types all you had to say was "There's an interrupt for that. Int 21H subfunction yadda yadda" and they'd go for it. :)
4924
at the risk of being on topic, have you considered adding some sound deadening to the case as well?

Or put on some music very loud!! Like if your elbow hurts get somebody to stomp on your toe.  You forget about the elbow! :)
4925
Hmmmmmmm quietest drive I ever had was in a 486.  I forget the drive make.  But it was a 200 MB SCSI.  It had a voice coil.  The only time I could hear anything from it was if I put my ear next to it at about 2:00 AM when other noise had subsided in the house.  Man that thing was quiet!!  Watching the LED was the only way I could tell it was thrashing.

Of course the downside was only 200 MB storage! :)
Pages: prev1 ... 192 193 194 195 196 [197] 198 199 200 201 202 ... 309next