Intro Download and install Frequently Asked Questions Tips and tricks

Homepage







© J.C. Kessels 2009
MyDefrag Forum
May 18, 2013, 09:13:23 pm *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: GUI for many ways of ad-hoc selection of files to highlight  (Read 8749 times)
RobL
JkDefrag Senior
****
Posts: 21


View Profile
« on: November 18, 2009, 07:59:18 am »

I wrote a GUI for many ways of ad-hoc selection of files to highlight in MyDefrag.  It is in compiled AutoIT.
My scripts use includes for FileBooleans and file lists and I use this tool often with those include files plus many ad-hoc displays.

Features: - Dialog to select one file (include or exclude subdirectories)
          - Dialog to select all files in a directory (include or exclude subdirectories)
          - Drop a file (include or exclude subdirectories)
          - Drop a directory (will select all files in that directory) (include or exclude subdirectories)
          - Type yor own file mask.  Can use this for files that explorer cannot see, like C:\$LogFile or C:\$MFT or C:\$*, for example
          - Select multiple files from a directory and repeat for other directories (arbitrary maximum of 100 files)
          - Select a file which contains a list of files.  For example, "C:\WINDOWS\Prefetch\Layout.ini" or any other list
          - Select a file which contains a FileBoolean expression.  For example, if you have the FileBoolean for Space Hogs in an include file.
          - Right-click a file or directory from explorer and Send To HighlightSelectedFileInMyDefrag
             (If directory, will select all files in that directory)
          - Dialog for visually selecting a color to use for highlighting.  Your selection will be saved in the ini file.
          - Can run as non-admin but will stop (unless RunAsOK=Yes) just before running MyDefrag, just so you can try the dialogs
          - Option to run as non-admin and invoke RunAs to run MyDefrag.  Does not use the /savecred (save credentials) parameter for security reasons

* HighlightSelectedFile v.1.12 ReadMe.txt (7.24 KB - downloaded 518 times.)

* ScreenShot-HighlightSelectedFile v.1.12.jpg (34.25 KB, 526x427 - viewed 1706 times.)
* Recent Changes.txt (1.03 KB - downloaded 470 times.)
* HighlightSelectedFile.exe (662.79 KB - downloaded 563 times.)
« Last Edit: August 13, 2010, 02:15:31 am by RobL » Logged
jeroen
Administrator
JkDefrag Hero
*****
Posts: 7155



View Profile WWW
« Reply #1 on: November 18, 2009, 08:14:11 am »

Thank you very much for your contribution, I appreciate it. I have not tested it, but I am sure many people will find it useful. I will add a link to the See Also page.
Logged
jonib
JkDefrag Hero
*****
Posts: 810


View Profile
« Reply #2 on: November 18, 2009, 10:52:27 am »

I wrote a GUI for many ways of ad-hoc selection of files to highlight in MyDefrag.  It is in compiled AutoIT.
My scripts use includes for FileBooleans and file lists and I use this tool often with those include files plus many ad-hoc displays.
Did you see my tool MyDefrag Menu Tools both seem to primarily be for highlighting files, but with different approach.

jonib
Logged

torned
JkDefrag Senior
****
Posts: 22


View Profile
« Reply #3 on: November 18, 2009, 01:09:50 pm »

Nice tool !
I prefer the green color : 51,255,51

Thx
Logged
RobL
JkDefrag Senior
****
Posts: 21


View Profile
« Reply #4 on: November 18, 2009, 02:49:22 pm »

Did you see my tool MyDefrag Menu Tools both seem to primarily be for highlighting files, but with different approach.

jonib

Jonib, Yes, I saw the post.  It has defragment feature too and explorer extension, which I do not have, very nice.  When I saw it, I already have a previous version of mine to help me with the other utility I am playing with - for creating lists for MostUsedSeek-Minimized-Layout.txt and/or BootLayout.txt.  See an unfinished version in http://www.mydefrag.com/forum/index.php?topic=1729.30 .  I also use scripts $ColorizeMyDriveLtr.MyD and $ColorizeAllZonesMyDriveLtr.MyD to highlight my zones but I use my utility for more on-the-fly sets of files, lists of files and/or booleans.  I probably could have used your nice tool but I never got the chance to find out.

