Results 1 to 9 of 9

Thread: [3.0/LINQ] Simulate user input presicely

Threaded View

  1. #1

    Thread Starter
    Not NoteMe SLH's Avatar
    Join Date
    Mar 2002
    Location
    192.168.0.1 Preferred Animal: Penguin Reason for errors: Line#38
    Posts
    3,051

    Resolved [3.0/LINQ] Simulate user input presicely

    I have a class that derives from Form that won't be able to get mouse or key input normally. I have outside classes that monitor the mouse and keyboard. I want to be able to send keypresses / mouse events etc. just as if the form had received them its self.

    I've tried things like calling OnMouseDown, OnClick etc. but the problem, as illistrated by these 2 methods is that a child's click / mousedown event won't get raised if appropriate. i.e. i call onmousedown with mouse coordinates that would be over a control on the form, but the event is never raised on the control.

    Anyone know how i can achieve the effect i'm after?
    Last edited by SLH; Oct 19th, 2008 at 10:51 AM.
    Quotes:
    "I am getting better then you guys.." NoteMe, on his leet english skills.
    "And I am going to meat her again later on tonight." NoteMe
    "I think you should change your name to QuoteMe" Shaggy Hiker, regarding NoteMe
    "my sweet lord jesus. I've decided never to have breast implants" Tom Gibbons
    Have I helped you? Please Rate my posts.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width