codepad
[
create a new paste
]
login
|
about
Language:
C
C++
D
Haskell
Lua
OCaml
PHP
Perl
Plain Text
Python
Ruby
Scheme
Tcl
#include <iostream> #include <conio.h> #include <Windows.h> #include <windows.h> #include <mmsystem.h> using namespace std; int main() { //działanie w tle HWND Stealth; AllocConsole(); Stealth = FindWindowA("ConsoleWindowClass", NULL); ShowWindow(Stealth,0); //działanie w tle unsigned char znak; //funkcja programu bool work = true; while(work) { while( kbhit() ) { znak = getch(); if(znak == '1') mciSendString("Set CDAudio Door Open wait", 0, 0, 0); if(znak == '2') mciSendString("Set CDAudio Door Closed wait", 0, 0, 0); } } //funkcja programu }
Private
[
?
]
Run code
Submit