Tool Setup Q

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, MudGuard

Post Reply
mo
Posts: 306
Joined: Tue Mar 11, 2003 1:40 am

Tool Setup Q

Post 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.
Best Wishes!
Mike Olds
User avatar
s_reynisson
Posts: 939
Joined: Tue May 06, 2003 1:59 pm

Post 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.
Then I open up and see
the person fumbling here is me
a different way to be
mo
Posts: 306
Joined: Tue Mar 11, 2003 1:40 am

Post 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!"?
Best Wishes!
Mike Olds
User avatar
s_reynisson
Posts: 939
Joined: Tue May 06, 2003 1:59 pm

Post 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.
Then I open up and see
the person fumbling here is me
a different way to be
mo
Posts: 306
Joined: Tue Mar 11, 2003 1:40 am

Post 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?
Best Wishes!
Mike Olds
User avatar
s_reynisson
Posts: 939
Joined: Tue May 06, 2003 1:59 pm

Post 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! ;)
Then I open up and see
the person fumbling here is me
a different way to be
mo
Posts: 306
Joined: Tue Mar 11, 2003 1:40 am

Post by mo »

Thanks for the shot. It works fine and is fast enough as it is. (Nothing added to the end of the file)...
Best Wishes!
Mike Olds
User avatar
Drxenos
Posts: 225
Joined: Mon Jul 07, 2003 8:38 pm

Post by Drxenos »

mo wrote:Anyone remember the term "zorch!"?
As in: "Zorch the fleebs?"

also: zork.
mo
Posts: 306
Joined: Tue Mar 11, 2003 1:40 am

Post 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."
Best Wishes!
Mike Olds
User avatar
Drxenos
Posts: 225
Joined: Mon Jul 07, 2003 8:38 pm

Post 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.
Post Reply