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 hide a process(hide game window by boss key)

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

Joined: 09 Mar 2012
Posts: 62

PostPosted: Fri Jul 15, 2022 6:56 pm    Post subject: how to hide a process(hide game window by boss key) Reply with quote

i can use code "CETrainer.hide()" to hide all ce window

but how to hide my game process?

for example this game's process name is game.exe

whatever by pid or by process's name or by window's title

i need to hide game's window
Back to top
View user's profile Send private message
Corroder
Grandmaster Cheater Supreme
Reputation: 75

Joined: 10 Apr 2015
Posts: 1667

PostPosted: Fri Jul 15, 2022 8:40 pm    Post subject: Re: how to hide a process(hide game window by boss key) Reply with quote

cancandodo wrote:

i need to hide game's window


This will hide notepad windows when loaded / opened :

Code:
ShellExecute('c:\\windows\\system32\\notepad.exe', nil, nil,SW_HIDE)


but the notepad.exe appear on task manager.
or, try open notepad and run this script below

Code:
function FindWindowN(lpClassName, lpWindowName)
 return executeCodeLocalEx("user32.FindWindowA", lpClassName, lpWindowName)
end

function ShowWindow(hWnd, nCmdShow)
 return executeCodeLocalEx("user32.ShowWindow", hWnd, nCmdShow)
end

SW_FORCEMINIMIZE = 11
SW_HIDE = 0
SW_MAXIMIZE = 3
SW_MINIMIZE = 6
SW_RESTORE = 9
SW_SHOW = 5
SW_SHOWDEFAULT = 10
SW_SHOWMAXIMIZED = 3
SW_SHOWMINIMIZED = 2
SW_SHOWMINNOACTIVE = 7
SW_SHOWNA = 8
SW_SHOWNOACTIVATE = 4
SW_SHOWNORMAL = 1

--openProcess('notepad.exe')
local mywindow = FindWindowN("notepad", 0)
ShowWindow(mywindow, SW_HIDE)
sleep(5000)
ShowWindow(mywindow, SW_SHOW)

_________________
Stealing Code From Stolen Code...
And Admit It.. Hmmm....Typically LOL
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