The following:
ControlUI
text = getText("http*");
Returns the first url encountered.
Is it possible to return the last one encountered instead?
I figured it might have to do with regex, but my trials have led to more than enough errors.
Along the same vein, would it be possible to add all urls to a list?
Thanks.
Retrieving last url
Moderator: Martin
Re: Retrieving last url
The getText function with a pattern returns the text of the first matching element only. You would have to use getText(x, y) to search for other elements. The next version of Automagic adds a new function that retrieves the entire text on screen. You could then use a regular expression to extract all urls.
Regards,
Martin
Regards,
Martin
Re: Retrieving last url
Martin, hello, I am really excited to read that the next version of automagic will be able to retrieve all text. I'm tempted to ask when the next release will be, but know that it's not proper to ask for release dates. I'm loving the app and already have it 5 stars a while back. Thanks again
Re: Retrieving last url
Hi,
The release will probably be within the next few weeks if I don't find any serious bugs. The EAP build of the next version available in the EAP forum is feature complete and should be quite stable (I still highly recommend to create a backup before you install the EAP version).
Regards,
Martin
The release will probably be within the next few weeks if I don't find any serious bugs. The EAP build of the next version available in the EAP forum is feature complete and should be quite stable (I still highly recommend to create a backup before you install the EAP version).
Regards,
Martin