CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 15 of 15

Thread: Mouse Click

Threaded View

  1. #7
    Join Date
    Feb 2009
    Posts
    112

    Re: Mouse Click

    Quote Originally Posted by memeloo View Post
    it's unbelievable how lazy you are. you didn't even bother to read the links that I had posted.
    I would like to state before this little rant that I do appreicate the help offered by everyone at codeguru.com. (That quote didn't help me out to much though...)

    I did look at the link you have posted. In fact I have read the msdn link 10 times before I have posted to this forum. I've looked at the pinvoke.net link at least three times since you have pointed it out to me, and tried to implement it into a c# program (unsuccessfully I might add). You see, unlike a lot of people I do research before I go to the forum to ask questions. So please do not make assumptions about me before you know all of the facts. I do not appreciate being insulted just because I'm not making the connection in my head. It happens to everyone. I'm sure all the information is available to me on the links, but it's just not clicking... SORRY. So rather than insulting me either help me or shut the hell up because, as it turns out, calling me lazy doesn't actually make my code work (I would perfer to use other words instead of "hell" but I would like to comply with forum rules as much as I can).

    Now on to my next question.

    Where is cbsize defined in the code? Whenever I try to use Marshal.SizeOf in my code I get an error. I'm not really sure where it comes from. Do I have to define the Marshal class in my code before I call the SendInput?

    Also I run into a problem with this block of code:

    Code:
        public enum Win32Consts
        {  //Says "Identifier expected; 'public' is a keyword"
            // For use with the INPUT struct, see SendInput for an example
            public const int INPUT_MOUSE = 0; //gives an error here as well stating "identifier expected".
            public const int INPUT_KEYBOARD = 1;
            public const int INPUT_HARDWARE = 2;
        }
    Last edited by vandel212; January 13th, 2010 at 10:15 AM.
    - It's a long way to the top if you want to rock n' roll - AC/DC

    Check out my band and support the music:
    www.blueruinmusic.com

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

Featured