$ColorizeAllZonesMyDriveLtr.MyD for all zones at once:
Code:
Title('!MyDriveLtr!   Boot=Blue; MostUsed=Green; NTFS=Red; Directories=White; Priority=Yellow; Regular=Purple; SpaceHogs=Blanched Almond;  EndOfDisk=Gray')
Description('Perform a !MyDefragActn! in !MyDriveLtr!:')
WhenFinished(wait)
!Include Includes\Write-Logfile-Prologue.txt!
ExcludeVolumes( Cdrom(yes) | Fixed(no) | Name("H:") | Name("S:") | Name("C:\Mnt\*") | Writable(no) ) 
VolumeSelect  CommandlineVolumes() and Removable(no) and Writable(yes) and Mounted(yes) and Name("!MyDriveLtr!:")
 VolumeActions
/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Zone - NTFS System Files ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
  SetFileColor( SelectNtfsSystemFiles(yes)                          , All , 255,000,000)     // NTFS System Files        - Red
/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Zone - Directories ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
  SetFileColor( Directory(yes)                                      , All , 255,255,255)     // Directories              - White
/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Zone - Boot Files ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
  SetFileColor( ImportListFromFile("!WorkingDirectory!\Includes\$@!COMPUTERNAME!~BootLayout.txt")
                                                                    , All , 000,000,255)     // Boot Files               - Blue
/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Zone - Most Used Seek-Minimized ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
  SetFileColor( ImportListFromFile("!WorkingDirectory!\Includes\$@!COMPUTERNAME!~MostUsedSeek-Minimized-Layout.txt")
                                                                    , All , 000,255,000)     // Most Used Seek-Minimized - Green
/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Zone - Priority Files  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
  SetFileColor(  !Include Includes\$@!COMPUTERNAME!~PriorityFilesIn!MyDriveLtr!.txt!
         & NOT  (SelectNtfsSystemFiles(yes))
         & NOT  (Directory(yes) )
         & NOT  (ImportListFromFile("!WorkingDirectory!\Includes\$@!COMPUTERNAME!~BootLayout.txt"))
         & NOT  (ImportListFromFile("!WorkingDirectory!\Includes\$@!COMPUTERNAME!~MostUsedSeek-Minimized-Layout.txt"))
                                                                    , All , 255,255,000)     // Priority Files           - Yellow
/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Zone - Regular Files ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
  SetFileColor(  ALL
         & NOT  (SelectNtfsSystemFiles(yes))
         & NOT  (Directory(yes) )
         & NOT  (ImportListFromFile("!WorkingDirectory!\Includes\$@!COMPUTERNAME!~BootLayout.txt"))
         & NOT  (ImportListFromFile("!WorkingDirectory!\Includes\$@!COMPUTERNAME!~MostUsedSeek-Minimized-Layout.txt"))
         & NOT  (!Include Includes\$@!COMPUTERNAME!~PriorityFilesIn!MyDriveLtr!.txt!)

         & NOT  (!Include Includes\$@!COMPUTERNAME!~SpaceHogsIn!MyDriveLtr!.txt!)
         & NOT  (!Include Includes\$@!COMPUTERNAME!~Files-At-End-Of-!MyDriveLtr!.txt!)
                                                                    , All , 255,000,255)     // Regular Files            - Purple
pause()
/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Zone - Space Hogs ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
  SetFileColor(  ALL
         & NOT  (SelectNtfsSystemFiles(yes))
         & NOT  (Directory(yes) )
         & NOT  (ImportListFromFile("!WorkingDirectory!\Includes\$@!COMPUTERNAME!~BootLayout.txt"))
         & NOT  (ImportListFromFile("!WorkingDirectory!\Includes\$@!COMPUTERNAME!~MostUsedSeek-Minimized-Layout.txt"))
         & NOT  (!Include Includes\$@!COMPUTERNAME!~PriorityFilesIn!MyDriveLtr!.txt!)
         &      (!Include Includes\$@!COMPUTERNAME!~SpaceHogsIn!MyDriveLtr!.txt!)
         & NOT  (!Include Includes\$@!COMPUTERNAME!~Files-At-End-Of-!MyDriveLtr!.txt!)
                                                                    , All , 255,235,205)     // Space Hogs               - Blanched Almond
pause()
/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Zone - End Of Disk ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
  SetFileColor( (!Include Includes\$@!COMPUTERNAME!~Files-At-End-Of-!MyDriveLtr!.txt!)
                                                                    , All , 127,127,127)     // End Of Disk              - Gray
