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 


[Lua Form]Form is always in front of main CE window

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
Frouk
Master Cheater
Reputation: 5

Joined: 22 Jun 2021
Posts: 489
Location: mov dword ptr [Ukraine]

PostPosted: Wed Oct 13, 2021 6:09 am    Post subject: [Lua Form]Form is always in front of main CE window Reply with quote

How to fix it? Pretty anoying for me,when doing memory search value
_________________
void(__cdecl *Haxing)(HWND hGameWindow)
Back to top
View user's profile Send private message
LeFiXER
Grandmaster Cheater Supreme
Reputation: 20

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

PostPosted: Wed Oct 13, 2021 6:39 am    Post subject: Reply with quote

You can close form(s) to hide them out of the way, to bring it back you can navigate to 'Table' on the menu > Form name > Restore and Show.
Back to top
View user's profile Send private message
Frouk
Master Cheater
Reputation: 5

Joined: 22 Jun 2021
Posts: 489
Location: mov dword ptr [Ukraine]

PostPosted: Wed Oct 13, 2021 6:44 am    Post subject: Reply with quote

One of them in autorun folder(extention for CE),but like an default window,when clicking another,previous window hides(background)
But in this case, it doesn't hides when clicking main CE window

_________________
void(__cdecl *Haxing)(HWND hGameWindow)
Back to top
View user's profile Send private message
LeFiXER
Grandmaster Cheater Supreme
Reputation: 20

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

PostPosted: Wed Oct 13, 2021 6:46 am    Post subject: Reply with quote

Oh, this is for an extension which automatically loads. Just edit the lua file to make sure that the form doesn't show until you tell it to, maybe a menu item which toggles the form's state. Perhaps there is a function within the extension that sets the z-order to be on top all the time. I'm not sure what extension you're referring to so I can't say. I am just speculating.
Back to top
View user's profile Send private message
Frouk
Master Cheater
Reputation: 5

Joined: 22 Jun 2021
Posts: 489
Location: mov dword ptr [Ukraine]

PostPosted: Wed Oct 13, 2021 6:54 am    Post subject: Reply with quote

ye that form is called by menu item
_________________
void(__cdecl *Haxing)(HWND hGameWindow)
Back to top
View user's profile Send private message
LeFiXER
Grandmaster Cheater Supreme
Reputation: 20

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

PostPosted: Wed Oct 13, 2021 7:09 am    Post subject: Reply with quote

What is the extension?
Back to top
View user's profile Send private message
Frouk
Master Cheater
Reputation: 5

Joined: 22 Jun 2021
Posts: 489
Location: mov dword ptr [Ukraine]

PostPosted: Wed Oct 13, 2021 7:11 am    Post subject: Reply with quote

https://forum.cheatengine.org/viewtopic.php?t=618054
Just in case
And custom trainer

_________________
void(__cdecl *Haxing)(HWND hGameWindow)
Back to top
View user's profile Send private message
LeFiXER
Grandmaster Cheater Supreme
Reputation: 20

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

PostPosted: Wed Oct 13, 2021 8:41 am    Post subject: Reply with quote

I have just taken a look and it's like that for many forms that are created via Lua. One suggestion would be to use bringToFront() and sendToBack() to change the Z-Order of the form/CE window based on the activity state of the control. I'm not sure how viable that would be though.
Back to top
View user's profile Send private message
ByTransient
Expert Cheater
Reputation: 5

Joined: 05 Sep 2020
Posts: 240

PostPosted: Thu Oct 14, 2021 10:07 am    Post subject: This post has 1 review(s) Reply with quote

Open the lua file and edit the section below and repackage it as ".lua".

Code:

--GUI elements start

local form = createForm(false)
form.Height = 300;
form.Width = 300;
form.Caption = 'Hex,Dec Calculator';
form.Constraints.MinHeight = 300;
form.Constraints.MinWidth = 300;
form.BorderStyle = bsSingle
form.Position = poScreenCenter
--add
form.PopupMode=0


And..
Code:
local infoForm = createForm(false)
infoForm.Height = 300;
infoForm.Width = 300;
infoForm.Caption = 'Info';
infoForm.Constraints.MinHeight = 300;
infoForm.Constraints.MinWidth = 300;
infoForm.BorderStyle = bsSingle
infoForm.Position = poScreenCenter
--add
infoForm.PopupMode=0


Or..



hexDecCalculator.lua
 Description:
EDIT..

Download
 Filename:  hexDecCalculator.lua
 Filesize:  5.64 KB
 Downloaded:  167 Time(s)

Back to top
View user's profile Send private message
Frouk
Master Cheater
Reputation: 5

Joined: 22 Jun 2021
Posts: 489
Location: mov dword ptr [Ukraine]

PostPosted: Thu Oct 14, 2021 11:09 am    Post subject: Reply with quote

ByTransient wrote:
Open the lua file and edit the section below and repackage it as ".lua".

Code:

--GUI elements start

local form = createForm(false)
form.Height = 300;
form.Width = 300;
form.Caption = 'Hex,Dec Calculator';
form.Constraints.MinHeight = 300;
form.Constraints.MinWidth = 300;
form.BorderStyle = bsSingle
form.Position = poScreenCenter
--add
form.PopupMode=0


And..
Code:
local infoForm = createForm(false)
infoForm.Height = 300;
infoForm.Width = 300;
infoForm.Caption = 'Info';
infoForm.Constraints.MinHeight = 300;
infoForm.Constraints.MinWidth = 300;
infoForm.BorderStyle = bsSingle
infoForm.Position = poScreenCenter
--add
infoForm.PopupMode=0


Or..


ty,helped

_________________
void(__cdecl *Haxing)(HWND hGameWindow)
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
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