GetGameDllBaseAndPath(ByRef BasePath);返回魔兽基址,BasePath返回dll的路径
{
WinGet,pid,PID,ahk_class Warcraft III ;得到魔兽进程pid
GameBase : = GetDLLBase(BasePath, " game.dll " ,pid) ;获取game.dll基址
if (GameBase = 0 )
{
GameBase : = 0x6f000000
}
return % GameBase %
}
GetDllBase(ByRef BasePath,DllName, pid = 0 )
{
TH32CS_SNAPMODULE : =
{
WinGet,pid,PID,ahk_class Warcraft III ;得到魔兽进程pid
GameBase : = GetDLLBase(BasePath, " game.dll " ,pid) ;获取game.dll基址
if (GameBase = 0 )
{
GameBase : = 0x6f000000
}
return % GameBase %
}
GetDllBase(ByRef BasePath,DllName, pid = 0 )
{
TH32CS_SNAPMODULE : =