What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [Release] Msn Flash 1.1

Pages: (5): « First [ 1 ] 2 3 4 5 » Last »
[Release] Msn Flash 1.1
Author: Message:
ivan300
Junior Member
**


Posts: 51
36 / Male / –
Joined: Oct 2003
O.P. [Release] Msn Flash 1.1
Here is my Msn flash updated for messenger plus live ! ;)

What it does is turns on and off the comm port while you have a message. So if you attach a led to the comm port it will blink and alert you that you have a message. Very useful in games or when you’re away from the computer. :D


Instructions:
----------------------
Have messenger plus live installed and execute the script

You will need MSCOMM32.OCX and it has to be registered, so copy it to C:\Windows\system32\
and then run regsvr32 "C:\WINDOWS\system32\MSCOMM32.OCX"


How to hook up the led:
----------------------
Make sure it is hooked up to Com port 1 (I only have one on my comp so i cant test it)
An led has a positive (longer lead) and a negative lead what you do is connect the positive pin to
the 4 pin and the negative to the 3 pin

  ____-_+___
  \ o o o o o/
   \ o o o o/
    --------
Note: The cable that i am using is a crossover type cable so it might not be exactly like yours.
Do not be afraid try different pins if it doesn’t work for you.

[Image: msnflash19ec.jpg]

please post any suggestions or questions you have


Updated in 1.1
The led will turn off when you start typing a message, there is no need for it to be running while you are talking to someone ;)

.plsc File Attachment: Msn Flash.plsc (1.16 KB)
This file has been downloaded 358 time(s).
06-26-2006 03:10 AM
Profile E-Mail PM Find Quote Report
ykz
New Member
*


Posts: 14
Joined: Jun 2006
RE: [Release] Msn Flash 1.1
hmm.. sounds cool
but i havent got a led :P
06-26-2006 03:23 AM
Profile E-Mail PM Find Quote Report
can16358p
Junior Member
**

WLM + MP!L User

Posts: 58
34 / Male / –
Joined: Oct 2005
Status: Away
RE: [Release] Msn Flash 1.1
how can we find a led for com port?
[Image: anathema.gif][Image: hax0r.png]
06-26-2006 07:21 AM
Profile E-Mail PM Find Quote Report
Themuzz
New Member
*


Posts: 14
Joined: Jun 2006
RE: [Release] Msn Flash 1.1
Hi, nice work. I also added this:

code:
function OnEvent_ChatWndSendMessage(Wnd,Msg) {
    if(Msg == "flash") {
OnEvent_ChatWndDestroyed()
        return "";
    }
}


So if you don't want to speak to the person but you want to keep the window open you typ flash and it stops flashing..

