Shoutbox

make a led blink everytime you get a msg - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Skype & Technology (/forumdisplay.php?fid=9)
+---- Forum: Skype & Live Messenger (/forumdisplay.php?fid=10)
+----- Thread: make a led blink everytime you get a msg (/showthread.php?tid=16135)

make a led blink everytime you get a msg by ivan300 on 10-01-2003 at 05:46 AM

well me and my bro were bored so we made a little program that makes a led connected to the serial port blink whenever you get a message



ok connect the led to an comm port(if you have problems getting it working and you have 2 comm ports try them both !)
____-_+___
\ o o o o o /
\ o o o o  /
   ----------


RE: make a led blink everytime you get a msg by martin on 10-01-2003 at 05:51 AM

sounds kewl, just one problem - where u gets the LED an old (co) or sumthin


RE: make a led blink everytime you get a msg by BooGhost on 10-01-2003 at 05:58 AM

:lol: sounds funny :P


RE: make a led blink everytime you get a msg by surfichris on 10-01-2003 at 06:15 AM

It's not that hard to do really :/

You need:
* Programming skills
* LED (and maybe resistors)
* Serial cable

Basically it works like this:

You connect the anode leg of the LED up to a data pin on the serial lead/port and connect the cathode (short leg) of the LED to one of the grounds.

Then you just write up some software in whichever programming language you know that accesses this serial port and sends out the corresponding data signal which will turn that data bit on (basically switches +5 through the pin).


RE: make a led blink everytime you get a msg by Choli on 10-01-2003 at 09:26 AM

Nice program. I'll test it when I go home (now at the university I haven't got any led :P) Is the source code aviable?? *-)


RE: make a led blink everytime you get a msg by CookieRevised on 10-01-2003 at 09:48 AM

Once you got this...
take it a step further (if you know electronics):
Create a small box with a led, buzzer and a RF-receiver. On the PC-end put a RF-sender (use the USB-ports instead, this would be nicer and not hard to program either).
Now you've got a home-made-messenger beeper ;-)


RE: make a led blink everytime you get a msg by Shadows_death69 on 10-01-2003 at 11:39 AM

lmao, this is funny :P


RE: make a led blink everytime you get a msg by Wabz on 10-01-2003 at 12:55 PM

Why Why why wots wrong with using the flashing text box on screen :S


RE: make a led blink everytime you get a msg by CookieRevised on 10-01-2003 at 04:00 PM

quote:
Originally posted by martinsounds kewl, just one problem - where u gets the LED an old (co) or sumthin
You get the LED's in the electro-shop
quote:
Originally posted by wabzWhy Why why wots wrong with using the flashing text box on screen :S
Errrr...... nothing?? :D
(unless considering making my MSN beeper that you can take with you wherever you go -in your home, like the bathroom :lol:-)
RE: make a led blink everytime you get a msg by martin on 10-01-2003 at 04:40 PM

quote:
Originally posted by CookieRevised
quote:
Originally posted by martinsounds kewl, just one problem - where u gets the LED an old (co) or sumthin
You get the LED's in the electro-shop
would one from an old (co) work
me to cheap to buy one but gots like three old computers
RE: make a led blink everytime you get a msg by -Murua- on 10-01-2003 at 04:53 PM

Can't you just make the keyboard-leds flash (everyone has those)


RE: RE: make a led blink everytime you get a msg by Tochjo on 10-01-2003 at 04:55 PM

quote:
Originally posted by -Murua-
Can't you just make the keyboard-leds flash (everyone has those)

Would you notice that? I wouldn't.
RE: make a led blink everytime you get a msg by CookieRevised on 10-01-2003 at 05:00 PM

quote:
Originally posted by martin
would one from an old (co) work
me to cheap to buy one but gots like three old computers

You to cheap?????? A LED costs nothing: +-USD$0.1
But sure, you can use a LED from an old PC, or whatever machine you find. A LED is a LED (well, not exactly, there are diff. but for this use, it's all the same)

quote:
Originally posted by -Murua-
Can't you just make the keyboard-leds flash (everyone has those)
Sure you can, you can do whatever you want as long you program it to do it :)
RE: make a led blink everytime you get a msg by -Murua- on 10-01-2003 at 05:13 PM

I think people would like a thing that makes leds blink, but they probably don't want to create an external led. Keyboard leds are actually attract much attention (are quite bright, at least mine are).
But it would be useful for the times people work fullscreen.

