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 

Sending mouse and keyboard events to a child window?

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



Joined: 12 Sep 2005
Posts: 190

PostPosted: Thu Jul 12, 2007 3:11 am    Post subject: Sending mouse and keyboard events to a child window? Reply with quote

I'm trying to disable mouse/keyb events on the child window without actually disabling it so that it functions normally but won't steal focus from the parent when clicked on.

My question is, is there a way to still send events to it without giving it focus? I can already detect when the mouse is over the child window and have an empty hotkey assigned to it. Now all I need is a way to send mouse events and keystrokes without it taking focus.

I'm using this method to set one window as the child of another.
http://www.autohotkey.com/forum/topic8906.html

Thanks. Smile
Back to top
View user's profile Send private message
engunneer



Joined: 30 Aug 2005
Posts: 8255
Location: Maywood, IL

PostPosted: Thu Jul 12, 2007 3:32 am    Post subject: Reply with quote

Another script that never steals focus:
http://www.autohotkey.com/forum/viewtopic.php?t=18378
_________________

(Common Answers)
Back to top
View user's profile Send private message Visit poster's website
Kahz



Joined: 12 Sep 2005
Posts: 190

PostPosted: Thu Jul 12, 2007 3:48 am    Post subject: Reply with quote

That method of preventing focus is very nice except that it only functions on the parent script and not the child. It also doesn't prevent focus when a keystroke is sent to it.

Or better yet, if I could simply activate the child window without the parent losing focust (bar greying out) that would be super. The whole point is to prevent the parent window from greying out when the child window is in focus but still be able to send input to the child, like a normal application made of a parent and child windows, like photoshop.

Is there some way to attach it to the same process?
Back to top
View user's profile Send private message
Display posts from previous:   
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