Using .sctool External Tool Config Files |
Top Previous Next |
I've just added a new feature that adds a new "Tools" subdirectory in the Screenshot Captor installation, which is scanned automatically when the program starts.
Screenshot Captor looks for files named *.sctool and parses those in search of 3rd party tool configurations, and these are added to the Tools menu automatically.
This allows two things:
* First, users can share tool "packs" as if they were plugins, by combining a utility with its .sctool file, which users simply unzip into the Tools subdirectory. * Second, users can make an .sctool file for a common application (like Photoshop, Paint Shop Pro, etc.), which tells SC where to look to find the program on the hard disk of the user, and how to launch it to work with the selected image (if found, it is added to the Tools menu).
Example:
// Format: // title = // app = // params = // iconfile = // Notes: // if title = - then it is a separator (no other values needed) // params and iconfile are optional // if iconfile is blank, the exe file icon will be used // you can specify multiple entries if you separate them with @ sign on its own line // if an app doesnt exist it will not be loaded, so its safe to add entries for programs not on users pc // // The following macros are available for exe and params // %THISDIR% - the directory this file is in // %APPDIR% - the directory where the program (Screenshot Captor) is run from // %APPDRIVE% - the drive (e.g. c:) where the program (Screenshot Captor) is run from // - // %file% - Image file name (surround in " if required). // %folder% - Folder containing the image file. // %tmpfile% - Temporary flat image file name w/o ext. (e.g. %tmpfile%.jpg) // %tmpfileplain% - Temporary image (with NO objects drawn) file name w/o ext. (e.g. %tmpfile%.jpg) // %fileplain% - Saves image with NO objects drawn, and then reloads and re-adds objects // %ProgramFiles% - Program files directory (will look in BOTH x86 and normal)
title = Paint Shop Pro app = C:\Program Files\Jasc Software Inc\Paint Shop Pro 9\Paint Shop Pro 9.exe params = "%file%" iconfile = |