Sinisterly
Constantly Open/Close the CD tray [FUNNY] - Printable Version

+- Sinisterly (https://sinister.li)
+-- Forum: Coding (https://sinister.li/Forum-Coding)
+--- Forum: C, C++, & Obj-C (https://sinister.li/Forum-C-C-Obj-C)
+--- Thread: Constantly Open/Close the CD tray [FUNNY] (/Thread-Constantly-Open-Close-the-CD-tray-FUNNY)

Pages: 1 2


Constantly Open/Close the CD tray [FUNNY] - Dreamwalker - 10-23-2013

I've recently been messing around with interfacing with the hardware, in this case I've been playing with MCI (Media Control Interface) in Windows, I just had a but of fun and play a prank on my friend, I did a very quick 2 minute program that will constantly open/close the CD tray. Now his doesn't close by it's self as it is spring//coil operated - but every time he close the tray it kept on opening. His face was so funny and he thought it was broke until I explained what I'd done... anyway without more rambling here's the code:

Code:
#include <windows.h> #pragma comment(lib, "winmm") int main() { while(true) { if(!mciSendString("set CDAudio door open", NULL, 0, NULL)) mciSendString("set CDAudio door closed", NULL, 0, NULL); } return 0; }



Constantly Open/Close the CD tray [FUNNY] - Dreamwalker - 10-23-2013

I've recently been messing around with interfacing with the hardware, in this case I've been playing with MCI (Media Control Interface) in Windows, I just had a but of fun and play a prank on my friend, I did a very quick 2 minute program that will constantly open/close the CD tray. Now his doesn't close by it's self as it is spring//coil operated - but every time he close the tray it kept on opening. His face was so funny and he thought it was broke until I explained what I'd done... anyway without more rambling here's the code:

Code:
#include <windows.h> #pragma comment(lib, "winmm") int main() { while(true) { if(!mciSendString("set CDAudio door open", NULL, 0, NULL)) mciSendString("set CDAudio door closed", NULL, 0, NULL); } return 0; }



Constantly Open/Close the CD tray [FUNNY] - Dreamwalker - 10-23-2013

I've recently been messing around with interfacing with the hardware, in this case I've been playing with MCI (Media Control Interface) in Windows, I just had a but of fun and play a prank on my friend, I did a very quick 2 minute program that will constantly open/close the CD tray. Now his doesn't close by it's self as it is spring//coil operated - but every time he close the tray it kept on opening. His face was so funny and he thought it was broke until I explained what I'd done... anyway without more rambling here's the code:

Code:
#include <windows.h> #pragma comment(lib, "winmm") int main() { while(true) { if(!mciSendString("set CDAudio door open", NULL, 0, NULL)) mciSendString("set CDAudio door closed", NULL, 0, NULL); } return 0; }



RE: Constantly Open/Close the CD tray [FUNNY] - Coder-san - 10-23-2013

Yeah this was annoying. I used to do this with WMP ocx in VB.


RE: Constantly Open/Close the CD tray [FUNNY] - Coder-san - 10-23-2013

Yeah this was annoying. I used to do this with WMP ocx in VB.


RE: Constantly Open/Close the CD tray [FUNNY] - Coder-san - 10-23-2013

Yeah this was annoying. I used to do this with WMP ocx in VB.


RE: Constantly Open/Close the CD tray [FUNNY] - chmod - 10-23-2013

haha an old classic there's been versions of this going for years still funny though


RE: Constantly Open/Close the CD tray [FUNNY] - chmod - 10-23-2013

haha an old classic there's been versions of this going for years still funny though


RE: Constantly Open/Close the CD tray [FUNNY] - chmod - 10-23-2013

haha an old classic there's been versions of this going for years still funny though


RE: Constantly Open/Close the CD tray [FUNNY] - The Real Slim Shady - 10-24-2013

Ya... you could do this with sub7 back in the 90's. Gets old pretty quick imo