Example:
Getting the current URL in a Web Browser Object

Actions used:

Text Object - Set Text

Web Browser Object - Get Property

In this example, we'll get the current URL being navigated to (or shown) in a Web Browser Object, and display that URL in a Text Object on the page. We'll put all these actions on the Web Browser Object's "On Before Navigate" event, so the URL will change in the Text Object as soon as the user clicks on a link in the Web Browser Object.

Here's what the action list looks like:

First, we use a "Web Browser Object - Get Property" action to get the current URL of the Web Browser Object called "WB - Main", and store it in a variable called %CurrentURL%.

Then, we use a "Text Object - Set Text" action to display the contents of %CurrentURL% in a Text Object called "T - Current URL" on the same page.

Here's a link to the finished example, as an AutoPlay Media Studio 4.0 page that you can import into your own project: