Since the above is not possible then how would Valuater and holger code below be modified to:
1. Remove Valuater xskin
2. show notepad inside a default GUI
I've studied the code and I do not undstand what to remove and what to keep.
#include <GUIConstantsEx.au3>
#include <XSkin.au3>
;#include <XSkinShell.au3>
Dim $loop, $Myrunner
; folder of skin
$Skin_Folder = @ScriptDir & "\Skins\Universal"
$XSkinGui = XSkinGUICreate ( "My GUI", 400, 450, $Skin_Folder)
$Icon_Folder = @ScriptDir & "\Skins\Default"
Local $XhWnd = 0, $XstPID = DllStructCreate("int"), $XSWinList, $XhWinSize, $XSdll, $XPID, $XPID2, $XR_Ret[3], $Xh_ret, $oxStyle, $ostyle
$XPID = Run($XR_Program, '', @SW_HIDE)
Do
$XSWinList = WinList()
For $i = 1 To $XSWinList[0][0]
If $XSWinList[$i][0] <> "" Then
DllCall("user32.dll", "int", "GetWindowThreadProcessId", "hwnd", $XSWinList[$i][1], "ptr", DllStructGetPtr($XstPID))
If DllStructGetData($XstPID, 1) = $XPID Then
$XhWnd = $XSWinList[$i][1]
ExitLoop
EndIf
EndIf
Next
Sleep(20)
Until $XhWnd <> 0
$XSdll = ""
$XstPID = 0
If $XhWnd <> 0 Then
$XhWinSize = WinGetPos($XhWnd)
$XPID2 = XSkinGUICreate ( $XR_Title, ($XhWinSize[2]) + ($tile_size * 2) , ($XhWinSize[3]) + ($tile_size * 2), $Skin_Folder)
If FileExists($Icon_Folder) Then $Xh_ret = XSkinIcon ($XPID2)
$oxStyle = DllCall("user32.dll", "int", "GetWindowLong", "hwnd", $XPID2, "int", -16)
DllCall("user32.dll", "long", "SetWindowLong", "hwnd", $XPID2, "int", -16, "long", BitOR($oxStyle[0], $WS_CLIPCHILDREN))
$ostyle = DllCall("user32.dll", "long", "GetWindowLong", "hwnd", $XhWnd, "int", -16)
DllCall("user32.dll", "int", "SetParent", "hwnd", $XhWnd, "hwnd", $XPID2)
DllCall("user32.dll", "long", "SetWindowLong", "hwnd", $XhWnd, "int", -16, "long", BitOR($WS_POPUP, $WS_CHILD, $WS_VISIBLE, $WS_CLIPSIBLINGS))
GUISetState()
WinMove($XhWnd, "", $tile_size, $tile_size)
WinSetState($XhWnd, "", @SW_SHOW)
WinActivate($XhWnd)
$XR_Ret[0] = $XPID2
$XR_Ret[1] = $XhWnd
$XR_Ret[2] = $Xh_ret[1]
Return $XR_Ret
EndIf