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?

 
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 Jul 12, 2007 4: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: 6772
Location: Pacific Northwest, US

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

Another script that never steals focus:
http://www.autohotkey.com/forum/viewtopic.php?t=18378
_________________
Unless otherwise noted, all code is untested.
Common Answers: 1.(Loops, Viruses, etc.) 2. Search 3.RTFM
Back to top
View user's profile Send private message Visit poster's website
Mistrel



Joined: 12 Sep 2005
Posts: 188

PostPosted: Thu Jul 12, 2007 4: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:   
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