Batch + aMSN: Launching multiple accounts automatically

Have you ever wondered how to open multiple aMSN accounts with one click? Well, this is what I’ve done with some Batch and a hack found at the aMSN forums:

  1. Open the amsn file (it has no extension) with NotePad++ or a similar text editor.
  2. Add the following code before the line that has “vwait events”:
 proc auto_login_argv { user } {
if { [winfo exists .main.loginscreen] } {
.main.loginscreen.user delete 0 end
.main.loginscreen.user insert 0 $user
.main.loginscreen UsernameEdited
after 1000 “::MSN::connect”
}
}

if { $argv != “” } {
after idle [list auto_login_argv $argv]
}
  1. Save the changes and go to the beginning of the file. Replace the first lines for the following:
#!/bin/sh
# \
exec wish $0 $@
  1. Save changes again.
  2. Now we create the batch file (.bat). Open a text editor and save an empty file as aMSN.bat, and save it on the Desktop or somewhere else. Add the following to it:
@echo off

echo Open mymail1@hotmail.com? [Y / N]
set /P open1=
if /i “%open1%” == “Y” start “” “C:\Program Files\aMSN\bin\wish.exe” “C:\Program Files\aMSN\scripts\amsn” mymail1@hotmail.com

echo Open mymail2@hotmail.com? [Y / N]
set /P open2=
if /i “%open2%” == “Y” start “” “C:\Program Files\aMSN\bin\wish.exe” “C:\Program Files\aMSN\scripts\amsn” mymail2@hotmail.com

echo Open mymail3@hotmail.com? [Y / N]
set /P open3=
if /i “%open3%” == “Y” start “” “C:\Program Files\aMSN\bin\wish.exe” “C:\Program Files\aMSN\scripts\amsn” mymail3@hotmail.com

echo Open mymail4@hotmail.com? [Y / N]
set /P open4=
if /i “%open4%” == “Y” start “” “C:\Program Files\aMSN\bin\wish.exe” “C:\Program Files\aMSN\scripts\amsn” mymail4@hotmail.com
  1. Save the changes. Now double-click on the aMSN.bat file and make sure it works.

There are probably better ways to code it, but I’m rather new to Batch. I only use small bits of code from time to time.

The only downside I see is that aMSN eventually takes up more memory than WLM. But still, I like its less cluttered interface.

Tags: , ,

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


%d bloggers like this: