,this._SpeedAtMaxLimitMS := 0 How long the speed has been at the maximum speed limit. ,this._SpeedAtMinLimitMS := 0 How long the speed has been at the minimum speed limit. ,this._PriorDataSample := "" The CPU stats data sample taken before the Current one (CheckInterval ms ago) ,this._CurrentDataSample := "" Current CPU use stats for the process ,this._Stop := true Whether to stop the controller (Set by Stop()) Is either: "Stopped", "ProcessDoesNotExist" or "Running" ,this._State := "Stopped" Controller state. ,this.WriteDebugTestToStdOut := false * Whether to write debug messages to standard output ,this.ShowDebugTooltip := false * Whether to show a debug tooltip in top-left of screen ,this.SpeedAtMaxLimitWarningTimeout := "" * How many milliseconds the before playing a warning sound when the limit is reached, or "" for no warning. ,this.SpeedAtMinLimitWarningTimeout := 10000 * How many milliseconds the before playing a warning sound when the limit is reached, or "" for no warning. Note: Without SetProcessPriority := "BelowNormal", on win XP the script would virtually stop when flash runs at 100% cpu. Allows any value accepted for Param3 Process command, or "" to not change the priority. ,this.SetProcessPriority := "BelowNormal" * What to set the process priority to. ,this.CpuUseSP := aCpuUseSP * CPU use set point. ,this.CpuUsePV := "" CPU use present value. ,this.SpeedMax := 1 * Highest allowed speed. ,this.SpeedMin := this.CESpeedDelta * Lowest allowed speed. ,this.Speed := 1 Cheat Engine current speedhack speed. ,this.ProcessID := "" PID of the process being monitored. ,this.ProcessNameorPID := aProcessNameorPID * Object containing the Name or PID of the process to monitor e.g "Firefox" for FireFox.exe. ,this.CEWindowTitle := "Cheat Engine 6.0" * Title of cheat engine window. ,this.CESpeedDelta := 0.02 * How much increase/decrease hotkeys are set to change the speedhack speed in CE (Speed delta) This.CheckInterval := 1000 * How often to check the CPU use. Instance variables (Public) (Key: * properties that may be changed to control the behavior ) MsgBox, 8240, Invalid aProcessNameorPID parameter, Unable to create class CheatEngineSpeedHackController: aProcessNameorPID must be an object containing either Name or PID property. If ! (ObjHasKey(aProcessNameorPID, "Name") || ObjHasKey(aProcessNameorPID, "PID")) * CheatEngineSpeedHackController constructorĪProcessNameorPID Object containing the Name or PID of the process which the controller is to monitor.Į.g To monitor process with PID 3648, pass:Į.g To monitor process with hex PID 00000E40 (as shown before name when selecting process in CE, pass: , _PropertyList := "IDProcess,Name,PercentProcessorTime,Timestamp_Sys100NS" The properties of proccess info object thing. , _WMIClass := "Win32_PerfRawData_PerfProc_Process" I just copied it from Shc := new CheatEngineSpeedHackController( !\\" A_ComputerName "\root\cimv2") TBH, You're guess is probably as good as mine as to what this is :) Requirements:Autohotkey_L v1.1.3.0 or higher, and Cheat Engine 6.0 (or higher version is probably ok too) Example 1: Monitor firefox.exe, maintaining cpu use at 80% I'm not sure exactly how the CE speedhack works, but the result is that when speed is set to 2, things go twice as fast, and when it's set to 0.5 things run at half speed, etc. I use this to limit flash browser games to 50% cpu as one of the computers here has an overheating issue, but you could use it with anything which the cheat engine speed hack works for. There's some notes at the top of the script explaining how to configure CE, and there's also a bunch of properties to influence the speedhack controller behavior, such as speed limits, check interval, cheat engine window title etc, documented in _New() method. Cheat Engine must be attached to the process which is being monitored by the script and configured to match the speed settings used by the class. It works by adjusting the speedhack speed in Cheat Engine (via SendMessage) in order to keep cpu use near the set point. DescriptionThis is another approach to controlling how much cpu time a process may use.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |