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
Goto page Previous  1, 2
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
mgr.inz.Player
I post too much
Reputation: 165

Joined: 07 Nov 2008
Posts: 4432
Location: W kraju nad Wisla. UTC+01:00

PostPosted: Sun Jan 19, 2020 7:19 pm    Post subject: Reply with quote

mgr.inz.Player wrote:
Hmm. Something's wrong.

After you said you have CE freeze issues I tried executing my examples many many times in row. And CE closed itself without any errors.

I will check it with GDB.


Small update. Recent Cheat Engine (I compiled this commit from GitHub) and it works great - no crashes.

_________________
Back to top
View user's profile Send private message MSN Messenger
Corroder
Grandmaster Cheater Supreme
Reputation: 33

Joined: 10 Apr 2015
Posts: 1309

PostPosted: Sun Jan 19, 2020 9:49 pm    Post subject: Reply with quote

Thanks, DB and Aylin for info.
mgr.inz.Player, I try to compile CE with the source from the link you are given, but I got the error:

Code:
Error: ppc386.exe can't be executed, error message: Failed to execute ""ppc386.exe"  -Twin32 -MObjFPC -Scghi -O1 -g -gl -l -vewnhibq -FuC:\lazarus\packager\registration\ -FUC:\lazarus\packager\units\i386-win32\ fcllaz.pas


using:
- Lazarus 2.0.6 r62129
- fpc.exe (3.0.4)

May I get your 'custom' recent CE Built?.

EDIT:
Yes, I need: fpc-3.0.4.i386-win32.cross.x86_64-win64.exe and native Win32 compiler for Lazarus.


EDIT2
When build CE I got this 1 error:
- file: LuaPipe.pas
- error: Line 227 :

Code:
r:=WaitForSingleObject(o^.hEvent, ifthen<DWORD>(ftimeout=0, 1000, ftimeout));

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

Joined: 16 Feb 2017
Posts: 570

PostPosted: Mon Jan 20, 2020 2:11 am    Post subject: Reply with quote

mgr.inz.Player wrote:
Something's wrong.

After you said you have CE freeze issues I tried executing my examples many many times in row. And CE closed itself without any errors.

I will check it with GDB.


One detail: Possibly tampering with the "System" can disrupt some stable behavior.
I took Win 10 format 5 days ago and activated it repeatedly with the stable system CE didn't shut itself down.
The code works fine and what's more beautiful is that it opens a Message Box in the PC language. Smile
Perhaps you should do a clean in the CE Autorun folder or Win System.
(Just a recommendation)



Ek4.png
 Description:
 Filesize:  35.9 KB
 Viewed:  581 Time(s)

Ek4.png



_________________
Hi Hitler Take control of your trainer
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
mgr.inz.Player
I post too much
Reputation: 165

Joined: 07 Nov 2008
Posts: 4432
Location: W kraju nad Wisla. UTC+01:00

PostPosted: Mon Jan 20, 2020 3:41 am    Post subject: Reply with quote

@Aylin, Nope. The problem is now fixed with recent commit on github.

@Corroder, change line 68 to this:
uses LuaObject, LuaByteTable, math;

and line 227 to this
r:=WaitForSingleObject(o^.hEvent, ifthen(ftimeout=0, 1000, ftimeout));

_________________
Back to top
View user's profile Send private message MSN Messenger
Corroder
Grandmaster Cheater Supreme
Reputation: 33

Joined: 10 Apr 2015
Posts: 1309

PostPosted: Mon Jan 20, 2020 4:22 am    Post subject: Reply with quote

mgr.inz.Player wrote:

@Corroder, change line 68 to this:
uses LuaObject, LuaByteTable, math;

and line 227 to this
r:=WaitForSingleObject(o^.hEvent, ifthen(ftimeout=0, 1000, ftimeout));


Bravo, compile successfully and executeCodeLocalEx() work properly.

Thank you very much Laughing

EDIT:
@mgr.inz.Player, can you make a function for show hide tooltip for a control using executeCodeLocalEx(), user32.createWindowEx and sendMessage?.

It will great for example and learning purpose.



Capture.JPG
 Description:
Test executeCodeLocalEx() - User32 MessageBox
 Filesize:  63.24 KB
 Viewed:  568 Time(s)

Capture.JPG



_________________
Stealing Code From Stolen Code...
And Admit It.. Hmmm....Typically LOL
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 Lua Scripting All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
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