Rocket Software Homepage
Forum Home Forum Home > AccuTerm Knowledge Base (read only) > Installation & Setup
  New Posts New Posts RSS Feed - clickable URL link
  FAQ FAQ  Forum Search   Register Register  Login Login

The AccuTerm forum has moved. Go to community.rocketsoftware.com to register for the new Rocket forum.

Forum Lockedclickable URL link

 Post Reply Post Reply
Author
Message
keepontrukin View Drop Down
Newbie
Newbie


Joined: October 05 2004
Location: United States
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote keepontrukin Quote  Post ReplyReply Direct Link To This Post Topic: clickable URL link
    Posted: January 21 2005 at 2:34am
Can Accuterm recognize clickable url's or email links?

Thanks
Tim
Back to Top
PSchellenbach View Drop Down
Admin Group
Admin Group

Moderator

Joined: December 15 2003
Location: United States
Status: Offline
Points: 2150
Post Options Post Options   Thanks (0) Thanks(0)   Quote PSchellenbach Quote  Post ReplyReply Direct Link To This Post Posted: January 24 2005 at 4:45am
Hi Tim -

AccuTerm can recognize URLs and email links using a feature called "mouse patterns". Mouse patterns are defined in a text file, using a grep-like syntax. Patterns are defined for either the left or right button, and an action for Click and Double Click can be assigned to each pattern. To use this feature for URLs and emails, a sample URL.MOU file is supplied in the ...\Atwin\Samples folder. To activate this feature, open the Settings, and click the Misc tab. Click the Advanced button and then browse for the desired pattern file. Click OK a couple of times, then save the session file.

The pattern file is a text file, with one pattern per line, and 4 fields separated by TAB characters. The first field is the button (1=left button, 2=right button); the second field is the pattern to match; third field is the click action and fourth field is the double-click action. Here is the URL.MOU file:

1      {[wW][wW][wW]\.[^ ]+\.[^ ]+}      [Shell "%WORD%"]

1     ^{[wW][wW][wW]\.[^ ]+\.[^ ]+}      [Shell "%WORD%"]
1      {[wW][wW][wW]\.[^ ]+\.[^ ]+}$     [Shell "%WORD%"]
1      {[hH][tT][tT][pP]\://[^ ]+}      [Shell "%WORD%"]
1     ^{[hH][tT][tT][pP]\://[^ ]+}      [Shell "%WORD%"]
1      {[hH][tT][tT][pP]\://[^ ]+}$     [Shell "%WORD%"]
1      {[^ ]+\@[^ ]+\.[^ ]+}      [Shell "mailto:%WORD%"]
1     ^{[^ ]+\@[^ ]+\.[^ ]+}      [Shell "mailto:%WORD%"]
1      {[^ ]+\@[^ ]+\.[^ ]+}$     [Shell "mailto:%WORD%"]


Note: its difficult to tell the difference between tabs and blanks. Also, the Shell command with a URL only works with AccuTerm 2K2, not with earlier versions.

Thanks,

Pete
Back to Top
Fabizio View Drop Down
Newbie
Newbie


Joined: March 13 2014
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote Fabizio Quote  Post ReplyReply Direct Link To This Post Posted: March 14 2014 at 6:59am
I used the url.mou file, it recognizes the email addresses but not the http or www web adresses, any clue why?

Also we have a couple of MAC computers running Parallels (windows shell). Is it a way when clicking on the email address in Accuterm to issue a command that triggers the email program on the MAC side?

Thanks.
Back to Top
PSchellenbach View Drop Down
Admin Group
Admin Group

Moderator

Joined: December 15 2003
Location: United States
Status: Offline
Points: 2150
Post Options Post Options   Thanks (0) Thanks(0)   Quote PSchellenbach Quote  Post ReplyReply Direct Link To This Post Posted: March 14 2014 at 7:22am
Hi Fabizio -

I don't know why the url.mou file would not recognized URLs. You might make a copy of the file, and edit the command, changing Shell to MsgBox. You should then see a message box showing you the URL. If the message box works, then there must be a problem with Windows opening the URL as a command.

As far as opening the Mac mail program, I don't know how to do this. Maybe there is a command line using Parallels to launch a Mac program. If so, you could change the command used in the url.mou file to use the Parallels command instead.

Thanks,

Pete
Back to Top
timinator View Drop Down
Newbie
Newbie


Joined: June 29 2007
Status: Offline
Points: 17
Post Options Post Options   Thanks (0) Thanks(0)   Quote timinator Quote  Post ReplyReply Direct Link To This Post Posted: March 14 2014 at 8:17am
I got this to work! Also is there a way to underline or color code the link so the user knows to click?

Thanks
Back to Top
PSchellenbach View Drop Down
Admin Group
Admin Group

Moderator

Joined: December 15 2003
Location: United States
Status: Offline
Points: 2150
Post Options Post Options   Thanks (0) Thanks(0)   Quote PSchellenbach Quote  Post ReplyReply Direct Link To This Post Posted: March 14 2014 at 11:46am
Hi Timinator -

Remember - this is simply green-screen text. Your application can highlight the text using the usual techniques - reverse, dim, blink, underline, etc. The exact highlight mechanism depends on the terminal emulation you are using.

Thanks,

Pete
Back to Top
Fabizio View Drop Down
Newbie
Newbie


Joined: March 13 2014
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote Fabizio Quote  Post ReplyReply Direct Link To This Post Posted: March 17 2014 at 3:47am
Originally posted by timinator timinator wrote:

I got this to work! Also is there a way to underline or color code the link so the user knows to click?

Thanks


You can achieve this by using the PRINT command

002 PRINT @(-13)  --> will start reverse print
003 PRINT "REVERSE"
004 PRINT @(-14)  --> will stop reverse print
PRINT @(-15)  --> will start underlined print
PRINT "UNDERSCORE"
PRINT @(-16) --> will stop underlined print

I hope this helps.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.03
Copyright ©2001-2019 Web Wiz Ltd.