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 


Memory view and mainform in the same window

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
Dark Byte
Site Admin
Reputation: 470

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

PostPosted: Tue Oct 14, 2025 3:47 pm    Post subject: Memory view and mainform in the same window Reply with quote

Since so many people wish that the mainform and memoryview are together in one single window, here's a script that does that for you:

Code:

unitedform=createForm()
unitedform.PopupMode='pmNone'
unitedform.borderStyle=bsSizeable

unitedform.width=MainForm.Width*2
unitedform.height=MainForm.Height

mvf=getMemoryViewForm()
mvf.Parent=unitedform
mvf.BorderStyle=bsNone
mvf.Align=alLeft
mvf.Visible=true
mvf.Width=MainForm.Width


f=createSplitter(unitedform)
f.Align=alNone
f.AnchorSideLeft.Control=mvf
f.AnchorSideLeft.Side=asrRight
f.Anchors='[akLeft]'
f.Color=clGreen --easier to find
f.Align=alLeft


MainForm.Parent=unitedform
MainForm.BorderStyle=bsNone
MainForm.Align=alClient



and maybe it gives some people other ideas

_________________
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
AylinCE
Grandmaster Cheater Supreme
Reputation: 37

Joined: 16 Feb 2017
Posts: 1526

PostPosted: Wed Oct 15, 2025 2:50 pm    Post subject: Reply with quote

I think it might be an unfinished idea.

This is a project where "Parent" removes the existing menus for both forms. Sad

Will there be an alternative where the menus are also visible?

_________________
Hi Hitler Different Trainer forms for you!
https://forum.cheatengine.org/viewtopic.php?t=619279
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 Visit poster's website MSN Messenger
Dark Byte
Site Admin
Reputation: 470

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

PostPosted: Wed Oct 15, 2025 3:56 pm    Post subject: Reply with quote

you can assign the menu of each to the unitedform whenever you want

Code:

mainformmenu=MainForm.Menu
MainForm.Menu=nil

mvfmenu=mvf.Menu
mvf.Menu=nil

--and then later you can switch using
unitedform.Menu=mainformmenu
--or
unitedform.Menu=mvfmenu


or you could move all the menuitems into one big one (slightly destructive)

Code:

mainformmenu=MainForm.Menu
mvfmenu=mvf.Menu

MainForm.Menu=nil
mvf.Menu=nil
newmenu=createMainMenu(unitedform)
while mainformmenu.Items.Count>0 do
  mi=mainformmenu.Items[0]
  mainformmenu.Items.delete(0)
  if mi.Name~='' and mvfmenu[Name] then
    --conflicting name
    mi.Name='mainform_'..mi.Name
  end
  newmenu.Items.add(mi)
end

while mvfmenu.Items.Count>0 do
  mi=mvfmenu.Items[0]
  mvfmenu.Items.delete(0)
  if mi.Name~='' and newmenu[Name] then
    mi.Name='memview_'..mi.Name
  end

  newmenu.Items.add(mi)
end

unitedform.Menu=newmenu

a=getApplication()
a.MainForm=unitedform

_________________
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
AylinCE
Grandmaster Cheater Supreme
Reputation: 37

Joined: 16 Feb 2017
Posts: 1526

PostPosted: Wed Oct 15, 2025 5:36 pm    Post subject: Reply with quote

Thanks for the development and solution.
It's a different experience to follow the flow in the same form.



E2ısı.PNG
 Description:
 Filesize:  106.23 KB
 Viewed:  445 Time(s)

E2ısı.PNG



_________________
Hi Hitler Different Trainer forms for you!
https://forum.cheatengine.org/viewtopic.php?t=619279
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 Visit poster's website 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