AutoHotkey Community

It is currently May 27th, 2012, 11:22 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 10 posts ] 
Author Message
 Post subject: FileNote
PostPosted: July 22nd, 2005, 2:28 pm 
Offline

Joined: July 22nd, 2005, 1:13 pm
Posts: 5
Perhaps somebody know the program FileNote which was programmed by Moon Software (http://www.moonsoftware.com/freeware.asp).
Well I've writte my own FileNote and perhaps someone might find it useful. I'll use it to add a description file in text format to any other file.
If you select a file or folder from your explorer there is a context menu entry which opens an editor and creates a file with the same name as of the selected file but with a different ending.

Example:
Firefox.exe
When running FileNote on this program, it creates a file called Firefox.txt.

It has some advantages againt the original program:
1. You could it use on Folders.
2. You could also use file name with a blank inside (there is a bug in the orignal program)
One disadvantage:
You have to edit your registry by hand.

Code:
; AutoHotkey Version: 1.7
; Language:       English
; Platform:       Win9x/NT
; Author:         Maria Seliger mailto:maria_seliger@nowhere.com
; Script Function: Creates a text file to a selected file or folder via
; context menu.
; Save Content of Clipboard in Variable ClipSaved
ClipSaved := ClipboardAll
; Start off empty to allow ClipWait to detect when the text has arrived.
clipboard = 
; Copy Command
Send ^c
; Wait for the clipboard to contain text.
ClipWait 
; Variable String get content of clipboard
; Rewrite Content of Clipboard
clipboard := ClipSaved
; Trim name of the file and delete extension
FullFileName = %clipboard%
SplitPath, FullFileName, name, dir, ext, name_no_ext, drive
; Run file editor, here PSPad
Run, C:\Programme\PSPad\PsPad.exe "%name%.txt"


First you should suit the file name to the editor (e. g. you might use Notepad).
Create a new ahk script and compile the project to get an .exe file. Put the .exe file somewhere.
To use this script you must edit your registry - here an example with Windows XP, where the FileNote.exe is stored here:
Z:\Programme\Dateimanagement\FileNote.exe

To use with files add this to your registry
[HKEY_CLASSES_ROOT\*\shell]
Add the key FileNote and then the key Command and enter the path in the standard value.

Example:
[HKEY_CLASSES_ROOT\*\shell\FileNote\Command]
Standard Value: "Z:\Programme\Dateimanagement\FileNote.exe" "%1"

The same you can do with folders, but you must use this registry key:
[HKEY_CLASSES_ROOT\Folder\shell\FileNote\Command]

Greetings, Maria!


Last edited by msel on May 17th, 2006, 2:15 pm, edited 1 time in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject: Re: FileNote
PostPosted: July 22nd, 2005, 3:18 pm 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
msel wrote:
If you select a file or folder from your explorer there is a context menu entry which opens an editor and creates a file with the same name as of the selected file but with a different ending.
I can see how auto-creation of a description-file can save time if you do it a lot. Thanks for posting it.


Report this post
Top
 Profile  
Reply with quote  
PostPosted: September 2nd, 2005, 2:51 pm 
Offline

Joined: May 27th, 2005, 4:14 pm
Posts: 35
I do not like the shell entries, in the end the stuck my registry. I prefer the send to. This script adds (& deletes) itself from the send to folder of the current user
Code:
#singleinstance force
IfLess, 0, 1
If A_IsCompiled
{
   SendToDir = %UserProfile%\SendTo
   IfNotExist, %SendToDir%
   {
      MsgBox, 16,, %SendToDir% not found
      ExitApp
   }   
   StringTrimRight, ScriptName, A_ScriptName, 4
   IfExist, %SendToDir%\%ScriptName%.lnk
   {
      FileDelete, %SendToDir%\%ScriptName%.lnk
      MsgBox, 64,, Shortcut %SendToDir%\%ScriptName%.lnk deleted
   }
   else
   {
      FileCreateShortcut, %A_ScriptFullPath%, %SendToDir%\%ScriptName%.lnk
         , %A_ScriptDir%,,Send to Clipboard as Name,,%A_ScriptFullPath%
      MsgBox, 64,, Shortcut %SendToDir%\%ScriptName%.lnk generated
   }
   ExitApp
}
else
{
   MsgBox, 16,, Compile me.
   ExitApp
}
Loop, %0% ; For each parameter:
{
   File  := %A_Index%
   CommentFile = %File%.txt
   IfNotExist, %File%
   {
      MsgBox, 16,, Error: %File% not found
      Continue
   }
   SplitPath, File, File
   FileAppend, |%File%> %A_Now% (%A_UserName% on %A_Computername%)`n, %CommentFile%
   If ErrorLevel
   {
      MsgBox, 16,, Error writing %CommentFile%
      Break
   }
   Run, "%CommentFile%",, UseErrorLevel
   If ErrorLevel
   {
      MsgBox, 16,, Error starting %CommentFile%
      Break
   }
   If (%0% > 1 and %A_Index% < %0%)
   {
      MsgBox, 4129, Procesing %A_Index% (%0%), Next File?
      IfMsgBox, Cancel
         Break
   }
}


If interested, it has two companions: send to clipboard as name (posted here) and send to clipboard as content (not posted here, I think a very special one, if interested, send me a message)


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Re: FileNote
PostPosted: December 28th, 2009, 6:50 am 
Offline

Joined: December 28th, 2009, 5:34 am
Posts: 2
msel wrote:
Perhaps somebody know the program FileNote which was programmed by Moon Software (http://www.moonsoftware.com/freeware.asp).



Maria, This is very very useful. FileNote from Moonsoftware doesn't support Windows 7 64-bit at the moment..

.....
Note: does not include 64-bit shell extensions, so if you install on 64-bit platform shell extensions only work in 32-bit programs
http://www.moonsoftware.com/shelltools.asp
....

So your script comes absolutely handy. I was looking for this!!!!

Thank you.


Report this post
Top
 Profile  
Reply with quote  
 Post subject: FileNote
PostPosted: May 3rd, 2010, 11:18 am 
Hi Maria,
I have been trying to follow your directions but the file editor opens without the name of the selected file, where am I going wrong?
Windows 7 64bit.
The recent change to 64 bit meant the loss of Moonsoft's Filenote
Thanks


Report this post
Top
  
Reply with quote  
PostPosted: June 26th, 2010, 3:25 pm 
Offline

Joined: March 27th, 2008, 7:46 pm
Posts: 129
Location: France
Hello, Nice...

Personally, i use for my annotations folders, a Text-File.
this file is placed in the concerned folder. and name is folder.txt
Like that, when i move the folder, the file.txt is moved too.

you can see and test a script for see/make folder.txt on :
http://www.autohotkey.com/forum/viewtopic.php?p=365172#365172

_________________
with ahk, all is different!...<img>


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 9th, 2010, 9:19 am 
Also, I found, too, may be a good tool - a comment to any file.
Add the following registry:

Code:
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\*\Shell\Text]
@="Filenote..."

[HKEY_CLASSES_ROOT\*\Shell\Text\Command]
@="Notepad %1%.txt"


The only inconvenience Notebook proposes to create a text document, and everything is fine.

sorry for offtopic


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: October 9th, 2010, 9:21 am 
Forgot to add - in Windows 7 64bit works ))


Report this post
Top
  
Reply with quote  
 Post subject: Can you explain?
PostPosted: January 23rd, 2012, 5:45 am 
Hi, I'm trying to add something like FileNote to my Win7 64bit, and saw this registry commands, but not sure what it does. I see it gives some shell commands to Filenote, but you don't explain if it is something you add by using the old version of Filenote or if these registry entries are to replace Filenote.

Sorry, but am confused by what you posted here. Please explain!

arulix wrote:
Also, I found, too, may be a good tool - a comment to any file.
Add the following registry:

Code:
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\*\Shell\Text]
@="Filenote..."

[HKEY_CLASSES_ROOT\*\Shell\Text\Command]
@="Notepad %1%.txt"


The only inconvenience Notebook proposes to create a text document, and everything is fine.

sorry for offtopic


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: February 20th, 2012, 6:46 am 
Offline

Joined: October 30th, 2011, 10:11 am
Posts: 59
anyone continue this idea?


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 10 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: MSN [Bot], nomissenrojb, Rajat and 58 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group