Mechaflash Posted March 1, 2012 Share Posted March 1, 2012 Is there a way to tell an application to open its child windows in the same monitor as its parent? I've already tried yelling at the child to stay with its parent, and all the parent did was threaten to sue me for emotional child abuse... Spoiler “Hello, ladies, look at your man, now back to me, now back at your man, now back to me. Sadly, he isn’t me, but if he stopped using ladies scented body wash and switched to Old Spice, he could smell like he’s me. Look down, back up, where are you? You’re on a boat with the man your man could smell like. What’s in your hand, back at me. I have it, it’s an oyster with two tickets to that thing you love. Look again, the tickets are now diamonds. Anything is possible when your man smells like Old Spice and not a lady. I’m on a horse.” Link to comment Share on other sites More sharing options...
sleepydvdr Posted March 2, 2012 Share Posted March 2, 2012 My best advice is to use WinGetPos to find the parent's position and WinMove to move the child window to a relative position to the parent window. #include <ByteMe.au3> Link to comment Share on other sites More sharing options...
Mechaflash Posted March 2, 2012 Author Share Posted March 2, 2012 @sleepydvdr yeah that's what I do right now. It's just the transition isn't as smooth as I would like it to be. I'm picky XD Spoiler “Hello, ladies, look at your man, now back to me, now back at your man, now back to me. Sadly, he isn’t me, but if he stopped using ladies scented body wash and switched to Old Spice, he could smell like he’s me. Look down, back up, where are you? You’re on a boat with the man your man could smell like. What’s in your hand, back at me. I have it, it’s an oyster with two tickets to that thing you love. Look again, the tickets are now diamonds. Anything is possible when your man smells like Old Spice and not a lady. I’m on a horse.” Link to comment Share on other sites More sharing options...
ProgAndy Posted March 2, 2012 Share Posted March 2, 2012 (edited) Hi, you could try to use SetWindowsHookEx with a CBT hook. Then intercept HCBT_CREATEWND and modify the window position in the LPARAM-structure Edit: You will have to create a DLL (e.g. FreeBasic, FreePascal) for that. Edited March 2, 2012 by ProgAndy *GERMAN* [note: you are not allowed to remove author / modified info from my UDFs]My UDFs:[_SetImageBinaryToCtrl] [_TaskDialog] [AutoItObject] [Animated GIF (GDI+)] [ClipPut for Image] [FreeImage] [GDI32 UDFs] [GDIPlus Progressbar] [Hotkey-Selector] [Multiline Inputbox] [MySQL without ODBC] [RichEdit UDFs] [SpeechAPI Example] [WinHTTP]UDFs included in AutoIt: FTP_Ex (as FTPEx), _WinAPI_SetLayeredWindowAttributes Link to comment Share on other sites More sharing options...
Mechaflash Posted March 5, 2012 Author Share Posted March 5, 2012 @ProgAndy I'll play around with this. Thanks! Spoiler “Hello, ladies, look at your man, now back to me, now back at your man, now back to me. Sadly, he isn’t me, but if he stopped using ladies scented body wash and switched to Old Spice, he could smell like he’s me. Look down, back up, where are you? You’re on a boat with the man your man could smell like. What’s in your hand, back at me. I have it, it’s an oyster with two tickets to that thing you love. Look again, the tickets are now diamonds. Anything is possible when your man smells like Old Spice and not a lady. I’m on a horse.” Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now