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 

control focus in IE

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





PostPosted: Fri Apr 15, 2005 11:23 pm    Post subject: control focus in IE Reply with quote

I need to be beable to hit a key have to to a text box in IE. I have tried using the ControlFocus, but Winspy says all the control names are the same (Internet Explorer_Server1). I left it blank to go to the top most control, but that didn't help. Is there any way of doing is?
Back to top
Titan



Joined: 11 Aug 2004
Posts: 5390
Location: /b/

PostPosted: Fri Apr 15, 2005 11:35 pm    Post subject: Reply with quote

IE is a control itself so edit fields won't really be seen (programatically?). Depending on what you're doing, Rajat's PostMsg [Tut] would be helpful.
_________________

Back to top
View user's profile Send private message Visit poster's website
cstone
Guest





PostPosted: Sat Apr 16, 2005 12:04 am    Post subject: control focus in IE Reply with quote

What i would like to do is to be able to hit the home key, and then have the focus to to a desinated text box. if i use MouseClick and set the coords to the text box, since the texbox never moves, it will work that way, but i would rather just set the focus to the text box rather the haveing the mouse move.
Back to top
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10480

PostPosted: Sat Apr 16, 2005 1:17 am    Post subject: Reply with quote

You could try using ControlClick in its coordinate mode, but I am pessimistic that it would work with MSIE:

ControlClick, X55 Y33, WinTitle ; Note no comma between X & Y coordinates.
Back to top
View user's profile Send private message Send e-mail
Jon



Joined: 28 Apr 2004
Posts: 373

PostPosted: Sat Apr 16, 2005 10:55 am    Post subject: Reply with quote

You could send javascript to IE's address bar-

http://autohotkey.com/forum/viewtopic.php?p=5167#5167
http://autohotkey.com/forum/viewtopic.php?t=923webpage+javascript
Back to top
View user's profile Send private message Send e-mail
cstone



Joined: 16 Apr 2005
Posts: 28

PostPosted: Mon Apr 18, 2005 8:46 pm    Post subject: Reply with quote

The way you show ControlClick is much like MouseClick, except you need to know the control name. and for the java script, the application does not alow interaction with the address bar so i am unable to use that.

If I could as the programer the name of the control, would that work, or since IE is a control itself would that not work?
_________________
cstone
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