- 720 名前:名無しさん@お腹いっぱい。 mailto:sage [2007/11/16(金) 16:36:49 ID:TrZF8PzZ0]
- >>716
ググれない奴は覚えないってじっちゃんが言ってた。 #include mbstring.ahk ReadMemString(pid, ByRef res, addr, size) { local hproc, suc hProc := DllCall("OpenProcess",UInt,0x001F0FFF,UInt,0,UInt,pid,UInt) VarSetCapacity(res, size) suc := DllCall("kernel32\ReadProcessMemory",Int,hProc,Int,addr,Str,res,Int,size,Int,0,Int) DllCall("psapi\CloseProcess",Int,hProc) return suc } #ifwinactive ahk_class Notepad 1:: WinGet, pid, PID ReadMemString(pid, ures, 0x0100A900, 256) MBS_WideCharToMultiByte(res, ures) msgbox, %res% return
|

|