Last active
August 29, 2015 14:04
-
-
Save sidola/7d84f313e1dc8cf79e53 to your computer and use it in GitHub Desktop.
AHK - Sets a GUI as a child to a parent, via parent window-name
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SetParentByTitle(Window_Title_Text, Gui_Number) ; F | |
| { | |
| WinGetTitle, Window_Title_Text_Complete, %Window_Title_Text% | |
| Parent_Handle := DllCall( "FindWindowEx", "uint",0, "uint",0, "uint",0, "str", Window_Title_Text_Complete) | |
| Gui, %Gui_Number%: +LastFound | |
| Return DllCall( "SetParent", "uint", WinExist(), "uint", Parent_Handle ) | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment