February 17, 2019, 06:27:14 am
Welcome, Guest. Please login or register.
Did you miss your activation email
News: Donate button moved
to navigation bar

PSO-HACK



Author Topic: I don't suppose anyone has some pointers for using user32.dll commands in Unity?  (Read 426 times)

Offline Copen

  • Donator
  • Member
  • *
  • Posts: 5
  • Reputation: +0/-0
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?

 

© 2012-2019 PSO-HACK.COM
Designed by carbon
| SMF © 2017, Simple Machines