and is it an external program or a plugin??
(I can't open the file because I miss some .ocx file)


RE: make a led blink everytime you get a msg by reisyboy on 10-01-2003 at 05:15 PM

No im oki :) i prefere sounds :)


RE: make a led blink everytime you get a msg by CookieRevised on 10-01-2003 at 05:18 PM

BTW: be carefull with flashing the keyboard leds! If you change the status of the led, the status of numlock/capslock/scrolllock will also change! This can be annoying when someone is typing a msg.
Also when you change the status, be sure to do it the right way. I've seen many programs that changed the status and if you press on eg. numlock nothing happens (with the leds)....

And for these reasons I don't like it when a program uses keyboard leds... (And I'm certainly not alone with this)


RE: make a led blink everytime you get a msg by martin on 10-01-2003 at 05:24 PM

quote:
Originally posted by -Murua-
I think people would like a thing that makes leds blink, but they probably don't want to create an external led. Keyboard leds are actually attract much attention (are quite bright, at least mine are).
But it would be useful for the times people work fullscreen.

and is it an external program or a plugin??
(I can't open the file because I miss some .ocx file)
u missing the mscomm32.ocx - me was missn it to but gots it

RE: make a led blink everytime you get a msg by martin on 10-01-2003 at 05:39 PM

me needs help connectn it


RE: make a led blink everytime you get a msg by weedy2887 on 10-01-2003 at 10:59 PM

i am no noob when it comes to electronic stuff (spelling yes just in case i mess up) but i cant get it to work 1st when does it flash the sec they send it or untill i click on the windows to see what it is 2nd i can get the led to light up but not flash ever 3rd can you make a better diagram so i can make sure i get this right and lastly if this works so many uses (ill know when i get msg while playing vice city:D) and if you were to continue to delvelop it (pick which comm port, better way to exit it cause its a mem hog 5,132 K just for a light:o that would kick major ass)


RE: RE: make a led blink everytime you get a msg by ivan300 on 10-02-2003 at 02:37 AM

quote:
Originally posted by weedy2887
i am no noob when it comes to electronic stuff (spelling yes just in case i mess up) but i cant get it to work 1st when does it flash the sec they send it or untill i click on the windows to see what it is 2nd i can get the led to light up but not flash ever 3rd can you make a better diagram so i can make sure i get this right and lastly if this works so many uses (ill know when i get msg while playing vice city:D) and if you were to continue to delvelop it (pick which comm port, better way to exit it cause its a mem hog 5,132 K just for a light:o that would kick major ass)



it flashses once you get a message.  I dont know if im going to delvelope it further, i allready got it to do what i need it to do(i might release the source so u guys can have fun with it) it only takes 2.7 megs of ram to me^o)
RE: make a led blink everytime you get a msg by Sk3tch on 10-02-2003 at 02:46 AM

My freind has this Calebriz Lazer or something and when he puts his hand between the line it starts up his computer! I dont know how he did it but i love it because you can wake up in the moring and walk through the door and your computer will start up. :P Meh.. relivant im sure :wink:


RE: make a led blink everytime you get a msg by Sk3tch on 10-02-2003 at 02:49 AM

quote:
Originally posted by -Murua-
is it an external program or a plugin??

.exe So its an external Program not a plugin :)

RE: make a led blink everytime you get a msg by BooGhost on 10-02-2003 at 03:00 AM

i don't get how to connect the LED :(


RE: make a led blink everytime you get a msg by weedy2887 on 10-02-2003 at 04:21 AM

you may now call me a noob cause still not working is it on all the time then flashes or off and flashes can someone other then ivan300 who has done this and got it to work explain to me step by step how to do this and my avitar died


RE: make a led blink everytime you get a msg by Sk3tch on 10-02-2003 at 10:44 AM

