The script works great EXCEPT when a self-spawning service (such as HP TouchPoint Analytics) or another bloatware self-spawning service which - no matter how many times you delete it, keeps spawning again like a bad zombie movie and hogging both CPU and memory.
I'm using an HP Pavillion laptop and Windows 11.
I've of course tried to disable the service in task manager and task scheduler and all of the other normal ways.
I've tried using SKAN/mikeyww's excellent script to wait until CPU is fairly available to launch the script:
Code: Select all
; This script waits for CPU load to drop before proceeding
#Requires AutoHotkey v1.1.33
SoundBeep 1500
SetTimer go, -1
SoundBeep 1000
waitCPU(15)
ToolTip
MsgBox 64, Status, ne!, 1
go() {
Loop 100 {
Sleep 1
ToolTip % "===> " A_Index " <==="
}
}
CPULoad() { ; CPULoad() by SKAN
; https://github.com/jNizM/SysMeter/blob/master/src/SysMeter.ahk#L335
Static PIT, PKT, PUT
If (PIT = "")
Return 0, DllCall("GetSystemTimes", "Int64P", PIT, "Int64P", PKT, "Int64P", PUT)
DllCall("GetSystemTimes", "Int64P", CIT, "Int64P", CKT, "Int64P", CUT)
IdleTime := PIT - CIT, KernelTime := PKT - CKT, UserTime := PUT - CUT
SystemTime := KernelTime + UserTime
Return (SystemTime - IdleTime) * 100 // SystemTime, PIT := CIT, PKT := CKT, PUT := CUT
}
cpu() {
n := 0, load := []
While (n < 4) {
If (0 < c := CPULoad())
load[n := Mod(n, 4) + 1] := c
Sleep, 100
}
Return Round((load.1 + load.2 + load.3 + load.4) / 4)
}
waitCPU(pct) {
While cpu() > pct
Sleep, 500
}
Code: Select all
Process, Priority, , High
Code: Select all
Run, taskkill /f /im TouchpointAnalyticsClientService.exe,,hide
Code: Select all
DetectHiddenWindows, On
Loop 3000
{
Run, taskkill /f /im TouchpointAnalyticsClientService.exe,,hide
}
After spending hours on HP and other discussion boards, I'm convinced that HP Touchpoint Analytics is spyware or at the very least impossible-to-remove bloatware (which it euphemistically calls "telemetry"), and that HP put a lot of effort into making sure it can't be disabled or killed.
Bloatware/spyware is one thing ... but bloatware which is so resource-intensive that I can't run my AHK script makes me crazy.
So the question is: can AHK be used to either kill it, or at least make it lowest-possible priority, so it doesn't keep preventing my script from running?
As usual, I can paste my AHK script in here so people can see it, although it is very long. Just let me know and I will paste it.
Thanks in advance!