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 callback for the function

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Source -> Plugin development
View previous topic :: View next topic  
Author Message
Yakisoba
How do I cheat?
Reputation: 0

Joined: 12 Dec 2012
Posts: 2

PostPosted: Wed Dec 12, 2012 8:46 pm    Post subject: How to callback for the function Reply with quote

Hello.
I want callback for the function when terget value changed.

Code:

BOOL __stdcall ValueChanged( ??????????? )
{
   return TRUE;
}

BOOL __stdcall CEPlugin_InitializePlugin(PExportedFunctions ef, int pluginid)
{
   ???????????   init0;   

   init0.name = "aaaaaaaa";
   init0.callbackroutine = ValueChanged;

   return TRUE;
}



terget.png
 Description:
 Filesize:  2.77 KB
 Viewed:  24172 Time(s)

terget.png


Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 457

Joined: 09 May 2003
Posts: 25252
Location: The netherlands

PostPosted: Thu Dec 13, 2012 5:54 am    Post subject: Reply with quote

Do you want a callback when the user has changed the value using the ce gui, or a callback when the game has changed the value?

Anyhow, for the game part, you have to write your own timer/thread that fetched the address of the memoryrecord and then reads the value. If the value is different from previous read call your ValueChanged function.

(This is a lot easier to do in lua: http://forum.cheatengine.org/viewtopic.php?t=560187 )

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
Yakisoba
How do I cheat?
Reputation: 0

Joined: 12 Dec 2012
Posts: 2

PostPosted: Thu Dec 13, 2012 5:45 pm    Post subject: Reply with quote

I did it !
Thank you so much !!
You are wizard, Dark Byte !!
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 Source -> Plugin development 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