Shoutbox

Batch start an identified Messenger - 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: Batch start an identified Messenger (/showthread.php?tid=83736)

Batch start an identified Messenger by francoisch on 05-15-2008 at 05:31 PM

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
RE: Batch start an identified Messenger by Stigmata on 05-19-2008 at 07:06 PM

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.


RE: Batch start an identified Messenger by francoisch on 05-19-2008 at 08:20 PM

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
RE: Batch start an identified Messenger by CookieRevised on 05-20-2008 at 12:45 AM

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...


RE: Batch start an identified Messenger by francoisch on 05-20-2008 at 07:44 AM

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


RE: Batch start an identified Messenger by Stigmata on 05-21-2008 at 01:05 AM

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.
RE: Batch start an identified Messenger by francoisch on 05-21-2008 at 07:14 PM

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


RE: Batch start an identified Messenger by Apatik on 05-21-2008 at 09:17 PM

Just create a shortcut with "RunMsgr.exe login password" as target =)


RE: Batch start an identified Messenger by Stigmata on 05-21-2008 at 11:48 PM

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.
RE: Batch start an identified Messenger by francoisch on 05-22-2008 at 11:41 AM

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
RE: Batch start an identified Messenger by francoisch on 09-27-2008 at 05:28 PM

Hello

This batch start procedure used to work very nicely until recently.

It now fails repeatedly with an alert box saying: “Execution error 7, insufficient memory”.

I still have:
- In a Bat file, this line:    START RunMsgr.exe martinot9@free.fr xxx
- Both the Bat file and the RunMsgr.exe are into the same directory
- No Messenger running at the time

I looked into Forums for this type of error with no success; would anyone have a suggestion?

Stigmata posted the code earlier on into this subject, for anyone willing to look at it; on my side, I am totally unskilled in VB.

Thank you in advance for your help.

Francois