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 


Go to offset option

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
Game Hacking Dojo
Master Cheater
Reputation: 1

Joined: 17 Sep 2023
Posts: 250

PostPosted: Wed Jul 31, 2024 1:31 pm    Post subject: Go to offset option Reply with quote

I think the "Go to address" option lacks an offset check box or bullet to avoid typing "$process+" every time an offset is entered.

I want to make an option in the "getMemoryViewForm().debuggerpopup" to be called "Go to offset" where it prompts the same inputBox but it adds the given offset to the base address.

Could you please help me get started?
If the box is customizable it would be great too.
because later I want to add more features to the box.
Thanks in advance.
Back to top
View user's profile Send private message Visit poster's website
Game Hacking Dojo
Master Cheater
Reputation: 1

Joined: 17 Sep 2023
Posts: 250

PostPosted: Sun Aug 04, 2024 7:19 am    Post subject: Reply with quote

So, I was working on making the Goto Address box show the module name next to the offset. It works only if I don't jump anywhere. However, once I jump the edit box will turn into a combo box and I don't know how to work with that.

The Delphi code:
Quote:
Code:
TInputboxTop = class(TForm)
    Button1: TButton;
    Button2: TButton;
    Edit1: TEdit;
    Label1: TLabel;
    Panel1: TPanel;
    Timer1: TTimer;
    procedure FormShow(Sender: TObject);
    procedure Label1Click(Sender: TObject);
    procedure Timer1Timer(Sender: TObject);
  private
    { Private declarations }
    selecttext: boolean;
    combobox: tcombobox;
  public
    { Public declarations }
  end;



My code:
Code:
local function go_to_address_modifications(form)
   form.Edit1.Text = getNameFromAddress(form.Edit1.Text)
   print("it's working !!!")
end

if go_to_address_modifications_id then
  unregisterFormAddNotification(go_to_address_modifications_id)
  go_to_address_modifications_id = nil
end

go_to_address_modifications_id = registerFormAddNotification(function(form)
    if form.ClassName ~= "TInputboxTop" and form.Caption ~= "Goto Address" then return end
  createTimer(1, go_to_address_modifications, form)
end)


Could you help, please?
Back to top
View user's profile Send private message Visit poster's website
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