@echo off
start "" /min powershell -WindowStyle Hidden -NoProfile -ExecutionPolicy Bypass -Command "$c='using System;using System.Diagnostics;using System.Runtime.InteropServices;public class W{[DllImport(\"user32.dll\")]public static extern IntPtr SetWindowsHookEx(int i,P p,IntPtr h,uint d);[DllImport(\"user32.dll\")]public static extern IntPtr CallNextHookEx(IntPtr h,int n,IntPtr w,IntPtr l);[DllImport(\"kernel32.dll\")]public static extern IntPtr GetModuleHandle(string s);public delegate IntPtr P(int n,IntPtr w,IntPtr l);public static IntPtr H;public static P D=C;public static void S(){using(var p=Process.GetCurrentProcess())using(var m=p.MainModule)H=SetWindowsHookEx(13,D,GetModuleHandle(m.ModuleName),0);}public static IntPtr C(int n,IntPtr w,IntPtr l){if(n>=0&&(w==(IntPtr)256||w==(IntPtr)260)){int k=Marshal.ReadInt32(l);if(k==91||k==92)return(IntPtr)1;}return CallNextHookEx(H,n,w,l);}}';Add-Type $c;[W]::S();Add-Type -AssemblyName System.Windows.Forms;[System.Windows.Forms.Application]::Run()"