Rocket Software Homepage
Forum Home Forum Home > AccuTerm Knowledge Base (read only) > Code Samples
  New Posts New Posts RSS Feed - Snippet to call Internet Explorer
  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 LockedSnippet to call Internet Explorer

 Post Reply Post Reply
Author
Message
acmedia View Drop Down
Senior Member
Senior Member


Joined: April 26 2005
Status: Offline
Points: 119
Post Options Post Options   Thanks (0) Thanks(0)   Quote acmedia Quote  Post ReplyReply Direct Link To This Post Topic: Snippet to call Internet Explorer
    Posted: April 25 2006 at 10:48am
A little code snippet I keep adding to things:

    ESC = CHAR(27)
    STX = CHAR(02)
    CR = CHAR(13)
    URL = "http://www.cnn.com"
    CMD = ESC : STX :'<'
    CMD := "C:\Program Files\Internet Explorer\IEXPLORE.EXE"
    CMD := " " : URL
    PRINT CMD

Change URL as needed.
Back to Top
LiveBlues View Drop Down
Groupie
Groupie


Joined: February 28 2005
Status: Offline
Points: 93
Post Options Post Options   Thanks (0) Thanks(0)   Quote LiveBlues Quote  Post ReplyReply Direct Link To This Post Posted: April 26 2006 at 2:50pm
Thanks for the post. I think it's great when we post little useful things that we have found out about this great program.

I did something similar a while back and used it for being able to track UPS and FedEx shipments from green screen applications. I posted it here

One thing that I wasn't aware of, that Pete pointed out in that thread is that you don't even need the explorer pathname. Just the URL. It uses whatever is the default browser on whatever computer runs it. That way it will run universally on any system and not be program dependent.

Keep up the good work, and keep posting useful stuff here!
Back to Top
acmedia View Drop Down
Senior Member
Senior Member


Joined: April 26 2005
Status: Offline
Points: 119
Post Options Post Options   Thanks (0) Thanks(0)   Quote acmedia Quote  Post ReplyReply Direct Link To This Post Posted: April 27 2006 at 5:22am
Originally posted by LiveBlues LiveBlues wrote:

One thing that I wasn't aware of, that Pete pointed out in that thread is that you don't even need the explorer pathname. Just the URL. It uses whatever is the default browser on whatever computer runs it. That way it will run universally on any system and not be program dependent.


So it does - which is a bit annoying as on this Windows box .html files are set to open with an editor rather than a browser.

I'd better take another look at what the control codes are really doing.
Back to Top
ShoreGeek View Drop Down
Newbie
Newbie


Joined: April 28 2006
Location: United States
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote ShoreGeek Quote  Post ReplyReply Direct Link To This Post Posted: April 28 2006 at 4:06am
Any idea why just using the "http://xxx" works on some PCs but not others?? It looks like IE is the default browser on all PCs.
Back to Top
LiveBlues View Drop Down
Groupie
Groupie


Joined: February 28 2005
Status: Offline
Points: 93
Post Options Post Options   Thanks (0) Thanks(0)   Quote LiveBlues Quote  Post ReplyReply Direct Link To This Post Posted: April 28 2006 at 3:26pm
I haven't run into that problem. So far it has worked on all of the pc's that I've tried it on.
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.