Jump to content

External keypress?


Recommended Posts

Hi there, I'm quite a bit new into coding and stumbled upon a problem.
Is there a way for wrobot to send global keypress? I have software that reads my F1 keypress even when minimized.

var p = System.Diagnostics.Process.GetProcessesByName("mysoft");
foreach (var process in p)
robotManager.Helpful.Keyboard.PressKey(process.MainWindowHandle, System.Windows.Forms.Keys.F1);

Using this doesn't work / works only on wow process.
Would appreciate help for newbie.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...