How can I retrieve the URL from an external browser from within Matlab?

4 views (last 30 days)
I'm new to Matlab, so my question may be a bit basic. I know of Matlab's internal browser (via, say, the 'web' command), but it has given me a problem by sometimes not detecting when the user clicks next on an online survey I administer through Matlab. I've never had that problem with any external browser (Firefox, Chrome, IE). I want to close the browser automatically when the user gets to the end of the survey. I know the url that the user will go to after finishing the survey. So right now using the Matlab browser, I just use: [s,bwser] = web(url2, '-new', '-notoolbar', '-noaddressbox'); cloc = get(bwser, 'currentLocation'); and then check if cloc is equal to the given url. I would love to do the same thing with an external browser. I know how to call the external browser and assign it a URL, but after the participant clicks on a link on it, I don't know how to retrieve the current URL from that browser. Any ideas?

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!