fisofo 0 Posted January 14, 2007 Haven't been able to find this asked yet, but is there a way to catch a maximize event from a window? Something along the lines of some GUIRegisterMsg or something? I'm asking because someone asked me if I could capture that and interpret it to "maximize to half the screen" rather than a normal maximize to the full screen. I've actually seen this done via other window control programs (non-autoit), so i'm guessing there's a way. thanks! Share this post Link to post Share on other sites
CoePSX 4 Posted January 14, 2007 (edited) Take a look at this:http://msdn2.microsoft.com/en-us/library/m...hgetmessagehookIf I find something else more useful I edit the post.EDIT: The message you want to hook is WM_SIZE.http://msdn.microsoft.com/library/default....ges/wm_size.asp Edited January 14, 2007 by CoePSX [quote name='Valik' post='301213' date='Jan 31 2007, 10:36 PM']You seem to have a habit of putting things in the wrong place. I feel sorry for any female you attempt to have sex with.[/quote][font="Lucida Sans Unicode"]╔══════════════════════════════╗║░░██░░░░░░░░██░░███░░░████░░░█║║░█░░█░░██░░█░░█░█░░█░█░░░░█░█░║║░█░░░░█░░█░████░███░░░██░░░█░░║║░█░░█░█░░█░█░░░░█░░░░░░░█░█░█░║║░░██░░░██░░░██░░█░░░░███░█░░░█║╚══════════════════════════════╝[/font] Share this post Link to post Share on other sites
fisofo 0 Posted January 14, 2007 Take a look at this:http://msdn2.microsoft.com/en-us/library/m...hgetmessagehookIf I find something else more useful I edit the post.EDIT: The message you want to hook is WM_SIZE.http://msdn.microsoft.com/library/default....ges/wm_size.aspNice, thank you. I'll post if I am able to do it. Share this post Link to post Share on other sites
fisofo 0 Posted January 17, 2007 heh.... I got lost I'm afraid Perhaps I'll come back to this some day when i understand that side of coding a bit more... Share this post Link to post Share on other sites