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 


Is there an easy way to show a value as a popup or overlay?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
Autem
Expert Cheater
Reputation: 1

Joined: 30 Jan 2023
Posts: 156

PostPosted: Sat Oct 28, 2023 11:25 am    Post subject: Is there an easy way to show a value as a popup or overlay? Reply with quote

Let's say I have an address in the address list that shows a string, but I'd like that string's content to be the only thing showing (rather than having to look at CE). Are there any options for displaying only that one string? So basically as soon as that name changes, I'll know it because it's ALWAYS visible in a tiny, non-intrusive popup or overlay somewhere on my screen?

If both are easy, something like an overlay or in-game graphic would be preferred over a small popup... but a popup would still be great if nothing else is possible.

Basically as I'm cycling thru characters I want their special move name to be displayed somewhere on the screen instead of me having to look at CE to see the name of their special.

In my early searching I found this thread from DB titled "How to show an ingame menu in d3d games" which sounds similar to what I need but seems a little more advanced than what I might need (I don't need it having menu options or anything fancy) and may be out dated since it's 11 years old: https://forum.cheatengine.org/viewtopic.php?t=552281 <--It turns out the final reply in this thread is somebody asking for exactly what I am looking for, but there wasn't a reply on how to do it
Back to top
View user's profile Send private message
LeFiXER
Grandmaster Cheater Supreme
Reputation: 20

Joined: 02 Sep 2011
Posts: 1069
Location: 0x90

PostPosted: Sat Oct 28, 2023 3:58 pm    Post subject: Reply with quote

Not exactly what you want but something along these lines:
Code:

if f then f.destroy(); f = nil end

f = createForm(getMainForm())
f.Name = 'frmMain'
f.Caption = 'Name Form'
f.Width = 300
f.Height = 100
f.Left = getScreenWidth() - (f.Width + 10)
f.Top = 10
f.BorderStyle = 'bsNone'
f.FormStyle = 'fsStayonTop'
f.setLayeredAttributes(f.BackgroundColor, 125, 0x3)

local nfont = createFont(f)
nfont.Name = 'Arial Black'
nfont.Size = 12
nfont.Color = 0x0000FF

local nameLabel = createLabel(f)
nameLabel.Name = 'lblName'
nameLabel.Caption = '...'
nameLabel.Height = 30
nameLabel.Width = f.Width - 10
nameLabel.Left = (f.Width - nameLabel.Width) / 2
nameLabel.Top = (f.Height - nameLabel.Height) / 2
nameLabel.Hint = 'Click name to close form.'
nameLabel.Font = nfont
nameLabel.OnClick = function()
                       f.close()
                    end


To get you started. I don't have much time to finish.
Back to top
View user's profile Send private message
Autem
Expert Cheater
Reputation: 1

Joined: 30 Jan 2023
Posts: 156

PostPosted: Sun Nov 12, 2023 2:56 am    Post subject: Reply with quote

I was experimenting with this, and I am able to get values to display in the nameLabel.Caption, but the popup is only visible if Cheat Engine is in front. As soon as I focus on the game, the popup disappears behind the game until I go click on CE again.

I was hoping for something that would allow the game to be main focus while still displaying information over the game screen, if possible?
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

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

PostPosted: Sun Nov 12, 2023 5:12 am    Post subject: Reply with quote

use a fontmap and a textcontainer.
the textcontainer is used to draw text on the game screen each frame using the provided fontmap (you can create a fontmap using any system font)

_________________
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
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine 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