Hi guys, check it out this:
#include <GuiConstants.au3>
#include <WindowsConstants.au3>
$Main_GUI = GUICreate("Main", 500, 500)
GUISetState(@SW_SHOW, $Main_GUI)
$Child_GUI = GUICreate("Child", 200, 100, 10, 50)
GUISetState(@SW_SHOW, $Child_GUI)
DllCall("user32.dll", "int", "SetParent", "hwnd", $Child_GUI, "hwnd", $Main_GUI)
While 1
Switch GUIGetMsg()
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
I want to do the exact opposite, i'd like to have the Main_GUI always on focus