 |
Cheat Engine The Official Site of Cheat Engine
|
| View previous topic :: View next topic |
| Author |
Message |
Kirba How do I cheat?
Reputation: 0
Joined: 26 Oct 2023 Posts: 5
|
Posted: Thu Oct 26, 2023 4:21 am Post subject: Create exe, that speedhack 0 the program |
|
|
I need that when hack.exe file is started, program.exe is captured and speedhack 0 is triggered, after which hack.exe is closed. Thus the program will remain at 0 speed until it is shut down.
I tried the following code, but it doesn't work, although if you capture the process in Cheat Engine itself and set speedhack 0, everything works.
| Code: | strings_add(getAutoAttachList(), "fifa11.exe") --or whatever your fifa11 exe is called
function setSpeed(bla)
speedhack_setSpeed(0.93)
timer_setEnabled(t,false)
end
function onOpenProcess(pid)
t=createTimer(nil)
timer_onTimer(t, setSpeed)
timer_setInterval(t,1) --really short wait (setting the speed on open won't work)
timer_setEnabled(t, true)
end |
|
|
| Back to top |
|
 |
Famine Cheater
Reputation: 0
Joined: 23 Oct 2023 Posts: 27 Location: A club where people wee on each other.
|
Posted: Thu Oct 26, 2023 10:58 am Post subject: Re: Create exe, that speedhack 0 the program |
|
|
| Kirba wrote: | I need that when hack.exe file is started, program.exe is captured and speedhack 0 is triggered, after which hack.exe is closed. Thus the program will remain at 0 speed until it is shut down.
I tried the following code, but it doesn't work, although if you capture the process in Cheat Engine itself and set speedhack 0, everything works.
| Code: | strings_add(getAutoAttachList(), "fifa11.exe") --or whatever your fifa11 exe is called
function setSpeed(bla)
speedhack_setSpeed(0.93)
timer_setEnabled(t,false)
end
The strings_add(getAutoAttachList(), "fifa11.exe") line is intended to attach the script to the "fifa11.exe" process, but it's unclear if the process name is correct or if the function getAutoAttachList() is working as intended. You should ensure that you are targeting the correct process name.
function onOpenProcess(pid)
t=createTimer(nil)
timer_onTimer(t, setSpeed)
timer_setInterval(t,1) --really short wait (setting the speed on open won't work)
timer_setEnabled(t, true)
end |
|
The timer_setEnabled(t, false) line in the setSpeed function will immediately disable the timer, which means it will only run once and set the speed to 0.93, but it won't continue to do so while the game is running.
If the game is already running, setting the speed to 0.93 just once when the script is attached may not have the desired effect. You might need to continuously monitor the game process and adjust the speed if it changes.
Here's a modified version of your script that addresses some of these issues:
| Code: | local targetProcess = "fifa11.exe" -- Set the correct process name
function setSpeed()
local gameProcess = getProcessIDFromProcessName(targetProcess)
if gameProcess ~= 0 then
speedhack_setSpeed(gameProcess, 0.93)
end
end
function onOpenProcess(pid)
local t = createTimer(nil)
timer_onTimer(t, setSpeed)
timer_setInterval(t, 1000) -- Set a longer interval to continuously check and adjust speed
timer_setEnabled(t, true)
end
|
In this modified version, the script will continuously check for the game process named "fifa11.exe" and set its speed to 0.93 if it's found. The timer's interval is set to 1000 milliseconds (1 second) to regularly check and adjust the speed.
Give that a shot and let me know.
|
|
| Back to top |
|
 |
Kirba How do I cheat?
Reputation: 0
Joined: 26 Oct 2023 Posts: 5
|
Posted: Thu Oct 26, 2023 11:39 am Post subject: Re: Create exe, that speedhack 0 the program |
|
|
| Famine wrote: |
The timer_setEnabled(t, false) line in the setSpeed function will immediately disable the timer, which means it will only run once and set the speed to 0.93, but it won't continue to do so while the game is running.
If the game is already running, setting the speed to 0.93 just once when the script is attached may not have the desired effect. You might need to continuously monitor the game process and adjust the speed if it changes.
Here's a modified version of your script that addresses some of these issues:
| Code: | local targetProcess = "fifa11.exe" -- Set the correct process name
function setSpeed()
local gameProcess = getProcessIDFromProcessName(targetProcess)
if gameProcess ~= 0 then
speedhack_setSpeed(gameProcess, 0.93)
end
end
function onOpenProcess(pid)
local t = createTimer(nil)
timer_onTimer(t, setSpeed)
timer_setInterval(t, 1000) -- Set a longer interval to continuously check and adjust speed
timer_setEnabled(t, true)
end
|
In this modified version, the script will continuously check for the game process named "fifa11.exe" and set its speed to 0.93 if it's found. The timer's interval is set to 1000 milliseconds (1 second) to regularly check and adjust the speed.
Give that a shot and let me know. |
It didn't help.
The program runs several processes with the same name and it seems to me that the problem is that the exe is grabbing the wrong process.
I don't know how to find the right process. Should I try to apply speedhack to all processes? But how do I do that?
|
|
| Back to top |
|
 |
Famine Cheater
Reputation: 0
Joined: 23 Oct 2023 Posts: 27 Location: A club where people wee on each other.
|
Posted: Thu Oct 26, 2023 11:26 pm Post subject: Re: Create exe, that speedhack 0 the program |
|
|
| Kirba wrote: | | Famine wrote: |
The timer_setEnabled(t, false) line in the setSpeed function will immediately disable the timer, which means it will only run once and set the speed to 0.93, but it won't continue to do so while the game is running.
If the game is already running, setting the speed to 0.93 just once when the script is attached may not have the desired effect. You might need to continuously monitor the game process and adjust the speed if it changes.
Here's a modified version of your script that addresses some of these issues:
| Code: | local targetProcess = "fifa11.exe" -- Set the correct process name
function setSpeed()
local gameProcess = getProcessIDFromProcessName(targetProcess)
if gameProcess ~= 0 then
speedhack_setSpeed(gameProcess, 0.93)
end
end
function onOpenProcess(pid)
local t = createTimer(nil)
timer_onTimer(t, setSpeed)
timer_setInterval(t, 1000) -- Set a longer interval to continuously check and adjust speed
timer_setEnabled(t, true)
end
|
In this modified version, the script will continuously check for the game process named "fifa11.exe" and set its speed to 0.93 if it's found. The timer's interval is set to 1000 milliseconds (1 second) to regularly check and adjust the speed.
Give that a shot and let me know. |
It didn't help.
The program runs several processes with the same name and it seems to me that the problem is that the exe is grabbing the wrong process.
I don't know how to find the right process. Should I try to apply speedhack to all processes? But how do I do that? |
If the program runs multiple processes with the same name, and the script seems to grab the wrong process, you can improve the script by being more specific in selecting the correct process using other attributes like the process's window title or process ID. Here's an updated script that uses the process ID as a more reliable way to identify the game process:
| Code: | local targetProcessName = "fifa11.exe" -- Set the correct process name
function setSpeed()
local processList = enumProcesses()
for i=1, #processList do
local processID = processList[i]
local processName = getProcessNameFromProcessID(processID)
if processName == targetProcessName then
speedhack_setSpeed(processID, 0.93)
end
end
end
function onOpenProcess(pid)
local t = createTimer(nil)
timer_onTimer(t, setSpeed)
timer_setInterval(t, 1000) -- Set a longer interval to continuously check and adjust speed
timer_setEnabled(t, true)
end
|
This version of the script iterates through all running processes and sets the speed to 0.93 for each process with the name "fifa11.exe." This should help you target the correct process even if there are multiple processes with the same name. Remember to adjust the target process name if it's not exactly "fifa11.exe."
If the issue still persists, you might consider using additional attributes like the process's window title or other identifiers to ensure that you are selecting the correct process. The key is to find unique characteristics that can distinguish the desired process from others with the same name.
|
|
| Back to top |
|
 |
Kirba How do I cheat?
Reputation: 0
Joined: 26 Oct 2023 Posts: 5
|
Posted: Fri Oct 27, 2023 5:54 am Post subject: Re: Create exe, that speedhack 0 the program |
|
|
| Famine wrote: |
This version of the script iterates through all running processes and sets the speed to 0.93 for each process with the name "fifa11.exe." This should help you target the correct process even if there are multiple processes with the same name. Remember to adjust the target process name if it's not exactly "fifa11.exe."
If the issue still persists, you might consider using additional attributes like the process's window title or other identifiers to ensure that you are selecting the correct process. The key is to find unique characteristics that can distinguish the desired process from others with the same name. |
It didn't work again.
I have already scoured the entire forum in search of the required code. Unfortunately, I'm not very good with code myself.
My program runs in the background without windows. You can open it in the tray and see if time is passing.
In Cheat Enginge itself, if I open the first of several processes and use speedhack 0, then it works on the program and time stops in it.
But I can’t create an exe that will select the process itself and set speedhack 0. After all the codes, nothing happens to the program. I don't understand what the problem is.
|
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 471
Joined: 09 May 2003 Posts: 25819 Location: The netherlands
|
Posted: Sun Oct 29, 2023 2:35 am Post subject: |
|
|
How did you name your exe ?
_________________
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 |
|
 |
Kirba How do I cheat?
Reputation: 0
Joined: 26 Oct 2023 Posts: 5
|
Posted: Sun Oct 29, 2023 2:39 am Post subject: |
|
|
| Dark Byte wrote: | | How did you name your exe ? |
The program I want to hack krisp.exe
The exe name from Cheat Engine: Krisp endless.EXE
|
|
| Back to top |
|
 |
|
|
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
|
|