/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
VolumeEnd

Snippet of $ColorizeMyDriveLtr.MyD for zones one-by-one :
Code:
  SetFileColor(All,Selected,255,0,0)                // Bright Red - Color of selected files in each zone
/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Zone - Boot Files ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
  Message("Zone %1u of %2u","Zone %1u of %2u (Boot Files) Bright Red")
  FileSelect  ImportListFromFile("!WorkingDirectory!\Includes\$@!COMPUTERNAME!~BootLayout.txt")
    FileActions
      Pause()
  FileEnd
/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Zone - Most Used Seek-Minimized ~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
  Message("Zone %1u of %2u","Zone %1u of %2u (Most Used Seek-Minimized) Bright Red")
  FileSelect  ImportListFromFile("!WorkingDirectory!\Includes\$@!COMPUTERNAME!~MostUsedSeek-Minimized-Layout.txt")
    FileActions
      Pause()
  FileEnd

Snippet of $OptimizeMyDriveLtr.MyD for zones one-by-one :
Code:
  MakeGap(0)                   // Place files at the beginning of the disk.
/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Zone - Boot Files ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
  Message("Zone %1u of %2u","Zone %1u of %2u (Boot Files)")
  FileSelect ( ImportListFromFile("!WorkingDirectory!\Includes\$@!COMPUTERNAME!~BootLayout.txt") )
    FileActions
      !Include Includes\AppendLogfile-BootFiles.txt!
      !Include Includes\FileActions-Boot-!MyDefragActn!.txt!
      !Include Includes\AddGap-Small.txt!
  FileEnd
/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Zone - Most Used Seek-Minimized ~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
  Message("Zone %1u of %2u","Zone %1u of %2u (Most Used Seek-Minimized)")
  FileSelect ( ImportListFromFile("!WorkingDirectory!\Includes\$@!COMPUTERNAME!~MostUsedSeek-Minimized-Layout.txt") )
    FileActions
      !Include Includes\AppendLogfile-MostUsedSeek-Minimized.txt!
      !Include Includes\FileActions-Boot-!MyDefragActn!.txt!
      !Include Includes\AddGap-Medium.txt!
  FileEnd
/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Zone - Priority Files  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
  Message("Zone %1u of %2u","Zone %1u of %2u (Priority Files)")

Regards,
RobL
Logged
majoMo
JkDefrag Hero
*****
Posts: 72



View Profile
« Reply #5 on: November 18, 2009, 03:04:27 pm »

Working well here.

Handy tool. Thanks.

 Smiley
Logged
Bart Welson
JkDefrag Senior
****
Posts: 25


View Profile
« Reply #6 on: August 11, 2010, 05:19:58 pm »

Hi,

This tool is very good, but it seems you have abandoned it.

If you didn't, I hope you can implement an option to only highlight the file/folder the user selected,
and make everything else show BLACK, otherwise it is extremely difficult to find the files/folders, and to have a clear view where they are scattered around.

Is it possible please ?

Thank you.
Logged
RobL
JkDefrag Senior
****
Posts: 21


View Profile
« Reply #7 on: August 11, 2010, 10:00:30 pm »

I hope you can implement an option to only highlight the file/folder the user selected,
and make everything else show BLACK, otherwise it is extremely difficult to find the files/folders, and to have a clear view where they are scattered around.

Thanks Bart for the suggestion.  I actually made V1.10 back in June then I forgot about it. I now made v1.11 incorporating your sugestion, replacing v1.9 at the top. See "Recent Changes.txt".
Logged
majoMo
JkDefrag Hero
*****
Posts: 72



View Profile
« Reply #8 on: August 12, 2010, 11:10:16 pm »

Hi Robl,

When selected number 14, and press Method 2, comes out:

Logged
RobL
JkDefrag Senior
****
Posts: 21


View Profile
« Reply #9 on: August 13, 2010, 02:21:26 am »

When selected number 14, and press Method 2, comes out:

Thanks majoMo for reporting the problem. I have updated to v1.12 to fix it. The problem was related to one of my include files not compatible with the latest release of AutoIT.
Logged
majoMo
JkDefrag Hero
*****
Posts: 72



View Profile
« Reply #10 on: August 13, 2010, 08:07:04 pm »

Tried and fixed.   

Thanks, RobL.



Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.5 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!