There are so many cool things I could make in Unity (more akin to launchers then games) if I could just get things like:
[DllImport(@"C:\Windows\SysWOW64\user32.dll")]
public static extern IntPtr SetFocus(IntPtr hWnd);
to actually set the unity app to have Focus (even from the background!)
Or make fake keyboard keyup and keydown events when I press a controller button.
It feels like I'm close, but it just ain't working yet. Anyone else dong anything like this?