AutoHotkey Community

It is currently May 27th, 2012, 12:31 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: address bar firefox
PostPosted: September 5th, 2005, 5:25 pm 
Offline

Joined: September 5th, 2005, 5:20 pm
Posts: 11
Hi there, does anybody have a nifty solution to catch the address bar of firefox?

Just the title bar is not enough for the script I'm working on because it differs from the url to often.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 5th, 2005, 7:03 pm 
Offline

Joined: July 25th, 2005, 10:20 pm
Posts: 139
Location: Richmond, Virginia
The best way I've found is to use the F6 key to select the address bar. The F6 key toggles between the address bar and the main window.

Code:
F3::
Loop, 2
{
Send, {F6}
ControlGetFocus, CurrentFocus, A
If CurrentFocus = MozillaWindowClass1
Break
}
Return

You can also use Alt+D or Ctrl+L, but if the address bar is not available these will open the Open Web Location window.

Note: The address bar is not the only controls that bears the name MozillaWindowClass1. It's safer to press F6 before checking to see if the current control is MozillaWindowClass1.


Last edited by Litmus Red on September 5th, 2005, 7:07 pm, edited 1 time in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 5th, 2005, 7:06 pm 
Okay, quit simple actualy.

Great stuff, thanks Litmus Red !


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: September 6th, 2005, 8:05 pm 
Offline

Joined: August 26th, 2005, 3:35 pm
Posts: 2
Unfortunately, I don't think there's a way to get the contents of that address bar in Firefox. Has anyone found a way to do this?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 6th, 2005, 11:30 pm 
Offline

Joined: July 25th, 2005, 10:20 pm
Posts: 139
Location: Richmond, Virginia
Using my method, you'd have to use the clipboard.

Code:
F3::
Loop, 2
{
Send, {F6}
ControlGetFocus, CurrentFocus, A
If CurrentFocus = MozillaWindowClass1
Break
}
Send, ^c
Return


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot], BrandonHotkey, Google [Bot], iDrug, Leef_me, Ohnitiel, rjgatito, Yahoo [Bot] and 22 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