 |
Cheat Engine The Official Site of Cheat Engine
|
View previous topic :: View next topic |
Author |
Message |
3t3r4n How do I cheat?
Reputation: 0
Joined: 01 Sep 2015 Posts: 4
|
Posted: Tue Sep 01, 2015 2:23 pm Post subject: aob scan c++ |
|
|
i use ce-lib32 and i want to scan for an aob .. where can i find an example?
This is what i donne ... it show 0 addresses found .. it should be 1, and how i can see the address?
Code: |
iOpenProcess(pid);
iInitMemoryScanner((HWND)GetCurrentProcess());
TScanOption scanopt = soExactValue;
TVariableType varopt = vtByteArrays;
BSTR startscan = ::SysAllocString(L"$0000000000000000");
BSTR endscan = ::SysAllocString(L"$7fffffffffffffff");
bool unicode = false;
bool casesensitive = false;
TFastScanMethod fastscanmethod = fsmAligned;
Tscanregionpreference writable = scanInclude,
executable = scanDontCare, copyOnWrite = scanExclude;
iConfigScanner(writable, executable, copyOnWrite);
BSTR val1 = ::SysAllocString(L"89 08 8B 46 24");
BSTR val2 = ::SysAllocString(L"");
BSTR algn = ::SysAllocString(L"4");
iFirstScan(scanopt, varopt, rtRounded, val1,
val2, startscan, endscan, false, false, unicode, casesensitive,
fastscanmethod, algn);
wcout << iCountAddressesFound(); |
|
|
Back to top |
|
 |
STN I post too much
Reputation: 43
Joined: 09 Nov 2005 Posts: 2676
|
Posted: Tue Sep 01, 2015 4:09 pm Post subject: |
|
|
What is ce-lib32 ?
_________________
|
|
Back to top |
|
 |
3t3r4n How do I cheat?
Reputation: 0
Joined: 01 Sep 2015 Posts: 4
|
Posted: Wed Sep 02, 2015 8:57 am Post subject: |
|
|
github. com/fenix01/cheatengine-library
|
|
Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
Posted: Wed Sep 02, 2015 12:26 pm Post subject: |
|
|
Looking at the function it is defined as:
Code: | typedef void(__stdcall *IFirstScan)(
TScanOption scanOption,
TVariableType variableType,
TRoundingType roundingtype,
BSTR scanvalue1,
BSTR scanvalue2,
BSTR startaddress,
BSTR stopaddress,
bool hexadecimal,
bool binaryStringAsDecimal,
bool unicode,
bool casesensitive,
TFastScanMethod fastscanmethod,
BSTR fastscanparameter
); |
From the look of it you are passing it hex values in the array but you have hex values option set to false which may be causing the lib to fail to understand the value you are giving it.
_________________
- Retired. |
|
Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
|