View previous topic :: View next topic |
Author |
Message |
Autem Expert Cheater
Reputation: 1
Joined: 30 Jan 2023 Posts: 156
|
Posted: Sat Oct 28, 2023 11:25 am Post subject: Is there an easy way to show a value as a popup or overlay? |
|
|
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 |
|
 |
LeFiXER Grandmaster Cheater Supreme
Reputation: 20
Joined: 02 Sep 2011 Posts: 1069 Location: 0x90
|
Posted: Sat Oct 28, 2023 3:58 pm Post subject: |
|
|
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 |
|
 |
Autem Expert Cheater
Reputation: 1
Joined: 30 Jan 2023 Posts: 156
|
Posted: Sun Nov 12, 2023 2:56 am Post subject: |
|
|
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 |
|
 |
Dark Byte Site Admin
Reputation: 470
Joined: 09 May 2003 Posts: 25781 Location: The netherlands
|
Posted: Sun Nov 12, 2023 5:12 am Post subject: |
|
|
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 |
|
 |
|