06-11-2015, 11:20 AM
Macro Macro2538
int hWnd,r,w,Value,NewValue
int BufferSize = sizeof(Value)
byte* BaseAddress
BaseAddress+0x100579C
double X=0.1 ;;every 0.1 s
hWnd=win("Notepad")
if(!hWnd) ret
;if(hWnd!=win) ret ;;if window not active
__ProcessMemory o.Alloc(hWnd 0) ;;just get process handle; error if fails
rep
,;o.ReadOther(&Value BaseAddress BufferSize)
,;out Value
,NewValue=0
,o.WriteOther(BaseAddress &NewValue BufferSize)
,if(WaitForSingleObject(o.hprocess X*1000)!=WAIT_TIMEOUT) break ;;if process ended
,;if(hWnd!=win) break ;;if window deactivated