Jump to content
Sign in to follow this  

exe as child

Recommended Posts


is it possible to use a exe as a child in a gui

Share this post

Link to post
Share on other sites


Or call SetParent directly from user32.dll

I'll post an example in a minute.


#Include <GUIConstants.au3>
$hGUI = GUICreate("Test")
$hGUI2 = DllCall("user32.dll", "hwnd", "SetParent", "hwnd", WinGetHandle("Untitled - Notepad"), "hwnd", $hGUI)
Until GUIGetMsg() = -3

Works, but I always seem to have trouble with the window not wanting to repaint after it's been set as a child, so you might have to mouse over the menu items to find them, and then the Edit box.

Edited by KentonBomb

Share this post

Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.