Mouse and Keyborad API

hello ppl,, im making a lan administrator program and im wondering if theres any API to manage the mouse and keyboard.... i have a program that need to be able to lock a computer... for example.. when the server send a message to a client... the keyboard and the mouse should be locked,, no matter if the client moves the mouse,, or if he press keyboard,,

I need to disable them,, and also if possible.. move the mouse to a specific location,,make clicks.. and with they keyboard... to be able to press keys..

i know i ask too much :P hehhee...

thx

mig16


Answer this question

Mouse and Keyborad API

  • lcj

    thanksssssss it worked perfect :P ..... now i just need one more thng,,, i saw that class and i didnt understand like the half lol.. so i dont know if im able to move mouse and press keys ... or i have to use another class or API ...

    thx

    mig16

  • Technoriver

    so there is no a single way to move the mouse and press keys of the keyboard =(

    thx

    mig16

  • TereByte

    It is possible. I do not remember exactly how but it is to post your own messages about move movements and keyboard presses.

  • Slowie

    Windows gets input by messages sent to it. A global hook that captures all mouse and keyboard messages can choose to "cancel" them. That is to not send them on to the actual application it was meant for. For windows it will be like there are no keyboard or mouse events happening.



  • Fuzzy

    Nah, not asking too much. I would probably have a look into adding a global hook for all keyboard and mouse messages. There is an article on code project.

    http://www.codeproject.com/csharp/globalhook.asp



  • Mouse and Keyborad API