Ceres Posted September 11, 2021 Report Share Posted September 11, 2021 This PowerShell script (once executed) activates a Windows 10 window on mouse-over. Maybe someone finds it useful. Admittedly, you get the same without the script by left-clicking on the desired window. Anyway, there might be Windows users who like this experience known from several Linux distros. $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) Cheers! PS: It's not my code - I found it somewhere, so credits go to its (to me anonymous) author. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.