Public paste
Undefined
By: Guest | Date: Nov 23 2009 19:56 | Format: None | Expires: never | Size: 483 B | Hits: 523

  1. if(!(FindWindow(NULL, L"Debug")))
  2. {
  3.          static bool bActivated = false;
  4.          if(!bActivated)
  5.          {
  6.                 ConsoleStart();
  7.                 SetConsoleTitle(L"Debug");
  8.                 bActivated = true;
  9.          }
  10.          else
  11.          {
  12.                  ShowWindow(FindWindow(NULL, L"Debug"), SW_RESTORE);
  13.          }
  14.          SetLayeredWindowAttributes(FindWindow(NULL, L"Debug"), RGB(0,0,0), 50,LWA_ALPHA);
  15.          this->btnShowCon->Text = "Hide Console";
  16. }
  17. else
  18. {
  19.         ShowWindow(FindWindow(NULL, L"Debug"), SW_HIDE);
  20.         this->btnShowCon->Text = "Show Console";
  21. }
Latest pastes
1 days ago
7 days ago
19 days ago
24 days ago
26 days ago