Tool Setup Q
Moderators: AmigoJack, bbadmin, helios, MudGuard
-
mo
- Posts: 306
- Joined: Tue Mar 11, 2003 1:40 am
Tool Setup Q
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.
Best Wishes!
Mike Olds
Mike Olds
- s_reynisson
- Posts: 939
- Joined: Tue May 06, 2003 1:59 pm
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.
Then I open up and see
the person fumbling here is me
a different way to be
the person fumbling here is me
a different way to be
-
mo
- Posts: 306
- Joined: Tue Mar 11, 2003 1:40 am
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!"?
Best Wishes!
Mike Olds
Mike Olds
- s_reynisson
- Posts: 939
- Joined: Tue May 06, 2003 1:59 pm
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:
Edit: Same goes for the Command "C:\WINDOWS\NOTEPAD.EXE"
with Parameters $Sel, works fine.
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 1with Parameters $Sel, works fine.
Then I open up and see
the person fumbling here is me
a different way to be
the person fumbling here is me
a different way to be
- s_reynisson
- Posts: 939
- Joined: Tue May 06, 2003 1:59 pm
-
mo
- Posts: 306
- Joined: Tue Mar 11, 2003 1:40 am
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."
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."
Best Wishes!
Mike Olds
Mike Olds
- Drxenos
- Posts: 225
- Joined: Mon Jul 07, 2003 8:38 pm
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: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."
I remembered the term "fweep" wrong."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.
DrX.