Simple2012

Untitled

Oct 17th, 2013
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.83 KB | None | 0 0
  1. First of.. wtf is this? I can't post some text.. keeps saying I'm trying to post poorly formated code which I am not.
  2.  
  3. I have a question about WinAPI I done different kind of tests but nothing worked so far.
  4. I want to do the following:
  5. Left mouseclick DOWN -> CTRL down -> move mouse -> Left mouseclick up -> CTRL up..
  6.  
  7. Here's my code so far
  8. http://pastebin.com/JYcq5jQb
  9.  
  10. I think my variable names are pretty self explantory but if there's anything you wonder.. just ask and I'll explain it. hWnd = my handle to the client I'm casting these "messages" to x, y = initial coordinates newx, newy = coordinates after mouse movement
  11.  
  12. I can also add this: Only time it works is if I'm moving my physical mouse at the same time the program goes through this block of code.
  13.  
  14.  
  15. Does anyone know what this is not working? How to solve this?
Advertisement
Add Comment
Please, Sign In to add comment