06-11-2015, 04:55 AM
Hello, I try to figure out how to freeze some values permanent in an application but I don't know how. Also the macro should freeze the value as long as the application is running or until I deactivate it with an Hot-key or an Window-Button. I hope someone can Help me with this.
My current Macro:
Macro Minesweeper
I deicide to use this small game from Windows XP for learning and testing before I change anything big in other applications.
My current Macro:
Macro Minesweeper
int hWnd,lpdwProcessId,o,r,w,Value,NewValue
int BufferSize = sizeof(Value)
byte* BaseAddress
BaseAddress+0x100579C
hWnd=FindWindow(0 "Minesweeper")
GetWindowThreadProcessId(hWnd lpdwProcessId)
;out "Process ID=%i" hWnd ;;enable/disable this line for debug
o=OpenProcess(PROCESS_ALL_ACCESS 0 lpdwProcessId)
r=ReadProcessMemory(o BaseAddress &Value 4 0)
;out "ReadProcessMemory=%i" r ;;enable/disable this line for debug
;out "BaseAddress=%X ,Buffer=%i BufferSize=%i" BaseAddress Value BufferSize ;;enable/disable this line for debug
NewValue=0
w=WriteProcessMemory(o, BaseAddress, &NewValue 4 0)
I deicide to use this small game from Windows XP for learning and testing before I change anything big in other applications.
Windows 8.1 x64 | Quick Macros v2.4.x.x