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 


Can someone write a script to turn Kernel mode

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

Joined: 19 Apr 2023
Posts: 31

PostPosted: Mon Jan 13, 2025 12:39 pm    Post subject: Can someone write a script to turn Kernel mode Reply with quote

Can someone write a script to turn on all these jackdaws at the touch of a button, otherwise I'm tired of turning it on and off every time.

Use the following CE Kernel routines instead of the original windows version:
Query memory region routines
Read/Write Process Memory (Will cause slower scans)
Open Process
Enable use of the Process Watcher
Back to top
View user's profile Send private message
Csimbi
I post too much
Reputation: 97

Joined: 14 Jul 2007
Posts: 3321

PostPosted: Mon Jan 13, 2025 12:41 pm    Post subject: Reply with quote

Settings should be saved. Which CE version is it?
Back to top
View user's profile Send private message
24quant42
Cheater
Reputation: 0

Joined: 19 Apr 2023
Posts: 31

PostPosted: Tue Jan 14, 2025 12:28 pm    Post subject: Reply with quote

Csimbi wrote:
Settings should be saved. Which CE version is it?


7.5

you can get me script?
Back to top
View user's profile Send private message
Csimbi
I post too much
Reputation: 97

Joined: 14 Jul 2007
Posts: 3321

PostPosted: Tue Jan 14, 2025 1:37 pm    Post subject: Reply with quote

Settings should be saved, no need to turn them one and off all the time.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

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

PostPosted: Tue Jan 14, 2025 5:45 pm    Post subject: Reply with quote

Code:

dbk_initialize()
dbk_useKernelmodeOpenProcess()
dbk_useKernelmodeProcessMemoryAccess()
dbk_useKernelmodeQueryMemoryRegions()

_________________
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
AylinCE
Grandmaster Cheater Supreme
Reputation: 37

Joined: 16 Feb 2017
Posts: 1516

PostPosted: Wed Jan 15, 2025 10:18 am    Post subject: Reply with quote

If this doesn't work, you can add the functions given by @DarkByte to the activation section of the code.
Superficially, you can activate and deactivate it with the "F8" key while in this state.

Code:
function dbk_saved(s)
-- settings form enabled:
sf = getSettingsForm()
--Query memory region routines
sf.cbKernelQueryMemoryRegion.State=s
--Read/Write Process Memory  (Will cause slower scans)
sf.cbKernelReadWriteProcessMemory.State=s
--Open Process
sf.cbKernelOpenProcess.State=s
--Enable use of the Process Watcher
sf.cbProcessWatcher.State=s

--settings reg save:
set = getSettings()
set['Use dbk32 OpenProcess'] = s
set['Use dbk32 QueryMemoryRegionEx'] = s
set['Use dbk32 ReadWriteProcessMemory'] = s
set['Use Processwatcher'] = s
reloadSettingsFromRegistry()
end
-- true
-- dbk_saved("1")
-- false
-- dbk_saved("0")

if db_hk then db_hk.Destroy() db_hk=nil end

local stt = 0
db_hk=createHotkey(function()
        sleep(200)
          if stt==0 then
            dbk_saved("1") stt=1
          else
            dbk_saved("0") stt=0
          end
        end, VK_F8)


Of course, if you are not sure whether this code runs the relevant sections, I think you can ask for @DarkByte's idea or addition of a reference to this code.

_________________
Hi Hitler Different Trainer forms for you!
https://forum.cheatengine.org/viewtopic.php?t=619279
Enthusiastic people: Always one step ahead
Do not underestimate me Master: You were a beginner in the past
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
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