Skip to content

Instantly share code, notes, and snippets.

View hellodanielting's full-sized avatar
🦄

Daniel Ting hellodanielting

🦄
View GitHub Profile
@hellodanielting
hellodanielting / autopress.ps1
Last active September 23, 2019 22:47
Simple Powershell automate Windows keypress
Function Automate-Activity
{
<#
.SYNOPSIS
Simulates Mouse and/or Keyboard Activity for quick automation.
.DESCRIPTION
Simulates Mouse and/or Keyboard Activity for quick automation.
.PARAMETER Minutes
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Windows Search]
"AllowCortana"=dword:00000000
"AllowSearchToUseLocation"=dword:00000000
"DisableWebSearch"=dword:00000001
"ConnectedSearchUseWeb "=dword:00000000