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 

ControlGetFocus returning a different result than ControlGet

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



Joined: 12 Sep 2005
Posts: 188

PostPosted: Thu Mar 15, 2007 10:01 pm    Post subject: ControlGetFocus returning a different result than ControlGet Reply with quote

Would someone please explain why these return different control names in some applications?

Code:
numpad7::
   ControlGetFocus, FocusedControl, A
   msgbox %FocusedControl%
return

numpad8::
   MouseGetPos, , , id, FocusedControl   ;Get the ID of the control beneath the mouse
   msgbox %FocusedControl%
return
Back to top
View user's profile Send private message
jonny



Joined: 13 Nov 2004
Posts: 3004
Location: Minnesota

PostPosted: Thu Mar 15, 2007 11:19 pm    Post subject: Reply with quote

Why should the currently focused control be the same as the control under the mouse?
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