Web browser started from a ReAction GUI [ SOLVED ]

3 posts / 0 new
Last post
Massi
Massi's picture
Offline
Last seen: 4 years 6 months ago
Joined: 2012-03-28 17:16
Web browser started from a ReAction GUI [ SOLVED ]

On a certain event (say button click), I need to open the (default) web browser pointing to a desired url.

Any help?

Thanks, greetings

gazelle
gazelle's picture
Offline
Last seen: 1 year 9 months ago
Joined: 2011-04-13 12:52
Check the description of the

Check the description of the launch-handler (SYS:Documentation/handlers/launch-handler.doc):

  1. EXAMPLE
  2. This example will demonstrate how to call the handler from within an
  3. application to asyncronously start a web browser on a link.
  4.  
  5. BPTR scb = IDOS->Open("URL:http://www.domain.com",MODE_OLDFILE);
  6.  
  7. if( scb ) /* Check return value and Close() immediately. */
  8. {
  9. IDOS->Close(scb);
  10. IDOS->PutStr("Client started successfully.\n");
  11. }
  12. else
  13. {
  14. IDOS->PutStr("Error: Unable to start client.\n");
  15. }
Massi
Massi's picture
Offline
Last seen: 4 years 6 months ago
Joined: 2012-03-28 17:16
It works, thanks

It works, thanks

Log in or register to post comments