Page 1 of 1
Help with getting url from browser widget
Posted: Tue Aug 09, 2016 10:30 pm
by karimariesk
Hello! i've been searching but cant find a way to get the current url of the browser widget. i found how to set it, and tried to work from there... but still cant find a way that works. all i want to do is get the current url from the browser and put it in a variable. Any ideas?
Thanks!
Re: Help with getting url from browser widget
Posted: Tue Aug 09, 2016 11:00 pm
by Klaus
Hi karimariesk,
(almost) everything you can SET, you can also GET again!
So this works for me, at least on the desktop!):
Code: Select all
put the URL of widget "myBrowser" into tUrl
Best
Klaus
Re: Help with getting url from browser widget
Posted: Wed Aug 10, 2016 5:38 am
by karimariesk
you are a life saver! i tried that, BUT without the "the" infront of the url. i tried using set, (set tUrl to url of widget "browser") but it just gave me an error.
thank you Klaus!!
Re: Help with getting url from browser widget
Posted: Wed Aug 10, 2016 10:38 am
by Klaus
Hi karimariesk,
karimariesk wrote: i tried that, BUT without the "the" infront of the url. i tried using set, (set tUrl to url of widget "browser") but it just gave me an error.
well, LC is not C or VB or whatever! I only meant that you can retrieve (almost) every value that you have set before in LC.
Best
Klaus