Advertisement
Guest User

Untitled

a guest
Nov 15th, 2017
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.38 KB | None | 0 0
  1. #include <iostream>
  2. #include <cstdlib>
  3. #include <windows.h>
  4. #include <thread>
  5.  
  6. using namespace std;
  7. HWND hwnd;
  8. void asf_thread() {
  9.     system("ASF.exe > nul");
  10. }
  11.  
  12.  
  13. int a=0;
  14. void window_thread(){
  15.  
  16. }
  17.  
  18. int main()
  19. {
  20.     while(1){
  21.         if(GetKeyState('s')<0) cout<<"pressed";
  22.     }
  23.     thread t2(window_thread);
  24.     //thread t1(asf_thread);
  25.  
  26.     t2.join();
  27.  
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement