Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


aob scan c++

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
3t3r4n
How do I cheat?
Reputation: 0

Joined: 01 Sep 2015
Posts: 4

PostPosted: Tue Sep 01, 2015 2:23 pm    Post subject: aob scan c++ Reply with quote

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
View user's profile Send private message
STN
I post too much
Reputation: 43

Joined: 09 Nov 2005
Posts: 2676

PostPosted: Tue Sep 01, 2015 4:09 pm    Post subject: Reply with quote

What is ce-lib32 ?
_________________
Cheat Requests/Tables- Fearless Cheat Engine
https://fearlessrevolution.com
Back to top
View user's profile Send private message
3t3r4n
How do I cheat?
Reputation: 0

Joined: 01 Sep 2015
Posts: 4

PostPosted: Wed Sep 02, 2015 8:57 am    Post subject: Reply with quote

github. com/fenix01/cheatengine-library
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Wed Sep 02, 2015 12:26 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites