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 


cetrainer and exe trainer, nice GUI
Goto page Previous  1, 2, 3, 4  Next
 
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: 218

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

PostPosted: Tue Mar 12, 2013 7:27 pm    Post subject: Reply with quote

http://paste2.org/p/3134302
_________________
Back to top
View user's profile Send private message MSN Messenger
Dark Byte
Site Admin
Reputation: 458

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

PostPosted: Wed Mar 13, 2013 6:22 am    Post subject: This post has 1 review(s) Reply with quote

Sure, if you really want that I can add it
_________________
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
mgr.inz.Player
I post too much
Reputation: 218

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

PostPosted: Wed Mar 13, 2013 10:04 am    Post subject: Reply with quote

Is this solution correct?
It works for me (tried on 32bit lazarus only). But it will work for others?

Final cheatengine-i386.exe is only 500 bytes bigger.

If you think it can be handy. If this method is slightly faster, why not.

Edit:
Yes, please.

_________________
Back to top
View user's profile Send private message MSN Messenger
mgr.inz.Player
I post too much
Reputation: 218

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

PostPosted: Sat Mar 16, 2013 8:29 pm    Post subject: Reply with quote

@DB
Request:

1. Canvas.drawWithMask
http://paste2.org/p/3134302

2. OnMouseWheelDown and OnMouseWheelUp (note: probably this patch isn't 100% correct)
http://paste2.org/p/3182709


I tested both:
- drawWithMask

- with this code below, I can "move" PaintBox content when using Mouse Wheel:
Code:
setMethodProperty(PaintBox,'OnMouseWheelDown',NFOWindowClass.scrollDown)
setMethodProperty(PaintBox,'OnMouseWheelUp',NFOWindowClass.scrollUp)



btw. small typo here LuaCaller.pas



@DB and @ALL
Can you (DB and others) test this:
1) this "nfoWindow Demo.zip"
2) and this cheatengine i386 binary

_________________
Back to top
View user's profile Send private message MSN Messenger
Dark Byte
Site Admin
Reputation: 458

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

PostPosted: Sun Mar 17, 2013 5:06 pm    Post subject: This post has 1 review(s) Reply with quote

it's working for me in the current build
_________________
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
mgr.inz.Player
I post too much
Reputation: 218

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

PostPosted: Sun Mar 17, 2013 6:27 pm    Post subject: Reply with quote

Nice, thank you Very Happy

PS: I'm not sure about this "Handled: Boolean". r1708 line770.
It should be set to true or false in this case? I don't know.

http://lazarus-ccr.sourceforge.net/docs/lcl/controls/tmousewheelupdownevent.html

_________________
Back to top
View user's profile Send private message MSN Messenger
Dark Byte
Site Admin
Reputation: 458

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

PostPosted: Sun Mar 17, 2013 7:25 pm    Post subject: Reply with quote

Handled in this case can be ignored. It's more a out variable than a var. Also, this code is only executed if you call the original event handler from lua, and the handled is the result, which you usually will just disregard

TLuaCaller.MouseWheelUpDownEvent on the other hand might need some handling of the result of the lua function, or just keep the default behaviour

_________________
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
mgr.inz.Player
I post too much
Reputation: 218

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

PostPosted: Sun Mar 17, 2013 8:02 pm    Post subject: Reply with quote

Thanks for clarifying that Smile

Looks like I need "OnKeyDown" method too. Could you add TKeyEvent?
Would it work with PaintBox? Currently I'm using CheatEngine hotkeys.

_________________
Back to top
View user's profile Send private message MSN Messenger
Dark Byte
Site Admin
Reputation: 458

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

PostPosted: Tue Mar 19, 2013 3:39 am    Post subject: Reply with quote

I'll add it.
But keep in mind that KeyEvent will be a bit more tricky to implement as a paintbox can not have keyboard focus so you need to get they keys from an object that does get focus.
Added problem is that if there is an object on the form that can get focus it's likely to get focus even if you click the other object. Add to that a paintbox that does capture clicks, you may have to use that to explicitly set focus to the key handling object
(It's ugly, but easiest method is to place a read only editbox behind a visible object, else constantly give focus to the object that handles keys)

_________________
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
mgr.inz.Player
I post too much
Reputation: 218

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

PostPosted: Fri Jun 14, 2013 11:31 am    Post subject: Reply with quote

My latest "NFOWindow" (works with official CE6.3)

"example only" trainer (you don't need the game)
http://www.mediafire.com/?agkv68ke66hhx8r



NFOWindow.lua
 Description:

Download
 Filename:  NFOWindow.lua
 Filesize:  17.22 KB
 Downloaded:  695 Time(s)


_________________
Back to top
View user's profile Send private message MSN Messenger
HenryEx
Advanced Cheater
Reputation: 1

Joined: 18 Dec 2011
Posts: 76

PostPosted: Tue Jul 09, 2013 2:08 am    Post subject: Reply with quote

This is pretty awesome! I have no clue about coding, so this helps a lot.
Just a question about the NFOWindow.lua implementation since i know nothing at all about LUA or really anything programming:

Code:
-- load plugin
filename = os.getenv("TEMP")..'\\NFOWindow.lua'
tablefile_saveToFile(findTableFile('NFOWindow.lua'),filename)
file = assert(loadfile(filename))
file()
os.remove(filename)
-- ^^load plugin


What exactly does this do? Does it read the NFOWindow.lua from the user's hard disk and embed it into the trainer/table? Or does it read the file from inside a compiled trainer or what?
Seems to me that the first line gets a HDD path or something, the second line saves something to disk?

... Wait. Maybe i get it? It gets a temp folder on the user's disk, saves the .lua from the table to disk as a file, then reads the file, and deletes it afterwards?
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 458

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

PostPosted: Tue Jul 09, 2013 3:40 am    Post subject: Reply with quote

Yes,it saves the file saved as raw data in the table to the temp older, and then reads it as a textfile
_________________
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
ByTransient
Expert Cheater
Reputation: 5

Joined: 05 Sep 2020
Posts: 240

PostPosted: Sun Feb 07, 2021 11:15 am    Post subject: Reply with quote

@mgr.inz.Player,
https://forum.cheatengine.org/viewtopic.php?p=5479438#5479438

I thought you were doing a matrix effect here.
I realized that it was the picture effect like in the video below.

Link

Is there an easy way to code a matrix effect?

If you don't reply; I will assume he died of Corona. Shocked
Back to top
View user's profile Send private message
Corroder
Grandmaster Cheater Supreme
Reputation: 75

Joined: 10 Apr 2015
Posts: 1667

PostPosted: Thu Feb 11, 2021 9:17 pm    Post subject: Reply with quote

ByTransient wrote:
@mgr.inz.Player,

Is there an easy way to code a matrix effect?

If you don't reply; I will assume he died of Corona. Shocked


use math.random() for labels and timer
or just make it using bat file or C# and call it from Lua

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

Joined: 10 Apr 2015
Posts: 1667

PostPosted: Tue Feb 16, 2021 10:26 pm    Post subject: This post has 1 review(s) Reply with quote

ByTransient wrote:
@mgr.inz.Player,
https://forum.cheatengine.org/viewtopic.php?p=5479438#5479438


Is there an easy way to code a matrix effect?

If you don't reply; I will assume he died of Corona. Shocked



This is my effect example:

https://youtu.be/j3iUo5IaXI8



Capture.JPG
 Description:
CE Matrix Effect
 Filesize:  54.92 KB
 Viewed:  3303 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, 3, 4  Next
Page 3 of 4

 
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