#NoEnv
PATH_OVERLAY := "D:\test\dx9_overlay.dll"
hModule := DllCall("LoadLibraryW", WStr, PATH_OVERLAY)
if(hModule == -1 || hModule == 0)
{
MsgBox, 48, Error, The dll-file couldn't be loaded!
ExitApp
}
Init_func := DllCall("GetProcAddressW", UInt, hModule, WStr, "Init")
SetParam_func := DllCall("GetProcAddressW", UInt, hModule, WStr, "SetParam")
TextCreate_func := DllCall("GetProcAddressW", UInt, hModule, WStr, "TextCreate")
DestroyAllVisual_func := DllCall("GetProcAddressW", UInt, hModule, WStr, "DestroyAllVisual")
TextDestroy_func := DllCall("GetProcAddressW", UInt, hModule, WStr, "TextDestroy")
TextSetShown_func := DllCall("GetProcAddressW", UInt, hModule, WStr, "TextSetShown")
TextSetString_func := DllCall("GetProcAddressW", UInt, hModule, WStr, "TextSetString")
Init()
{
global Init_func
res := DllCall(Init_func)
return res
}
SetParam(str_Name, str_Value)
{
global SetParam_func
res := DllCall(SetParam_func, WStr, str_Name, WStr, str_Value)
return res
}
TextCreate(Font, fontsize, bold, italic, x, y, color, text, shadow, show)
{
global TextCreate_func
res := DllCall(TextCreate_func,WStr,Font,Int,fontsize,UChar,bold,UChar,italic,Int,x,Int,y,UInt,color,WStr,text,UChar,shadow,UChar,show)
return res
}
TextDestroy(id)
{
global TextDestroy_func
res := DllCall(TextDestroy_func,Int,id)
return res
}
TextSetShown(id, show)
{
global TextSetShown_func
res := DllCall(TextSetShown_func,Int,id,UChar,show)
return res
}
TextSetString(id,Text)
{
global TextSetString_func
res := DllCall(TextSetString_func,Int,id,WStr,Text)
return res
}
DestroyAllVisual()
{
global DestroyAllVisual_func
res := DllCall(DestroyAllVisual_func)
return res
}