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 


How to make cheat engine windows draw to front

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
wulfcare
Advanced Cheater
Reputation: 0

Joined: 27 Feb 2023
Posts: 59

PostPosted: Tue Mar 28, 2023 4:55 pm    Post subject: How to make cheat engine windows draw to front Reply with quote

Hey guys,

When I try and use a feature on cheat engine such as add address manually, the window that it pops up seems to draw behind the rendered game window. Its really annoying because even when I click on the window it still doesnt bring it to the front. I have to drag the pop up box to the side each time.

I dont know if this is standard or if I messed with some setting, but if anyone has any ideas it would be greatly appreciated.
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: Thu Mar 30, 2023 2:58 am    Post subject: Reply with quote

The add address form is a modal window so should always be 'on top' of other windows within Cheat Engine. It's possible the game window is forcing the game to be above other windows. You can set the 'top most' value using this function:
Code:

local gameTitle = 'GAME WINDOW TITLE HERE'

function setOnTop(window, topmost)
  local handle = findWindow(nil, tostring(window))
  if handle ~= nil then
    if topmost then
     return executeCodeLocalEx('User32.SetWindowPos', handle, -1, 0, 0, 0, 0, 0x3)
    else
     return executeCodeLocalEx('User32.SetWindowPos', handle, -2, 0, 0, 0, 0, 0x3)
    end
  else
    print('No window found')
    return nil
  end
end

setOnTop(gameTitle, true)
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 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