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 


how to write aobsacn with Enable Writable,Executable..

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
cancandodo
Advanced Cheater
Reputation: 0

Joined: 09 Mar 2012
Posts: 62

PostPosted: Mon Jun 27, 2022 7:50 pm    Post subject: how to write aobsacn with Enable Writable,Executable.. Reply with quote

how to write aobsacn with Enable Writable,Executable,disable CopyOnwrite?

when i enable Writable, enable Executable,and disable Copywrite,i can find a result qucikly

but what write code like this:

[ENABLE]
aobscan(findwupinid,8B 81 D8 00 00 00 3D C7 0F 00 00,+W+X-C)
registersymbol(findwupinid)

[DISABLE]


it will find no result and slowly



aob.png
 Description:
 Filesize:  34.97 KB
 Viewed:  884 Time(s)

aob.png


Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 140

Joined: 06 Jul 2014
Posts: 4289

PostPosted: Mon Jun 27, 2022 9:10 pm    Post subject: Reply with quote

AFAIK that's Lua-only.
Code:
[ENABLE]
{$lua}
if syntaxcheck then return 'define(findwupinid,0)' end

local result = AOBScanUnique('8B 81 D8 00 00 00 3D C7 0F 00 00', '+W+X-C')
assert(result, 'AOBScan failed: no result found')

return ('define(findwupinid,%08X)'):format(result)
{$asm}

registersymbol(findwupinid)
...

If you're doing this often, you may want to use registerAutoAssemblerCommand to make this more ergonomic.

_________________
I don't know where I'm going, but I'll figure it out when I get there.
Back to top
View user's profile Send private message
cancandodo
Advanced Cheater
Reputation: 0

Joined: 09 Mar 2012
Posts: 62

PostPosted: Mon Jun 27, 2022 9:58 pm    Post subject: Reply with quote

ParkourPenguin wrote:
AFAIK that's Lua-only.
Code:
[ENABLE]
{$lua}
if syntaxcheck then return 'define(findwupinid,0)' end

local result = AOBScanUnique('8B 81 D8 00 00 00 3D C7 0F 00 00', '+W+X-C')
assert(result, 'AOBScan failed: no result found')

return ('define(findwupinid,%08X)'):format(result)
{$asm}

registersymbol(findwupinid)
...

If you're doing this often, you may want to use registerAutoAssemblerCommand to make this more ergonomic.


it work correct tks!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine 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