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 


Another Form Showing Problem

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
dexter3
Newbie cheater
Reputation: 0

Joined: 19 Jul 2018
Posts: 10

PostPosted: Tue Jul 31, 2018 11:03 pm    Post subject: Another Form Showing Problem Reply with quote

Hi guys! Thanks for the help before. I've got a quick question for you all, since I ran into another problem with forms.

Make a super simple form in a script and show it:

Code:
local frmExample = createForm(false)
frmExample.show()


Run Cheat Engine. Are you able to drag the main CE form over the frmExample? Or does frmExample stay above (in the foreground) the main CE form no matter what? Because even with this simple code, my form will stay in front of the main CE form no matter what I do. That means that if the form is bigger I can't click on the main CE form and use it... it completely covers whatever size it is.

All the builtin forms work fine for me. Am I stupid and is there just an option for this? I've looked forever and I can't find it.

This only happens if it's a script in the autorun directory (and the directory is completely empty of any other scripts). Running it in directly Cheat Engine itself works.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

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

PostPosted: Wed Aug 01, 2018 12:25 am    Post subject: Reply with quote

try using a timer with an interval of 1 millisecond in which it calls frmExample.show() and fhen stops the timer

it's also possible you have some window hooks installed on your system that mess up some things. (translation tools, tools for bad eyesight, etc...)

_________________
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
dexter3
Newbie cheater
Reputation: 0

Joined: 19 Jul 2018
Posts: 10

PostPosted: Wed Aug 01, 2018 12:53 am    Post subject: Reply with quote

Haha, funnily enough, I am already using this to deal with the other problem I had Razz (thanks to ParkourPenguin). It doesn't seem to help with this though.

Maybe having a 4k screen has something to do with it then
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

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

PostPosted: Wed Aug 01, 2018 2:12 am    Post subject: Reply with quote

nah, I also have this with it in autorun
createForm'ed forms apparently stay on top of the window that has focus at the time it's shown, and apparently PopupMode is not exposed to lua

what you can do instead is create the form using the form designer and then load that form ( createFormFromFile )

_________________
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
dexter3
Newbie cheater
Reputation: 0

Joined: 19 Jul 2018
Posts: 10

PostPosted: Wed Aug 01, 2018 2:43 am    Post subject: Reply with quote

Cool, that works. Thanks!!
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