quote:
Originally posted by BooGhost
i don't get how to connect the LED :(
Yeah me neither :(
RE: make a led blink everytime you get a msg by CookieRevised on 10-02-2003 at 05:34 PM

Chris Boulton explained how to connect the LED:

quote:
Originally posted by Chris Boulton
Basically it works like this:
You connect the anode leg of the LED up to a data pin on the serial lead/port and connect the cathode (short leg) of the LED to one of the grounds.


RE: make a led blink everytime you get a msg by martin on 10-02-2003 at 09:46 PM

me still dont understand


RE: make a led blink everytime you get a msg by Sphinex on 10-02-2003 at 09:49 PM

I can't still understand...8o|

Thanks...(Y)


RE: make a led blink everytime you get a msg by weedy2887 on 10-02-2003 at 09:56 PM

before you pple make my head hurt more can someone make a clear pic cause right now the led is on when the programs running if i turn it off the led goes off to but besides that nothing no blink no intensity change no nothing on with the program off with out need help


RE: make a led blink everytime you get a msg by BooGhost on 10-03-2003 at 04:15 AM

I think we need a pic ;)


RE: make a led blink everytime you get a msg by martin on 10-03-2003 at 04:17 AM

yea, we needs pic


RE: make a led blink everytime you get a msg by weedy2887 on 10-03-2003 at 04:21 AM

the diagram on the first post makes it hard to get i right cause there are no "o" right under the  "+ -" signs and trying many combonations it still wont blink my buds are getting tired of me telling them to send bs msg just so i can test this


RE: make a led blink everytime you get a msg by Daniel on 10-03-2003 at 06:53 AM

send yourself a msg then :p


RE: make a led blink everytime you get a msg by Sphinex on 10-03-2003 at 07:30 AM

yeah, we needs picture hehe :D

Thanks...(Y)


RE: make a led blink everytime you get a msg by BiZaRrE on 10-03-2003 at 09:31 AM

sounds interesting, but i suck at electronics (which is why i didnt chose it as one of my GCSE subjects):P and if i do do it and it screws up the com my dad will be pretty pissed at me...:blah:
anyway, hope it works well for u who r pro at electronics...or just wanna experiment!;)


RE: make a led blink everytime you get a msg by CookieRevised on 10-03-2003 at 11:50 PM

quote:
Originally posted by BiZaRrE
[SNIPPED]... and if i do do it and it screws up the com my dad will be pretty pissed at me...:blah:
anyway, hope it works well for u who r pro at electronics...or just wanna experiment!;)

Just for this alone, DON'T EXPERIMENT WITH PC PORTS IF YOU DON'T KNOW WHAT YOU'RE DOING! Cause it is a real possibility that you even blow-up your motherboard!

nuf said from my side:-) Don't have the time anyway to experiment... For the other people: do a search with google, or read a book about PC-ports and how to program....
Just a suggestion, I know the answer is there...
Good Luck ;)

RE: make a led blink everytime you get a msg by weedy2887 on 10-04-2003 at 02:19 AM

im running xp and got the ocx file but the light doesnt blink when i get a msg its on constantly come on someone must know what to do


RE: make a led blink everytime you get a msg by chris on 10-04-2003 at 05:55 AM

quote:
Originally posted by BooGhost
I think we need a pic ;)
me too i dont even knwo what were talking about. somthign like somthing blinking when we get a msg whats a led? (hope i dont sound too dumb)
RE: make a led blink everytime you get a msg by CookieRevised on 10-04-2003 at 11:46 AM

LED=Light Emitted Diode
The lights in your keyboard to show the status of capslock, numlock and scrolllock are examples of LED's.


RE: make a led blink everytime you get a msg by weedy2887 on 10-05-2003 at 01:27 AM

but do you know how to do this


RE: make a led blink everytime you get a msg by weedy2887 on 10-06-2003 at 02:00 AM

this will long so stick with me and ivan300 feedback would be nice

ok connect the led to an comm port
_________
\ o o o o o /
\ o o o o  /
   ----------
pins are
_________
\ 1 2 3 4 5 /
\  6 7 8 9 /
   ----------
pin     uses
1        carrier detect
2        receive data
3        transfer data
4        data terminal ready
5        signal ground
6        data get ready
7        request to send
8        clear to send
9        rins indicator

and if i have to do this

You connect the anode leg of the LED up to a data pin on the serial lead/port and connect the cathode (short leg) of the LED to one of the grounds

i put the anode(+) leg on pin 3 and the cathode(-) on pin 5 it works but only 25% of the time:S what am i doint wrong???


RE: make a led blink everytime you get a msg by chris on 10-06-2003 at 03:09 AM

that explias what each one is but im not gonna attemp this:p
offtopic weedy were did you get your avitar?


RE: make a led blink everytime you get a msg by weedy2887 on 10-06-2003 at 03:18 AM

