SHARE
TWEET

Untitled

a guest Jan 18th, 2019 70 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2. #include <Windows.h>
  3.  
  4. int main(void) {
  5.     HWND skype = FindWindow(0, "Skype - theamazinghacker");
  6.     if(skype == NULL) {
  7.         std::cerr << "Error: Could not find handle to parent window.\n";
  8.         return 1;
  9.     }
  10.     HWND skypeChildren[168];
  11.     skypeChildren[0] = skype;
  12.     for(int i = 0; i < 168; ++i) {
  13.         skypeChildren[i] = FindWindowEx(skypeChildren[i-1], 0, 0, 0);
  14.         SendMessage(skypeChildren[i], WM_KEYDOWN, 0, VK_OEM_2);
  15.         SendMessage(skypeChildren[i], WM_SETTEXT, 0, WPARAM("SPAM"));
  16.     }
  17.     return 0;
  18. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top