can't access Keyboard class under System.Windows.Input

im working on a simple console app that just show stuff on the screen.

I got into a problem with System.Windows.Input classes, i just cant get to them.

here the code im trying:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Input;

namespace FUAndLOLInstall.LookForAndActivateFile
    class KeyboardHandler
        public void usKeyboard()
            System.Windows.Input.Keyboard //its like the class Keyboard not exsit.

some info: im using a librery TestStack.White to do some minpultion on a windowm, that I start from my application.

TestStack.White itself got a Keyboard class(White.Core.InputDevices.Keyboard), but could it be that this class stoping me to accsess the System.Windows.Input.Keyboard classs?


Since this is a Console Application, you'll need to add a reference to PresentationCore.dll. This assembly will not be referenced by default in a Console Application.

You can see this in the documentation for Keyboard:

Namespace: System.Windows.Input

Assembly: PresentationCore (in PresentationCore.dll)

This is one of the main WPF assemblies, and included by default in WPF projects, but not console applications.

Need Your Help

Composing a WM_TOUCH message for SendMessage(), Kinect as a multi-touch device

c# multi-touch sendmessage

Before you mark this as a duplicate of this post, know that I am asking for more clarity and specificity than the answer to that question provides.

How to create a custom function properly in PHP?

php mysql function variables

I have created a custom function and I am getting this error. I dont think there is a "parse error" in my script.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.