Print Page | Close Window

Display Images

Printed From: Rocket Software
Category: AccuTerm Knowledge Base (read only)
Forum Name: Green Screen
Forum Description: General terminal emulation questions
URL: https://forum.asent.com/forum_posts.asp?TID=2400
Printed Date: March 26 2026 at 8:51pm
Software Version: Web Wiz Forums 12.03 - http://www.webwizforums.com


Topic: Display Images
Posted By: Fabizio
Subject: Display Images
Date 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?



Replies:
Posted By: palinder
Date 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


Posted By: PSchellenbach
Date 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


Posted By: Fabizio
Date 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.


Posted By: Fabizio
Date 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.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.03 - http://www.webwizforums.com
Copyright ©2001-2019 Web Wiz Ltd. - https://www.webwiz.net