wulfcare Cheater
Reputation: 0
Joined: 27 Feb 2023 Posts: 46
|
Posted: Tue Mar 28, 2023 4:55 pm Post subject: How to make cheat engine windows draw to front |
|
|
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.
|
|
LeFiXER Grandmaster Cheater
Reputation: 15
Joined: 02 Sep 2011 Posts: 895 Location: 0x90
|
Posted: Thu Mar 30, 2023 2:58 am Post subject: |
|
|
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)
|
|
|