PowerShell path\SloppyFocusFollowsMouse.Ps1
Tag Archives: snippet
Run a powershell script
First open a powershell window and enable script execution
- Restricted ? Stops any script from running.
- RemoteSigned ? Allows scripts created on the device, but scripts created on another computer won’t run unless they include a trusted publisher’s signature.
- AllSigned ? All the scripts will run, but only if a trusted publisher has signed them.
- Unrestricted ? Runs any script without any restrictions enter this and answer A for All:
Set-ExecutionPolicy RemoteSigned
Now you can execute the scrip by entering it with the “invoke operator” (&) in front
& SloppyFocusFollowsMouse.ps1
Sloppy focus-follows-mouse in Windows?
Run this in powershell
$signature = @”
[DllImport(“user32.dll”)]
public static extern bool SystemParametersInfo(int uAction, int uParam, ref int lpvParam, int flags );
“@
$systemParamInfo = Add-Type -memberDefinition $signature -Name SloppyFocusMouse -passThru
[Int32]
$newVal = 1
$systemParamInfo::SystemParametersInfo(0x1001, 0, [REF]$newVal, 2)