Page 1 of 1

How to Forward Click to External Browser?

Posted: Mon Mar 26, 2012 4:36 pm
by Ronaldo Garcia
Hello

I like to know how to forward the links in revbrowser to a external browser like safari, i don't have too much experience using runrev. any ideas are welcome,

Thank You


Ron



local sBrowserId

put the windowid of this stack into tWinID

-- Open the browser, using the windowId and initial url
put revBrowserOpen(tWinID,"myweb com") into sBrowserId

-- Set some basic properties for the browser
revBrowserSet sBrowserId, "scrollbars", "false"
revBrowserSet sBrowserId, "showborder","false"
revBrowserSet sBrowserId, "rect",rect of img "campo_web"
revBrowserSet sBrowserId, "contextmenu", "false"
revBrowserSet sBrowserId, "newwindow", "false"
revBrowserSet sBrowserId, "messages", "true"

wait 100

revBrowserStop sBrowserId

Re: How to Forward Click to External Browser?

Posted: Mon Mar 26, 2012 5:04 pm
by Klaus
Hi Ron,

I'm afraid you cannot "pass" mouseevents to Safari from inside the browser object.
Or am I misunderstanding you?


Best

Klaus

Re: How to Forward Click to External Browser?

Posted: Mon Mar 26, 2012 5:12 pm
by Ronaldo Garcia
Hi

I try to open the link in an external browser like ... any ideas?


launch url "http://www.runrev.com"


Thank You Klaus!

Re: How to Forward Click to External Browser?

Posted: Mon Mar 26, 2012 5:34 pm
by Klaus
Hi Ron,

AHA! :-)

OK, check the "browserBeforeNavigate" message in the dictionary.
This way you can "catch" the link clicked in the browser object and use to launch Safari


Best

Klaus

Re: How to Forward Click to External Browser?

Posted: Mon Mar 26, 2012 8:53 pm
by Ronaldo Garcia
Thank You Klaus

Let my check i let you know ...


Ron