Page 1 of 1
Tool Setup Q
Posted: Sun Nov 02, 2003 4:47 pm
by mo
I have a little tool (CuteMap) which is used to generate the html for an image map. I am wondering if there is any way that by clicking on or selecting the url of an image in a TextPad file that this information could be passed to CuteMap such that it would open with that image displayed.
Posted: Sun Nov 02, 2003 5:31 pm
by s_reynisson
Could it be the $Sel Tool Parameter you're after?
Tool Parameter Macros
Programs that you add to the Tools Menu can be started with context dependent information using parameter macros. These can be specified in the "Command", "Parameters" and "Initial Directory" fields of the Tools dialog box, and in the Run and Tool Parameters dialog boxes...snip...
$Sel Selected text in the active document. This is limited to the first line in a multiple-line selection.
Posted: Sun Nov 02, 2003 8:03 pm
by mo
Well I couldn't figure out how to make that work, but I did manage to put together a little macro in MacroScheduler (I feel admin shuddering) that I made into an .exe that I installed as a tool which does it with a url that is selected and copied to the clipboard. Anyone remember the term "zorch!"?
Posted: Sun Nov 02, 2003 9:28 pm
by s_reynisson
Did a small test with a
DOS command under XP and TP 4.7.1.
Under
Parameters for
Command CMD.EXE I put "ping $Sel", highlighted
the string "
www.textpad.com" in the active document and ran my tool:
Code: Select all
Pinging www.textpad.com [207.44.205.190] with 32 bytes of data:
Request timed out.
Request timed out.
Request timed out.
Request timed out.
Ping statistics for 207.44.205.190:
Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),
Tool completed with exit code 1
Edit: Same goes for the
Command "C:\WINDOWS\NOTEPAD.EXE"
with
Parameters $Sel, works fine.
Posted: Sun Nov 02, 2003 10:39 pm
by mo
If I follow (doubtful), what I need to say is:
Open New $Sel
or I need to add an instruction to the Command CuteMap.exe ?open new
then have the Peramater read $Sel OK
How do I say that?
Posted: Sun Nov 02, 2003 11:13 pm
by s_reynisson
Downloaded Cutemap, as far as I can see it simply does not accept
filename as a parameter. Guess you were right in using MS!

Posted: Sun Nov 02, 2003 11:35 pm
by mo
Thanks for the shot. It works fine and is fast enough as it is. (Nothing added to the end of the file)...
Posted: Thu Nov 06, 2003 9:17 pm
by Drxenos
mo wrote:Anyone remember the term "zorch!"?
As in: "Zorch the fleebs?"
also:
zork.
Posted: Thu Nov 06, 2003 9:36 pm
by mo
Hello...I suspect not. I don't know that expression (would like to learn)...
I looked zorch up in the jargon dictionary and it doesn't go back far enough!
A term used in the early 50s on a youth-oriented radio station in the Bay Area CA for something like "great" or "fantastic."
Posted: Fri Nov 07, 2003 3:20 pm
by Drxenos
mo wrote:Hello...I suspect not. I don't know that expression (would like to learn)...
I looked zorch up in the jargon dictionary and it doesn't go back far enough!
A term used in the early 50s on a youth-oriented radio station in the Bay Area CA for something like "great" or "fantastic."
Sorry, bad memory of hacker terms....getting old...anyways, I looked up where I remember the term from (hacker version). It was in how the game Zork got its name:
"Zork" was a nonsense word floating around; it was usually a verb, as in "zork the fweep," and may have been derived from "zorch." ("Zorch" is another nonsense word implying total destruction.) We tended to name our programs with the word "zork" until they were ready to be installed on the system.
I remembered the term "fweep" wrong.
DrX.