AutoHotkey Community

It is currently May 27th, 2012, 11:55 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: November 12th, 2005, 12:12 pm 
Offline

Joined: October 1st, 2005, 11:26 pm
Posts: 43
Location: Finland
Dear fellow scripters, a while ago I was looking for a solution to retrieve the URL from a firefox window. While browsing the forums I soon found out that there was no clean solution unfortunately.

Well do I have news for all of you :D I just found a firefox extension (URL2Title) that adds the URL to the windows title. Here's the link to the author's website: http://xeen.reversestudios.com/?page=u2t

_________________
For the music lover who can sit and enjoy the sound of someone else's evolving nightmare.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 12th, 2005, 2:43 pm 
Offline

Joined: December 15th, 2004, 10:24 pm
Posts: 303
Location: United States
songsoverruins wrote:
a while ago I was looking for a solution to retrieve the URL from a firefox window. While browsing the forums I soon found out that there was no clean solution unfortunately.

i dont know how long a while ago this was, but there is a discussion thread which shows there is a sufficient, pure-Ahk solution to this.

_________________
1) The Open Source Definition http://www.opensource.org/docs/definition_plain.php

2) Intuitive. Logical. Versatile. Adaptable. <<AutoHotkey>>


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 12th, 2005, 3:45 pm 
Offline

Joined: October 1st, 2005, 11:26 pm
Posts: 43
Location: Finland
@ Decarlo110: Admittedly, that was a while ago (some two weeks). I had a look at the post you mentioned but that's still a fairly complex solution in which you switch to the address bar to retrieve the URL. The disadvantage of this is that you can't return the focus to a box in which you were typing.

I was trying to create shortcuts to often used buttons in my inbox (so that e.g. pressing RIGHT takes you to the next e-mail, or HOME back to the inbox, but only when the URL is this and this. This meant that the programme switched to the address bar every time to check the URL and even if it wasn't the one needed to do any of the abovementioned actions, you still had lost the focus in the box in which you were typing.

Installing this extension means that checking a URL is as simple as
IfWinActive, (name-of-window-plus-(part-of)-URL). Probably the best thing is that the URL only appears in the windows title after the page is done loading, so no separate checks are needed for that as well.

_________________
For the music lover who can sit and enjoy the sound of someone else's evolving nightmare.


Last edited by songsoverruins on November 12th, 2005, 4:20 pm, edited 1 time in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 12th, 2005, 4:08 pm 
Offline

Joined: December 15th, 2004, 10:24 pm
Posts: 303
Location: United States
I didn't know about those other details in the first post. In any event, thanks for sharing the Firefox URL-retrieval solution.

It seems that the developers of Firefox purposely made things like this difficult, to defeat downloaded malware scripts or make it difficult for those from having their effect. But the search for convenience will chip away at such built-in security enhancements. These things will continue to play out... i dont know if there will ever be a stable balance.

_________________
1) The Open Source Definition http://www.opensource.org/docs/definition_plain.php

2) Intuitive. Logical. Versatile. Adaptable. <<AutoHotkey>>


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 3 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group