AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

bring focus to part of IE but don't click it?

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
brotherS



Joined: 01 Jun 2005
Posts: 147

PostPosted: Fri Jan 05, 2007 12:20 pm    Post subject: bring focus to part of IE but don't click it? Reply with quote

Hi!

I'm using AHK so that I only have to type ".mail" to get "http://mail.google.com/mail/". This always used to work fine and still does.

What doesn't work anymore since a month or two is that I can use GoogleMail's keyboard shortcuts right after the page loaded. I now have to hit TAB three times to give focus to the main area of IE (the area where IE displays www content, no idea what the technical term for it is).

Since I don't want to use MouseClick - is there some better way than making AHK hit TAB three times to bring focus to that area?

(Firefox may not have this problem (I didn't check), but for several reasons I prefer to use IE for GoogleMail)
_________________
DonationCoder.com brings AHK to the newbies!
Fan of AutoHotkey? Consider an occasional donation to its developer, Chris Mallett.
Back to top
View user's profile Send private message
PhiLho



Joined: 27 Dec 2005
Posts: 6721
Location: France (near Paris)

PostPosted: Fri Jan 05, 2007 12:28 pm    Post subject: Reply with quote

I would try something like ControlFocus Internet Explorer_Server1, ahk_class IEFrame
_________________
vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2")
Back to top
View user's profile Send private message Visit poster's website
brotherS



Joined: 01 Jun 2005
Posts: 147

PostPosted: Tue Jan 09, 2007 11:06 am    Post subject: Reply with quote

Thanks, sounds like a good idea! Will try it later, it will be part of a bigger script.
_________________
DonationCoder.com brings AHK to the newbies!
Fan of AutoHotkey? Consider an occasional donation to its developer, Chris Mallett.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group