Login Register






Thread Rating:
  • 0 Vote(s) - 0 Average


Constantly Open/Close the CD tray [FUNNY] filter_list
Author
Message
Constantly Open/Close the CD tray [FUNNY] #1
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;
}

Reply

Constantly Open/Close the CD tray [FUNNY] #2
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;
}

Reply

Constantly Open/Close the CD tray [FUNNY] #3
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;
}

Reply

RE: Constantly Open/Close the CD tray [FUNNY] #4
Yeah this was annoying. I used to do this with WMP ocx in VB.
[Image: rytwG00.png]
Redcat Revolution!

Reply

RE: Constantly Open/Close the CD tray [FUNNY] #5
Yeah this was annoying. I used to do this with WMP ocx in VB.
[Image: rytwG00.png]
Redcat Revolution!

Reply

RE: Constantly Open/Close the CD tray [FUNNY] #6
Yeah this was annoying. I used to do this with WMP ocx in VB.
[Image: rytwG00.png]
Redcat Revolution!

Reply

RE: Constantly Open/Close the CD tray [FUNNY] #7
haha an old classic there's been versions of this going for years still funny though
If you need help feel free to PM me
[Image: klfpJD]
Probitcoin
Freebitcoin
BTC clicks
bitcoin wallet:
1FBPAanbs3rJU9BUpobpDJc9hHUaCaC25N

Reply

RE: Constantly Open/Close the CD tray [FUNNY] #8
haha an old classic there's been versions of this going for years still funny though
If you need help feel free to PM me
[Image: klfpJD]
Probitcoin
Freebitcoin
BTC clicks
bitcoin wallet:
1FBPAanbs3rJU9BUpobpDJc9hHUaCaC25N

Reply

RE: Constantly Open/Close the CD tray [FUNNY] #9
haha an old classic there's been versions of this going for years still funny though
If you need help feel free to PM me
[Image: klfpJD]
Probitcoin
Freebitcoin
BTC clicks
bitcoin wallet:
1FBPAanbs3rJU9BUpobpDJc9hHUaCaC25N

Reply

RE: Constantly Open/Close the CD tray [FUNNY] #10
Ya... you could do this with sub7 back in the 90's. Gets old pretty quick imo

Reply







Users browsing this thread: 1 Guest(s)