i found it on google y


RE: make a led blink everytime you get a msg by kao on 10-06-2003 at 03:30 AM

haha this is funny, i would do it but im too damn lazy to get an LED and some wires and connect them so blah. might do it one day (dling the prog just for later use (maybe)) hehe. so far, from what i hear its no exactly hard to do :|

Long leg of LED goes on any of the DATA pins and short leg on GROUNDS pin.... run the prog... done... hard?


RE: make a led blink everytime you get a msg by CookieRevised on 10-06-2003 at 07:34 AM

and even programming the LED is easy as hell...
(very)pseudo code:

open "COM:1" for output
write &hFF

The hard part is programming the hook in messenger.
But remember, read some (small) books/articles/resources about COM-ports first, as you can easly fuck up the port when doing the hardware part.


RE: make a led blink everytime you get a msg by weedy2887 on 10-07-2003 at 12:57 AM

ok i got it to work but it never stops like when i start up the program the lights off then then i get a msg and it starts ( :)woo hoo) but the light never stops blinking even if close the window that made it start blinking how long does it blink for or do i have to restart he program all the time

o if i could program i would try and fix it myself but im 16 and just starting to learn java so im out


RE: make a led blink everytime you get a msg by CookieRevised on 10-07-2003 at 01:23 AM

If you just started programming and if you had the source, you'll see that it would be very easy to fix I guess, just make a loop for it (blink 10 times or so, then off, waiting for next msg).

EDIT:
just thinking about it... Maybe the LED flashes every time a msg is received, even if you have a window open. Everytime a person types something to you it flashes (?) If so, then the code must be altered in a way that it only flashes when a NEW window is opened or something...


RE: make a led blink everytime you get a msg by weedy2887 on 10-07-2003 at 01:30 AM

no right now its once every i guess .5 secs and does not stop ever


RE: make a led blink everytime you get a msg by CookieRevised on 10-07-2003 at 01:32 AM

ask the source from Ivan300 (nicely) ;-)


RE: make a led blink everytime you get a msg by ivan300 on 10-08-2003 at 06:28 AM

allright to stop the led from blinking you have to go into the sys tray and click on the msn buterfly icon and click on reset  i have a new version of the program that stops but there are a few buggs


ill finish it tomorrow and il realease the source and ill put up some nice pics for u guys :)



btw the program doesnt hook onto msn at all. it looks for a task named *- Conversation and if it finds it it makes the light blink(H)


RE: make a led blink everytime you get a msg by BooGhost on 10-08-2003 at 06:31 AM

good many ppl will be waiting ;)


RE: make a led blink everytime you get a msg by volkl on 10-08-2003 at 06:52 AM

i wud do it but i dont know how i wud electrocute myself and die and ruin the computer:)


RE: make a led blink everytime you get a msg by weedy2887 on 10-09-2003 at 04:13 AM

mine doesnt have a reset button :(


RE: make a led blink everytime you get a msg by BooGhost on 10-09-2003 at 04:14 AM

it'd be better if the keyboard LEDs were the one's that flashed :P


RE: make a led blink everytime you get a msg by weedy2887 on 10-09-2003 at 04:20 AM

your never going to give up on that are you :P o and there is mabey at max 12v going threw a com port so you wount kill your self and look at my post it doesnt get much better then that


RE: make a led blink everytime you get a msg by :No-Frost: on 10-09-2003 at 05:16 AM

At the moment I can't doit, because I had already used my com port on a infrared receiver that I made it ^^

I can controle my pc with my TV remote control (universal infrared receiver)


RE: make a led blink everytime you get a msg by weedy2887 on 10-09-2003 at 05:19 AM

i got an ati remote wonder (threw wall) i almose never use it unless my sis is on then i hit power and shut down the comp from my room :P


RE: make a led blink everytime you get a msg by CookieRevised on 10-09-2003 at 12:12 PM

:lol:


RE: make a led blink everytime you get a msg by saralk on 10-10-2003 at 06:36 PM

that last post was :spam:

and im sure u will b able to get com port LEDs of eBay


RE: make a led blink everytime you get a msg by Sk3tch on 10-10-2003 at 06:43 PM

quote:
Originally posted by saralk
and im sure u will b able to get com port LEDs of eBay
lol.. i think it would cost more for Post and packing then the actualy LED :rolleyes: No need for eBay, just find some local store. There not hard to find ;)
RE: make a led blink everytime you get a msg by CookieRevised on 10-10-2003 at 08:02 PM

