can some one help where i went wrong
Code: Select all
#SingleInstance Force
SetTitleMatchMode RegEx
Gui, +HwndIGUI2
Gui, IGUI2:-Caption +ToolWindow +Lastfound
Gui, IGUI2:Color, FF00FF
Gui, IGUI2:Add, Text, y10, IGUI2:
FrameShadow(IGUI2)
;ShadowBorder(IGUI2)
Gui, IGUI2:Show, xCenter y300 AutoSize, AHK GUI2
Gui, +HwndIGUI
Gui, -Caption +ToolWindow +Lastfound -Border
Gui, Color, White
Gui, Add, Text, y10, Status:
Gui, Add, Text, x+10 y10 w370 vStat, IGUI
Gui, Add, Edit, xm y+5 w400 vCmdEdit , Command
Gui +Delimiter`n
;FrameShadow(IGUI)
;ShadowBorder(IGUI)
Gui, Show, xCenter y200 AutoSize, AHK GUI
ShadowBorder(handle)
{
DllCall("user32.dll\SetClassLongPtr", "ptr", handle, "int", -26, "ptr", DllCall("user32.dll\GetClassLongPtr", "ptr", handle, "int", -26, "uptr") | 0x20000)
}
FrameShadow(handle) {
DllCall("dwmapi\DwmIsCompositionEnabled","IntP",_ISENABLED) ; Get if DWM Manager is Enabled
if !_ISENABLED ; if DWM is not enabled, Make Basic Shadow
DllCall("SetClassLong","UInt",handle,"Int",-26,"Int",DllCall("GetClassLong","UInt",handle,"Int",-26)|0x20000)
else {
VarSetCapacity(_MARGINS,16)
NumPut(1,&_MARGINS,0,"UInt")
NumPut(1,&_MARGINS,4,"UInt")
NumPut(1,&_MARGINS,8,"UInt")
NumPut(1,&_MARGINS,12,"UInt")
DllCall("dwmapi\DwmSetWindowAttribute", "Ptr", handle, "UInt", 2, "Int*", 2, "UInt", 4)
DllCall("dwmapi\DwmExtendFrameIntoClientArea", "Ptr", handle, "Ptr", &_MARGINS)
}
}