Running Win7/64, AutoHotkey_L Version v1.1.02.01Module32First ERRORLEVEL 0 / 87
if not A_IsAdmin { Run *RunAs "%A_ScriptFullPath%" ; Requires v1.0.92.01+ ExitApp } Base := GetDllBase() MsgBox, %Base% Return GetDllBase( PID = 0, Process = "ffxivgame.exe", DllName = "User32.dll" ) { Process, wait, %Process%, 0.5 PID = %ErrorLevel% if PID = 0 { error:= "The specified process could not be found." return error } TH32CS_SNAPMODULE := 0x00000008 INVALID_HANDLE_VALUE = -1 snapMod := DllCall("CreateToolhelp32Snapshot", "Uint", TH32CS_SNAPMODULE , "Uint", PID) If (snapMod = INVALID_HANDLE_VALUE) { error =: "CreateToolhelp32Snapshot ERRORLEVEL " ERRORLEVEL " / " A_LastError Return error` } size:= sizeof(snapMod) ;//requires sizeof.ahk in /lib folder http://www.autohotkey.com/forum/viewtopic.php?t=59581&highlight=sizeof+var VarSetCapacity(me32, size, 0) NumPut(size, me32) If (DllCall("Module32First", "Uint", snapMod, "Uint", &me32)){ while(DllCall("Module32Next", "Uint", snapMod, "UInt", &me32)) { If !DllCall("lstrcmpi", "Str", DllName, "UInt", &me32 + 32) { DllCall("CloseHandle", "UInt", snapMod) Return NumGet(&me32 + 20) } } } error := "Module32First ERRORLEVEL " ERRORLEVEL " / " A_LastError DllCall("CloseHandle", "Uint", snapMod) Return error } `::Reload