Code: Select all
pattern_opts := (A_AhkVersion < "2") ? "iO)" : "i)"
RegExMatch(Options, pattern_opts "C(?!(entre|enter))([a-f\d]+)", Colour)
Code: Select all
;before
(Colour2 ? Colour2 : "ff000000")
;after
(Colour && Colour[2] ? Colour[2] : "ff000000")
2. The example scripts won't close when run on v2. Here is my Gdip v2 repository. When I run any of the examples, I trying to close by simply right clicking the tray icons but it just hangs and I have to kill it via Task Manager. Is it something to do with the Gdip_Shutdown() func?
Code: Select all
Gdip_Shutdown(pToken)
{
Ptr := A_PtrSize ? "UPtr" : "UInt"
DllCall("gdiplus\GdiplusShutdown", Ptr, pToken)
if hModule := DllCall("GetModuleHandle", "str", "gdiplus", Ptr)
DllCall("FreeLibrary", Ptr, hModule)
return 0
}