1) Like I said before (and Sk3tch), a LED costs nothing ($0.1) and every hardware-store has it..... If you don't want to go to a store, use a led from an old equipment (keyboard/PC/Hell, almost all equipment has a LED.....)

2) Maybe an option in the program to switch between keyboard LEDS and the 'SERIAL-LED'? (BooGhost ;))
Then you could even select which LED you want to flash (or all three :))
NumLock, CapsLock, ScrollLock (I prefer this one as the default then, cause the others would be a mess while TyPiNg)....

PS: saralk, yes, that last post was spam ;)


RE: make a led blink everytime you get a msg by ling_vob on 10-11-2003 at 01:38 AM

having all three leds on the keyboa flash constantly in a pattern of some sort;)


RE: make a led blink everytime you get a msg by Dandin1 on 10-11-2003 at 02:07 AM

I got it to work!

Yup, found an old com-to-some-weird-connector adapter and cut the end off.  I put a green led, it works great.  I'm going to put a relay on it so it flashes on, instead of off, or even put a speaker on it. :D

Two problems with the program

  • The led should only flash when the toast is on, or only untill I click on the window.
  • If you can't do that, at least make me able to stop it using while the window is open, because it keeps flashing when I press reset and the window is open.

RE: make a led blink everytime you get a msg by CookieRevised on 10-11-2003 at 10:17 AM

The source would be good :p


RE: make a led blink everytime you get a msg by weedy2887 on 10-14-2003 at 10:20 PM

ok i made a box and everthing i can switch  bettween to diff LED's switch intensities and like the whole nine yards (im so proud of my self:D(H))but now i have 2 things to say

1st its way past 2morrow and im waiting

2nd if the source ever gets out i challange any one to inprove it to the point where it flashes un till we click on it (like the taskbar) and flashes on or twice for each msg recived


RE: make a led blink everytime you get a msg by dotNorma on 07-09-2004 at 04:05 AM

DJMystic made an easter egg in StuffPlug (Perhaps NG) that would make the LEDs in the keyboard blink in a patern.

The only problem with doing those leds is that your typing is gonna end up weird.


RE: make a led blink everytime you get a msg by surfichris on 07-09-2004 at 04:10 AM

Why are we reviving old threads?

Putting that asides its simple to do with the API to turn caps lock, num lock and scroll lock on or off.


RE: make a led blink everytime you get a msg by weedy2887 on 07-09-2004 at 04:41 AM

ok since this is already revived can someone plez plez plez ex[and on this or at least can ivan give ue the code cause i cant make it up but i might be able to change it. again i beg for someone smart to help:D


RE: make a led blink everytime you get a msg by ivan300 on 07-09-2004 at 05:17 AM

I will release it with nice pictures and instructions on how to use it in the next couple of days :D


RE: make a led blink everytime you get a msg by weedy2887 on 07-09-2004 at 05:21 AM

THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU...




but now to be kinda an ass YOU SAID THAT BEFORE (the going to release i new ver) BUT YOU NEVER DID i was sad:( heart broken even:'( so excuse me if i dont belive it.




and i hope you are cause i dont want to be let down again:@


RE: make a led blink everytime you get a msg by ivan300 on 07-09-2004 at 05:31 AM

hehe sorry for dissapointing you guys but i will release it sonn in about a hour actually :D


RE: make a led blink everytime you get a msg by weedy2887 on 07-09-2004 at 05:33 AM

SWEET (on a side not i hope it uses less ram then the last one did 6mb:'(:'(:'()


RE: make a led blink everytime you get a msg by ivan300 on 07-09-2004 at 05:40 AM

there is not much i can do about that because that is how i made it work...it has to load a bunch of windows dlls in order to work


RE: make a led blink everytime you get a msg by weedy2887 on 07-09-2004 at 05:42 AM

:'(:'(:'(:'(:'(:'( oh well as long as it isnt moe then like 6-7 i will get over it but i hope to god it isnt 10+ cause that would suck

but anyway ill be waiting (even thoe its 1:42 am)


RE: make a led blink everytime you get a msg by ivan300 on 07-09-2004 at 06:00 AM

It is released here
http://shoutbox.menthix.net/showthread.php?tid=28388