What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Skype & Live Messenger » Batch start an identified Messenger

Pages: (2): « First [ 1 ] 2 » Last »
Batch start an identified Messenger
Author: Message:
francoisch
Junior Member
**


Posts: 53
Joined: Jan 2007
O.P. Batch start an identified Messenger
Hello

I know how batch start a Messenger.

I would like to batch start a Messenger with a parameter telling him which identity he should use in this start.

With such a function, I would be able to start a Messenger for one among several users of a public accessed PC in a community, just by asking the person what his / her name is, for example.

Would anyone know how to start an “Identified” Messenger, hoping that Msg+ could help into this?

Thank you in advance for your help.

Francois
Well, I hoped that someone would know how to batch start a Messenger with a contact id as a parameter.

Too bad, folks.

Francois
05-15-2008 05:31 PM
Profile E-Mail PM Find Quote Report
Stigmata
Veteran Member
*****



Posts: 3520
Reputation: 45
20 / Other / Flag
Joined: Jul 2003
RE: Batch start an identified Messenger
It would be the password entry which would be the problem?


With the API is completely possible to attempt to login to a specific user.

05-19-2008 07:06 PM
Profile PM Web Find Quote Report
francoisch
Junior Member
**


Posts: 53
Joined: Jan 2007
O.P. RE: Batch start an identified Messenger
Allow me to get down to the point with this:
code:
"C:\Program Files\Windows Live\Messenger\msnmsgr.exe" "fchausson@hotmail.fr"

installed into a Bat file, which is what I would like to get to run.

Would something like this be possible?

Francois
05-19-2008 08:20 PM
Profile E-Mail PM Find Quote Report
CookieRevised
Elite Member
*****

Avatar

Posts: 15519
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: Batch start an identified Messenger
As Stigmata said, it is possible to start Messenger, but you will not be able to log that user in since you also need to fill in the password.

And nobody (I hope) is going to store his/her password on a public accessable computer and tick the option "Sign me in automatically".

Doing something like that on a public computer is a very very very bad idea...

This post was edited on 05-20-2008 at 12:48 AM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
05-20-2008 12:45 AM
Profile PM Find Quote Report
francoisch
Junior Member
**


Posts: 53
Joined: Jan 2007
O.P. RE: Batch start an identified Messenger
Yes, I totally agree with what you say, in a real public environment.

My need, which I didn't elaborate about, is a bit different.

A small community, half a dozen persons approximately, share the use of a PC in a private hospital.

The persons are multiple sclerosis patients and, thus, have heavy difficulties to access keys on the keyboard.

For this reason I al looking for any way to facilitate their access to Messenger, and other applications.

I believe that there is no real security problem between these 5-6 persons who live together all day long.

This is my reason to look for batch starting Messenger with a contact as a parameter and with pre-keyed password.

Would this be possible, taking into account what I explained?

Thank you in advance.

Francois
05-20-2008 07:44 AM
Profile E-Mail PM Find Quote Report
Stigmata
Veteran Member
*****



Posts: 3520
Reputation: 45
20 / Other / Flag
Joined: Jul 2003
RE: Batch start an identified Messenger
Hey there, seeing as its for a good cause I created a program that will do what you need it to :)

This will run messenger and enter the email address and password shown in the runtime arguements into messenger, all the user will need to do is click the sign in button :)

Source (VB6):

code:
Public WithEvents msn As MessengerAPI.Messenger

Private Sub Form_Load()

Set msn = New MessengerAPI.Messenger
Dim msnWnd As MessengerAPI.IMessengerWindow
Set msnWnd = msn.Window

foo = Split(Command, " ")

msn.Signin msnWnd.hWnd, foo(0), foo(1)
End
End Sub


Used By:

quote:
RunMsgr.exe email password

for example

quote:
RunMsgr.exe email@hotmail.com pass123


Hope this has proved to be of some help :)

A compiled version of it is included in the zip file, I have also provided the visual basic source code.

.zip File Attachment: RunMsgr.zip (5.06 KB)
This file has been downloaded 305 time(s).
05-21-2008 01:05 AM
Profile PM Web Find Quote Report
francoisch
Junior Member
**


Posts: 53
Joined: Jan 2007
O.P. RE: Batch start an identified Messenger
hello Stigmata and thank you sincerely for your help.

This is exactly what I need for these folks to use.

Well, my problem now is that I know nothing in VB.

I tried to run a simple test by copying your example into a Bat file with this error result: a small Alert box saying something like excution error 5, incorrect argument or procedure call.

Your unziped files were into the same directory as my test Bat file.

Could you be so kind to elaborate a little about how to use your development for a newbie in VB?

Thank you again for your kind help.

Francois
05-21-2008 07:14 PM
Profile E-Mail PM Find Quote Report
Apatik
Full Member
***

Avatar
\o/

Posts: 431
Reputation: 12
– / Male / Flag
Joined: Nov 2003
Status: Away
RE: Batch start an identified Messenger
Just create a shortcut with "RunMsgr.exe login password" as target =)
[Image: rdmazu.php]
05-21-2008 09:17 PM
Profile PM Find Quote Report
Stigmata
Veteran Member
*****



Posts: 3520
Reputation: 45
20 / Other / Flag
Joined: Jul 2003
RE: Batch start an identified Messenger
No no no, you've misunderstood :)


Batch File:
quote:
START RunMsgr.exe email@hotmail.com pass123



Make sure that you change the email and the password to the correct ones. You also have to make sure that the batch file and the RunMsgr.exe file are in the same directory.

This post was edited on 05-21-2008 at 11:51 PM by Stigmata.
05-21-2008 11:48 PM
Profile PM Web Find Quote Report
francoisch
Junior Member
**


Posts: 53
Joined: Jan 2007
O.P. RE: Batch start an identified Messenger
hello Stigmata and thank you first for your answer.

I did fix my Bat file by adding the Start statement and replacing id and pwd with valid values:
START RunMsgr.exe fcvideo1@free.fr xxx

My Bat file and your pgm are indeed into the same directory.

We are progressing but not there yet: an Alert box says, allow me to copy it in French to be as precise as possible:
Erreur d'execution '-2130705660 (81000304)':
la methode '~' de l'objet '~' a échoué.

Globally speaking, it says that there is an execution error, the unnamed method applied to the unnamed object failed.

Hope this talks to you.

Thank you again for your help.

Francois
hello Stigmata and thank you firt for your help.

Yes, it does work at the opposite of what I just said.

At first, I had some trouble but discovered that I had a Messenger started under this very id / pwd.

If this would not be too much to ask, would you have some other code which would, at the opposite, batch stop a Messenger.

We could assume as a given that there would be only Messenger active at one period of time.

On this, I just think of one of these folks forgeting to stop his / her messenger when leaving and failing to restart it when coming back.

I could manage the trigger for this stop, if this would be feasible for you.

Thank you again very much.

Francois
05-22-2008 11:41 AM
Profile E-Mail PM Find Quote Report
Pages: (2): « First [ 1 ] 2 » 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