Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cstdlib>
- #include <windows.h>
- #include <thread>
- using namespace std;
- HWND hwnd;
- void asf_thread() {
- system("ASF.exe > nul");
- }
- int a=0;
- void window_thread(){
- }
- int main()
- {
- while(1){
- if(GetKeyState('s')<0) cout<<"pressed";
- }
- thread t2(window_thread);
- //thread t1(asf_thread);
- t2.join();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement