AutoHotkey Community

It is currently May 26th, 2012, 4:28 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: OnWindowCreation
PostPosted: June 28th, 2005, 11:11 am 
Offline

Joined: June 16th, 2005, 12:23 pm
Posts: 92
I have quite a few apps which, after being started, need some fiddling around. Mostly this has to do with window placement and the like. I know how to set up timers and WinWaitActive to handle this.

However this doesn't strike me as a particularly efficient method, given that I have to watch and wait for about a dozen of windows. (Yeah, AHK does the waiting, but you get the point.)

There is a hook for CBT (Computer based training) purposes which could be used for these and similar purposes, something along the lines of OnClipboardChange, but for window creation: a label called OnWindowCreation that is called whenever a main window comes into being.

Here are two links that seems to give some details:

http://www.microsoft.com/msj/0699/c/c0699.aspx

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/windowing/hooks/hookreference/hookfunctions/cbtproc.asp


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 28th, 2005, 12:47 pm 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
Thanks for the links; they seem to contain a lot of good info.

From what I can see, the level of complexity for this would be much higher than OnClipboardChange, while probably being useful to fewer users. But I could be wrong on both counts, so more comments are welcome.

In any case, I've made a note to research these concepts and links more. Thanks.


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: gamax92 and 3 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group