How to Forward Click to External Browser?

Deploying to Mac OS? Ask Mac OS specific questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Ronaldo Garcia
Posts: 7
Joined: Wed Oct 08, 2008 10:48 pm
Contact:

How to Forward Click to External Browser?

Post by Ronaldo Garcia » Mon Mar 26, 2012 4:36 pm

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
Ronaldo Garcia
IguanaSoftware.com

Klaus
Posts: 14177
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: How to Forward Click to External Browser?

Post by Klaus » Mon Mar 26, 2012 5:04 pm

Hi Ron,

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


Best

Klaus

Ronaldo Garcia
Posts: 7
Joined: Wed Oct 08, 2008 10:48 pm
Contact:

Re: How to Forward Click to External Browser?

Post by Ronaldo Garcia » Mon Mar 26, 2012 5:12 pm

Hi

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


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


Thank You Klaus!
Ronaldo Garcia
IguanaSoftware.com

Klaus
Posts: 14177
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: How to Forward Click to External Browser?

Post by Klaus » Mon Mar 26, 2012 5:34 pm

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

Ronaldo Garcia
Posts: 7
Joined: Wed Oct 08, 2008 10:48 pm
Contact:

Re: How to Forward Click to External Browser?

Post by Ronaldo Garcia » Mon Mar 26, 2012 8:53 pm

Thank You Klaus

Let my check i let you know ...


Ron
Ronaldo Garcia
IguanaSoftware.com

Post Reply