File tree Expand file tree Collapse file tree 4 files changed +68
-0
lines changed
Executables/AtlasDesktop/3. General Configuration/AI Features/Click To Do Expand file tree Collapse file tree 4 files changed +68
-0
lines changed Original file line number Diff line number Diff line change @@ -90,6 +90,7 @@ actions:
9090 - !task: {path: 'tweaks\privacy\disable-perf-track.yml'}
9191 - !task: {path: 'tweaks\privacy\disable-privacy-experience.yml'}
9292 - !task: {path: 'tweaks\privacy\disable-recall-snap.yml'}
93+ - !task: {path: 'tweaks\privacy\disable-click-to-do.yml'}
9394 - !task: {path: 'tweaks\privacy\disable-device-monitoring.yml'}
9495 - !task: {path: 'tweaks\privacy\disable-rsop-logging.yml'}
9596 - !task: {path: 'tweaks\privacy\disable-speech-auto-updates.yml'}
Original file line number Diff line number Diff line change 1+ ---
2+ title : Disable Click To Do
3+ description : Disables the Click To Do AI feature
4+ builds : [ '>=22000' ]
5+ actions :
6+ - !cmd:
7+ command : ' "AtlasDesktop\3. General Configuration\AI Features\Click To Do\Disable Click To Do (default).cmd" /silent'
8+ exeDir : true
9+ wait : true
10+ runas : currentUserElevated
11+
Original file line number Diff line number Diff line change 1+ @ echo off
2+ set " settingName = ClickToDo"
3+ set " stateValue = 0"
4+ set " scriptPath = %~f0 "
5+
6+ set " ___args = " %~f0 " %* "
7+ fltmc > nul 2 >& 1 || (
8+ echo Administrator privileges are required.
9+ powershell -c " Start-Process -Verb RunAs -FilePath 'cmd' -ArgumentList " " " /c $env:___args" " " " 2 > nul || (
10+ echo You must run this script as admin.
11+ if " %* " == " " pause
12+ exit /b 1
13+ )
14+ exit /b
15+ )
16+
17+ reg add " HKLM\SOFTWARE\AtlasOS\Services\%settingName% " /v state /t REG_DWORD /d %stateValue% /f > nul
18+ reg add " HKLM\SOFTWARE\AtlasOS\Services\%settingName% " /v path /t REG_SZ /d " %scriptPath% " /f > nul
19+
20+ reg delete " HKCU\Software\Policies\Microsoft\Windows\WindowsAI" /v " DisableClickToDo" /f > nul 2 >& 1
21+ reg add " HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsAI" /v " DisableClickToDo" /t REG_DWORD /d 1 /f > nul
22+ if " %~1 " == " /silent" exit /b
23+
24+ echo .
25+ echo Click To Do has been disabled.
26+ echo Press any key to exit...
27+ pause > nul
28+ exit /b
Original file line number Diff line number Diff line change 1+ @ echo off
2+ set " settingName = ClickToDo"
3+ set " stateValue = 1"
4+ set " scriptPath = %~f0 "
5+
6+ set " ___args = " %~f0 " %* "
7+ fltmc > nul 2 >& 1 || (
8+ echo Administrator privileges are required.
9+ powershell -c " Start-Process -Verb RunAs -FilePath 'cmd' -ArgumentList " " " /c $env:___args" " " " 2 > nul || (
10+ echo You must run this script as admin.
11+ if " %* " == " " pause
12+ exit /b 1
13+ )
14+ exit /b
15+ )
16+
17+ reg add " HKLM\SOFTWARE\AtlasOS\Services\%settingName% " /v state /t REG_DWORD /d %stateValue% /f > nul
18+ reg add " HKLM\SOFTWARE\AtlasOS\Services\%settingName% " /v path /t REG_SZ /d " %scriptPath% " /f > nul
19+
20+ reg delete " HKCU\Software\Policies\Microsoft\Windows\WindowsAI" /v " DisableClickToDo" /f > nul 2 >& 1
21+ reg delete " HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsAI" /v " DisableClickToDo" /f > nul 2 >& 1
22+ if " %~1 " == " /silent" exit /b
23+
24+ echo .
25+ echo Click To Do has been enabled.
26+ echo Press any key to exit...
27+ pause > nul
28+ exit /b
You can’t perform that action at this time.
0 commit comments