Rocket Software Homepage
Forum Home Forum Home > AccuTerm Knowledge Base (read only) > Green Screen
  New Posts New Posts RSS Feed - Display Images
  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 LockedDisplay Images

 Post Reply Post Reply
Author
Message
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 Topic: Display Images
    Posted: March 13 2014 at 7:31am
I finally figured how to display an image on my "green screen". I used:

DIR="\\d3ntserver\BackupDrive\Photo\"
PRINT ESC:STX:'iL,':DIR:COMM.CD:".JPG":',':'43,4,28,10,0,I':CR:

Where COMM.CD is input by the user.

It works perfectly fine grabbing the picture from our local network but what I really want is to use an URL instead as the path to the the photo. I already tried to change the DIR variable to the URL but no picture is displayed.

Is there anything different that I need to do?
Back to Top
palinder View Drop Down
Groupie
Groupie


Joined: June 08 2012
Location: United States
Status: Offline
Points: 51
Post Options Post Options   Thanks (0) Thanks(0)   Quote palinder Quote  Post ReplyReply Direct Link To This Post Posted: March 13 2014 at 7:39am
You can execute any windows command by using...
CRT ESC:STX:'<':windowscommand:CHAR(13):

Where windows command might be a URL, the full path to a pdf, excel file, word file, jpg, bmp, etc. etc. etc.

The client's PC will open the file up with the application associated with the file extension.

For a URL, it will open it with the client's default browser.

You can also use '>' instead of '<' if you wish. I think '<' returns control back to accuterm. '>' doesn't return control back to accuterm until the windows command completes. I may have this backwards though

Hope this helps.

If you're still using green screens, and you want to "GUI-ize" those green screens, please take a look at Ashwood Computer's mvTools product. If interested, you can call me (Pat Linder) at 513-563-2800
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 13 2014 at 11:25am
Hi Fabizio -

You should be able to use a URL instead of a network file path, as the picture source. I don't recall the first release of AccuTerm that supported URLs but I know at least as far back as AccuTerm 2K2 5.3c.

Here's a small sample you can try out:
EQU ESC TO CHAR(27), STX TO CHAR(2), CR TO CHAR(13)

PATH='http://www.asent.com/demo/pix/logo.jpg'
PRINT ESC:STX:'iL,':PATH:',43,4,28,10,0,I':CR:


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 3:57am
That wasn't exactly what I was looking for but I did apply your suggestion to a program I have and it worked out great. Thanks.
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 4:00am
Originally posted by PSchellenbach PSchellenbach wrote:

Hi Fabizio -

You should be able to use a URL instead of a network file path, as the picture source. I don't recall the first release of AccuTerm that supported URLs but I know at least as far back as AccuTerm 2K2 5.3c.

Here's a small sample you can try out:
EQU ESC TO CHAR(27), STX TO CHAR(2), CR TO CHAR(13)

PATH='http://www.asent.com/demo/pix/logo.jpg'
PRINT ESC:STX:'iL,':PATH:',43,4,28,10,0,I':CR:


Thanks,

Pete


Hey Pete, thank you for your answer. I use the url as my path and it is working fine. Thank you again.
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.