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 


Calling and use windows apps library function via CE Lua

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
Corroder
Grandmaster Cheater Supreme
Reputation: 28

Joined: 10 Apr 2015
Posts: 1021

PostPosted: Tue Jan 14, 2020 6:26 am    Post subject: Calling and use windows apps library function via CE Lua Reply with quote

Hi, are there easy ways (including tutorial if any) to call windows apps library function and use in CE Lua script.

Say, I knew what is a windows apps library (dll) functions including the parameters (easy to be found on MSDN), then how the easy way to call it via CE Lua script?.

Say for example: call 'mciSendCommandA' a function own by winmm.dll

Any helps, tutorial or suggestions from CE Lua experts?.



dll function viewer.JPG
 Description:
 Filesize:  91.87 KB
 Viewed:  85 Time(s)

dll function viewer.JPG



_________________
Stealing Code From Stolen Code...
And Admit It.. Hmmm....Typically LOL
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 375

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

PostPosted: Tue Jan 14, 2020 6:47 am    Post subject: Reply with quote

ce already has winmm loaded by default, so you can just do
Code:

memorystore=createMemoryStream()

--use memorystore.writeByte/Word/Dword to fill in the memorystore

executeCodeLocalEx('mciSendCommandA', IDDevice, msg, flags, memorystore.Memory)

_________________
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
Corroder
Grandmaster Cheater Supreme
Reputation: 28

Joined: 10 Apr 2015
Posts: 1021

PostPosted: Tue Jan 14, 2020 8:50 am    Post subject: Reply with quote

Thanks, DB for the answer and sample.
Anyway, is CE loaded all windows libraries functions or only some libs. by default, I mean in CE 7.0 ?. Thanks

_________________
Stealing Code From Stolen Code...
And Admit It.. Hmmm....Typically LOL
Back to top
View user's profile Send private message
Aylin
Master Cheater
Reputation: 7

Joined: 16 Feb 2017
Posts: 446

PostPosted: Tue Jan 14, 2020 9:14 am    Post subject: Reply with quote

CE 7.0; It all started with "executeCodeLocalEx()".
Now I miss some old functions. Smile
Please DB; 32-bit Trainer.exe must have code that supports 32-64 bit scanners!

is "targetIs64Bit ()" in the .exe installation: does not work in a 32-bit browser.
Or, while "targetIs32Bit" is: 64 bit does not work in the browser.
2 separate Trainer produce and determine the area of use, + process is happening. Smile

_________________
Hi Hitler Make a Youtube Web for Trainer
https://forum.cheatengine.org/viewtopic.php?t=609146
Enthusiastic people: Always one step ahead
Do not underestimate me Master: You were a beginner in the past
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting 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