It's a really cool script, but perhaps there are more possibility's like adding more led's on the com-port and for example:
*turn a red led on when your signed out
*turn a green led on when you recieve a message from someone special (you can do that with more led's)
*you can think yourself of more

I di'dn't found anything to turn on more numbers of the com-port, perhaps that isn't possible because the com-port is used to transfer data.

But what if you use the printer-port, you could use (from the head) 6 pins, so 6 leds. I already have something to turn lights, radio, accespoint on and of with your parallel-port (printer-port) but i can't get this work in messenger plus! live scripts.

In visual basic .NET 2005 i use this:

code:
Module Module1
    Public Declare Sub PortOut Lib "io.dll" (ByVal Port As Integer, ByVal Value As Byte)
    Public Declare Function PortIn Lib "io.dll" (ByVal Port As Integer) As Byte
End Module

//example
Call PortOut(888, 255)



I copied this from the source file so it's a kinda messy, but you get the point. Does anyone know how to do this in Live scripts?
The most important thing is to import 'io.dll'...


Greetz Themuzz
06-26-2006 11:09 AM
Profile E-Mail PM Find Quote Report
novolo
Junior Member
**

Avatar
L2Luna GM

Posts: 67
– / Male / Flag
Joined: May 2006
RE: [Release] Msn Flash 1.1
hi,       

hey Themuzz,  i would like to know how do you controll all that stuff from the LPT1?   i mean i imagine it's with rellays controlled by that port  but where did you get the software?
[Image: signature-user=247&back=4&clr=255,255,255&size=80.png][Image: novolo.gif]
06-26-2006 11:18 AM
Profile PM Web Find Quote Report
Themuzz
New Member
*


Posts: 14
Joined: Jun 2006
RE: [Release] Msn Flash 1.1
It's not that hard. To control hardware with your lpt1 port you do this

here an image from your lpt1 port:

[Image: printer2.gif]

here some information:

Pin-nummer - Uitgang - Waarde
2 - D0 - 1
3 - D1 - 2
4 - D2 - 4
5 - D3 - 8
6 - D4 - 16
7 - D5 - 32
8 - D6 - 64
9 - D7 - 128
18 = mass

here the circuit:

[Image: printer1.gif]


the end that says 'data' you connect with the pin (2,3,4,5,6,7,8,9) and the '-' you connect with the mass (18).

So you can make this 8 times and connect the 'data' line to a new pin and the '-' everytime to the mass (18).

The you can connect every hardware that works in the range of 9-12V. The power source of the hardware you connect with the + and the - with the end of the hardware (i hope you understand, otherwise just ask).

-------------------------------------------

now the software part:

First you have to donload io.dll, i included it.

Download io.dll
Mirror 1

Then include it in your project.

+++++
Here some functions you can then use:

PortOut
Outputs a byte to the specified port.

PortWordOut
Outputs a word (16-bits) to the specified port.

PortDWordOut
Outputs a double word (32-bits) to the specified port.

PortIn
Reads a byte from the specified port.

PortWordIn
Reads a word (16-bits) from the specified port.

PortDWordIn
Reads a double word (32-bits) from the specified port.

SetPortBit
Sets the bit of the specified port.

ClrPortBit
Clears the bit of the specified port.

NotPortBit
Nots (inverts) the bit of the specified port.

GetPortBit
Returns the state of the specified bit.

RightPortShift
Shifts the specified port to the right. The LSB is returned, and the value passed becomes the MSB.

LeftPortShift
Shifts the specified port to the left. The MSB is returned, and the value passed becomes the LSB.

IsDriverInstalled
Returns non-zero if io.dll is installed and functioning. The primary purpose of this function is to ensure that the kernel mode driver for NT/2000/XP has been installed and is accessible.
+++++

I only used this function:

Call PortOut(888, 255)

The 888 stands for lpt port 1.
The 255 for the pins you turned on, if you want to turn on all the pins you dot his:
1+2+4+8+16+32+64+128=255

If you want to turn on pin 4 and 6:

4+16=20
so: Call PortOut(888, 20)


I hope I made it clear for you :)

If you have any questions just ask.

Greetz Themuzz

This post was edited on 06-26-2006 at 12:55 PM by Themuzz.
06-26-2006 12:52 PM
Profile E-Mail PM Find Quote Report
novolo
Junior Member
**

Avatar
L2Luna GM

Posts: 67
– / Male / Flag
Joined: May 2006
RE: [Release] Msn Flash 1.1
YES!  very clear!   thank you,   now i can start coding some commands con MP!L,   thanx!

ut now, i'm wondering..   is there a standalone software t control devices with the LPT1?   just wondering,   later today i'll google it but maybe you already know one...

thanx again!!
[Image: signature-user=247&back=4&clr=255,255,255&size=80.png][Image: novolo.gif]
06-26-2006 01:05 PM
Profile PM Web Find Quote Report
Themuzz
New Member
*


Posts: 14
Joined: Jun 2006
RE: [Release] Msn Flash 1.1
yes, i have a program to control your lpt1 port fast..

Link: http://www.geekhideout.com/parmon.shtml
Download: http://www.geekhideout.com/downloads/parmon.zip

But do you know how to call the io.dll in a script and use the function so you can control everything in a script??


Greetz Themuzz
06-26-2006 01:23 PM
Profile E-Mail PM Find Quote Report
vk3xem
New Member
*

Avatar
Communications

Posts: 13
58 / Male / –
Joined: Nov 2004
RE: [Release] Msn Flash 1.1
Do you guys realise there are many more applications possible for this script?

Remote control for example!  I could see it controlling almost anything if the script was developed a little more!


The views I present are that of my own and NOT of any organisation I may belong to.

73 de Simon, VK3XEM.
06-26-2006 01:34 PM
Profile E-Mail PM Web Find Quote Report
Themuzz
New Member
*


Posts: 14
Joined: Jun 2006
RE: [Release] Msn Flash 1.1
hehe, yeah, i know...
I already attached my old nokia phone to my pc and when i recieve a message like: 'turn on light1' it will turn on a light i connected, i did the same with my radio, you can do almost everything :p

But yeah, it is remote control
06-26-2006 02:01 PM
Profile E-Mail PM Find Quote Report
Pages: (5): « First [ 1 ] 2 3 4 5 » Last »
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On