Is there any way to autologin to msn when the machine is not logged in ?

Is there any way to autologin to msn when the machine is not logged in ? Have any one tried this ?
PradeepYadhavAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Richie_SimonettiIT OperationsCommented:
What do you mean by "not logged in"? no session opened?
You could put a ket in the registry at HKLM\software\microsoft\windows\currentversion\run pointing to your autologin app.
If you haven't last one, take a look at:
http://www.angelfire.com/realm/vb-shared/IEDOM_Tip06.htm
0
EDDYKTCommented:
I don't think you can because msn require console to display
0
Richie_SimonettiIT OperationsCommented:
hummm, maybe i misunderstood, what msn we are talking about?
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

EDDYKTCommented:
?msn messenger?
0
PradeepYadhavAuthor Commented:
yes msn messenger
0
PradeepYadhavAuthor Commented:
Hi EDDYKT

"I don't think you can because msn require console to display."

There are 2 methods for the api.
AutoSignin
SignIn 0, sSignInName, sPassword

Autosignin works only when you log into the computer. When you logoff autosignin doesnt work.
Signin - brings up a dialog to enter the password. It bypasses emailid but not the password.

Is there a way around

0
EDDYKTCommented:
The problem is msn messenger will not run without user login.
0
Richie_SimonettiIT OperationsCommented:
isn't possible to use Messenger object library and use .Signin method?
(you have to provide user and password as arguments)
0
EDDYKTCommented:
What are you tring to do? Let's see we can come up with alternative
0
PradeepYadhavAuthor Commented:
Trying to send an instant message (alert) to a contact using msn, from  server , when the server is not logged in. Due to security reasons server might not be logged in.

My program works fine if the server is logged in.
0
PradeepYadhavAuthor Commented:
I have a service to do this. But I think I am not able to  autologin to msn when the server logs off.
0
EDDYKTCommented:
>>My program works fine if the server is logged in.


The only alterative I can think of is you use autologin and login as a user. Set the screen-saver to 1 min and enable password

Follows this link and add some registry key for autologin
http://support.microsoft.com/default.aspx?scid=http://support.microsoft.com:80/support/kb/articles/q97/5/97.asp&NoWebContent=1
 
0
PradeepYadhavAuthor Commented:
I dont want to auto login the computerwhich is a security issue.

Is there any other way to do the same bit of functionality, without using msn. To show client side alerts to a user from the server without any client side (daemon) install program running on the client.

I opted for msn because its easy to do the job to show client side alerts by just specifiying the email id. But the user doesn't want to login his server.
0
EDDYKTCommented:
You can send message to client just like net send command

0
EDDYKTCommented:
ie

Option Explicit

Private Const OPEN_EXISTING = 3
Private Const GENERIC_READ = &H80000000
Private Const GENERIC_WRITE = &H40000000
Private Const GENERIC_EXECUTE = &H20000000
Private Const GENERIC_ALL = &H10000000
Private Const INVALID_HANDLE_VALUE = -1
Private Const FILE_SHARE_READ = &H1
Private Const FILE_SHARE_WRITE = &H2
Private Const FILE_ATTRIBUTE_NORMAL = &H80


Private Declare Function CloseHandle Lib "kernel32" (ByVal hHandle As Long) As Long


Private Declare Function WriteFile Lib "kernel32" (ByVal hFileName As Long, ByVal lpBuff As Any, ByVal nNrBytesToWrite As Long, lpNrOfBytesWritten As Long, ByVal lpOverlapped As Long) As Long


Private Declare Function CreateFile Lib "kernel32" Alias "CreateFileA" (ByVal lpFileName As String, ByVal dwAccess As Long, ByVal dwShare As Long, ByVal lpSecurityAttrib As Long, ByVal dwCreationDisp As Long, ByVal dwAttributes As Long, ByVal hTemplateFile As Long) As Long
           
           


Function SendToWinPopUp(PopFrom As String, PopTo As String, MsgText As String) As Long


    Dim rc As Long
    Dim mshandle As Long
    Dim msgtxt As String
    Dim byteswritten As Long
    Dim mailslotname As String
    ' name of the mailslot
    mailslotname = "\\" + PopTo + "\mailslot\messngr"
    msgtxt = PopFrom + Chr(0) + PopTo + Chr(0) + MsgText + Chr(0)
    mshandle = CreateFile(mailslotname, GENERIC_WRITE, FILE_SHARE_READ, 0, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, 0)
    rc = WriteFile(mshandle, msgtxt, Len(msgtxt), byteswritten, 0)
    rc = CloseHandle(mshandle)
End Function



Private Sub Command1_Click()

    SendToWinPopUp "From machine", "To machine", "3333"
End Sub
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
PradeepYadhavAuthor Commented:
Hi EDDYKT
Its quite nice. This will work for an intranet application. Its similar to net send. But I want this to work in internet.
0
EDDYKTCommented:
Have you tried to use IP address instead

ie SendToWinPopUp "1.1.1.1", "2.2.2.2", "3333"
0
PradeepYadhavAuthor Commented:
Hi EDDYKT

I tried using IP address. It works on the network. But tried to send to a machine which is not connected to my network, over internet to my friends pc. I suppose either my end or at his end they must have disabled popups or must be in a firewall. Hope I am right.

Any how i thank you for your support.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.