Advertisement
Guest User

Untitled

a guest
Sep 25th, 2016
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. [DllImport("user32.dll")]
  2. public static extern bool EnumWindows (EnumWindowsProc enumProc, IntPtr lParam);
  3. public delegate bool EnumWindowsProc(IntPtr hWnd, IntPtr lParam);
  4.  
  5. private void click (object o, EventArgs a)
  6. {
  7. CCM.SmartButton b = (CCM.SmartButton)o;
  8. Process p = Process.Start ("bash", b.command);
  9. p.WaitForInputIdle ();
  10. EnumWindows (ResizeWindow, IntPtr.Zero);
  11. }
  12.  
  13. private bool ResizeWindow(IntPtr handle, IntPtr pointless){
  14. Console.WriteLine ("Test");
  15. return true;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement