1. Gene Kanten
  2. PowerBuilder
  3. Friday, 4 March 2022 23:14 PM UTC

I would like to launch the default browser with a specified URL.

I tried using a StaticHyperLink and that works fine when I click on it, but if I try to launch it by triggering the Clicked() event, it doesn't work. The event gets executed but the browser doesn't launch.

What am I missing?

What would  be the best way to handle launching the default browser with a specified URL without any user intervention (i.e. having to click on a link)?

Using PowerBuilder 2019 R3,  Windows 10 Enterprise 21H2 Build 19044.1526

 

 

 

 

 

 

mike S Accepted Answer Pending Moderation
  1. Monday, 7 March 2022 17:54 PM UTC
  2. PowerBuilder
  3. # 1

you can also use the shellexecute windows api, which is what i use instead of INET 

 

it looks something like this:

setnull(ll_handle) 

ShellExecuteA(ll_handle, 'open', ls_url, '', '', 0)

Comment
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Friday, 4 March 2022 23:46 PM UTC
  2. PowerBuilder
  3. # 2

Hi Gene;

   Use the INET object class's HyperLinkToUrl() method.

Regards ... Chris

Comment
  1. John Fauss
  2. Saturday, 5 March 2022 02:33 AM UTC
Chris & Armeen - The INET object has been tagged as "Obsolete", which I understand to mean "Obsolete features are still available to use, but are no longer eligible for technical support and will no longer be enhanced." The documentation on the INET object states that the WebBrowser control and HTTPClient object are the supported replacements for the INET object.



I submit that it appears there is not a suitable replacement for ALL of the functionality of the INET object, else why is new development using this obsolete object being suggested and/or recommended? If Appeon is unable or unwilling to provide a suitable replacement for situations like the one that Gene is reporting here (and the one that Dawn Browneyes also asked about today) with a fully-supported solution, then perhaps the obsolete status of the INET object should be reconsidered.
  1. Helpful
  1. Armeen Mazda @Appeon
  2. Saturday, 5 March 2022 02:54 AM UTC
We are working on replacement for the most important features of Inet object that WebBrowser control and HTTPClient object don’t resolve.
  1. Helpful 1
  1. John Fauss
  2. Saturday, 5 March 2022 05:54 AM UTC
That's great news, Armeen! Thank you for communicating this information.
  1. Helpful
There are no comments made yet.
Armeen Mazda @Appeon Accepted Answer Pending Moderation
  1. Friday, 4 March 2022 23:36 PM UTC
  2. PowerBuilder
  3. # 3

How about loading the URL in WebBrowser control embedded in your app?  https://docs.appeon.com/pb2019r3/objects_and_controls/ch02s150.html

Comment
  1. Chris Pollach @Appeon
  2. Saturday, 5 March 2022 02:43 AM UTC
Hi Gene;

If you like, try seeing if this PB App I wrote works on your URL videos.

http://chrispollach.blogspot.com/2021/02/multimedia.html

If OK, you're welcome to adopt the code to your use. The App is built from my free open source framework.

Regards ... Chris





  1. Helpful
  1. Gene Kanten
  2. Monday, 7 March 2022 17:18 PM UTC
I ended up using the Run command.

I will open a support ticket so you can look at the video issue.
  1. Helpful
  1. Armeen Mazda @Appeon
  2. Monday, 7 March 2022 17:23 PM UTC
Thanks.
  1. Helpful
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.