Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 21st, 2012  |  syntax: None  |  size: 0.30 KB  |  hits: 14  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. c# press a button from a window using user32 dll
  2. SendMessage(ptrChild, WM_LBUTTONDOWN, 0, IntPtr.Zero);   //send left button mouse down
  3.   SendMessage(ptrChild, WM_LBUTTONUP, 0, IntPtr.Zero);     //send left button mouse up
  4.   SendMessage(ptrChild, BM_SETSTATE,1 , IntPtr.Zero);     //send change state