diff --git a/ConvertFuncs.ahk b/ConvertFuncs.ahk index 3f48ed35..2aac73d9 100644 --- a/ConvertFuncs.ahk +++ b/ConvertFuncs.ahk @@ -1702,6 +1702,7 @@ _Gui(p) { ControlLabel := "" ControlName := "" ControlObject := "" + GuiOpt := "" if (p[1] = "New" && gGuiList != "") { if (!InStr(gGuiList, gGuiNameDefault)) { @@ -1759,8 +1760,7 @@ _Gui(p) { } } } - if (RegExMatch(Var3, "i)\b\+?\bhwnd[\w]*\b")) { - RegExMatch(Var3, "i)\+?HWND(.*?)(?:\s|$)", &match) + if (RegExMatch(Var3, "i)\+?HWND(.*?)(?:\s|$)", &match)) { ControlHwnd := match[1] Var3 := StrReplace(Var3, match[]) if (ControlObject = "" && Var4 != "") { @@ -1771,11 +1771,16 @@ _Gui(p) { } gmGuiCtrlObj["%" ControlHwnd "%"] := ControlObject gmGuiCtrlObj["% " ControlHwnd] := ControlObject + } else if (RegExMatch(Var2, "i)\+?HWND(.*?)(?:\s|$)", &match)) + && (RegExMatch(Var1, "i)(?