What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » WLM Plus! General » Will's Launch MsgPlus Script

Pages: (4): « First [ 1 ] 2 3 4 » Last »
Will's Launch MsgPlus Script
Author: Message:
war59312
Junior Member
**

Avatar

Posts: 46
40 / Male / –
Joined: Sep 2002
O.P. Will's Launch MsgPlus Script
Hey,

Just a little script I wrote.

What it does is this.

It first lauchs a dos box and then hides the dos box so that the user cant close it. Then it lauchs MsgPlus. Then it waits a few secs, four for now. Then it lauchs Msn Messenger. Then when you quit msn messenger it closses MsgPlus.

This way MsgPlus is only running when it needs to be. Almost like a plug in. ;)

I do plan on sharing this ok.

But first I want to ask if anyone is willing to help me with something.

I would like to use a simple installer for it. The user has to provide MsgPlus unless I get permission to include. ;)

Same with MSN Messenger.

Like a simple installer that first dectedts if MsgPlus and MSN Messenger are installed. And if not then it notifies to user and directs them to the download. I would like the use to just click a simple download button that would download both for you and instal them both and then continue.

Then it would continue. It would replace all the shortcuts to my script. Meaning desktop, start menu, and quick launch.

User gets to choose that of course. Dont want to be confussed with adware/spyware junk.

And it places my scipt in the MSN Messenger folder.

And of course the install can uninstall as well

Just a simple little installer would be great if anyone could help me out.

Since I'm just a biggener and dont have a clue were to start.

Anyways its pretty simple script so most if not all of us here can use/setup easy but maybe not everyone who uses msgplus and msn messneger. So i think an installer would be nice for them.

Will proprably release both if someone can help me out.

But yes I will release this even without a installer. Just have to write up a readme tonight. And get all the needs files together.

Thanks a ton,
  Will

God Bless America
02-29-2004 12:02 AM
Profile PM Find Quote Report
Choli
Elite Member
*****

Avatar
Choli

Posts: 4714
Reputation: 42
43 / Male / Flag
Joined: Jan 2003
RE: Will's Launch MsgPlus Script
I can't do the installer. I haven't got time.
About the script: does it handle properly multiple instances of messenger (polygamy)? does it work with MSN messenger and Windows messenger (both)? When you quit messenger, does it wait a few seconds before closing plus?
Messenger Plus! en espaņol:
<< http://www.msgpluslive.es/ >>
<< http://foro.msgpluslive.es/ >>
:plus4:
02-29-2004 12:11 AM
Profile PM Find Quote Report
war59312
Junior Member
**

Avatar

Posts: 46
40 / Male / –
Joined: Sep 2002
O.P. RE: RE: Will's Launch MsgPlus Script
quote:
Originally posted by Choli
I can't do the installer. I haven't got time.
About the script: does it handle properly multiple instances of messenger (polygamy)? does it work with MSN messenger and Windows messenger (both)? When you quit messenger, does it wait a few seconds before closing plus?


Yes it works pefect with mulitiple polygamy instances of MSN Messenger.

It will work for both. ATM its defualt is MSN Messenger. You would just have to change it to use Windows Messenger instead. Thats another reason why I need an installer. So you can choose between both if you have both installed or just use the one that is only installed. But yes works with both.

Yes, atm I have it set to wait 3sec. to close. And yes it does shutdown properly.

The thing is a ms dos boxes popups and then tells it to shutdown. Cant find a way to hide it. :(

God Bless America
02-29-2004 02:33 AM
Profile PM Find Quote Report
Choli
Elite Member
*****

Avatar
Choli

Posts: 4714
Reputation: 42
43 / Male / Flag
Joined: Jan 2003
RE: Will's Launch MsgPlus Script
Nice to see you answered "yes" to the 3 quiestions ;)
quote:
Originally posted by war59312
The thing is a ms dos boxes popups and then tells it to shutdown. Cant find a way to hide it.
mmm... What language did you use? can I see the source?
btw, when you say a script do you mean a script like a vbs?
Messenger Plus! en espaņol:
<< http://www.msgpluslive.es/ >>
<< http://foro.msgpluslive.es/ >>
:plus4:
02-29-2004 12:17 PM
Profile PM Find Quote Report
Wabz
Elite Member
*****

Avatar
Its Groovy Baby!

Posts: 3459
Reputation: 29
39 / Male / Flag
Joined: Jan 2003
RE: Will's Launch MsgPlus Script
Sounds good (Y)  Nice idea

Although I dont understand why people cant leave :plus2: running?  It does no harm
Mess.be Forum Moderator
Messenger Plus ex-IRC Network Admin
Gimme a Rep!
02-29-2004 04:51 PM
Profile E-Mail PM Web Find Quote Report
war59312
Junior Member
**

Avatar

Posts: 46
40 / Male / –
Joined: Sep 2002
O.P. RE: RE: Will's Launch MsgPlus Script
quote:
Originally posted by Wabz
Sounds good (Y)  Nice idea

Although I dont understand why people cant leave :plus2: running?  It does no harm


Cause it's a memory hoge. ;)

God Bless America
02-29-2004 11:34 PM
Profile PM Find Quote Report
war59312
Junior Member
**

Avatar

Posts: 46
40 / Male / –
Joined: Sep 2002
O.P. RE: RE: Will's Launch MsgPlus Script
quote:
Originally posted by Choli
Nice to see you answered "yes" to the 3 quiestions ;)
quote:
Originally posted by war59312
The thing is a ms dos boxes popups and then tells it to shutdown. Cant find a way to hide it.
mmm... What language did you use? can I see the source?
btw, when you say a script do you mean a script like a vbs?


I will post it in a few days. Realy want an installer first.

Oh I just ment a batch file at the moment. Its very simple.

Plus there is a little bug at the moment. Some times MsgPlus does not shutdown correctly. Working on. But have to write a paper first. :( Was due friday. Fuck, i think i'm going to fail english. God damn it. I hate school!!!! :(

God Bless America
02-29-2004 11:36 PM
Profile PM Find Quote Report
ShawnZ
Veteran Member
*****

Avatar

Posts: 3146
Reputation: 43
32 / Male / Flag
Joined: Jan 2003
RE: Will's Launch MsgPlus Script
can u make the batch file avaible without setup? just for beta?
Spoiler:
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
03-01-2004 04:26 AM
Profile PM Web Find Quote Report
war59312
Junior Member
**

Avatar

Posts: 46
40 / Male / –
Joined: Sep 2002
O.P. RE: RE: Will's Launch MsgPlus Script
quote:
Originally posted by Shawnz
can u make the batch file avaible without setup? just for beta?


Well guess what. I fixed the bug and writing installer right now. Finally figured it out. I love NIS. :)

Doing MSN Messenger at build at the moment.

cya,
  Will

Also, anyone know how to set the icon for the shortcut?

Well here is a beta version then. :)

MSN Messenger Build

.exe File Attachment: Launch MsgPlus.exe (119.37 KB)
This file has been downloaded 265 time(s).

This post was edited on 03-01-2004 at 05:25 PM by war59312.

God Bless America
03-01-2004 04:45 AM
Profile PM Find Quote Report
CookieRevised
Elite Member
*****

Avatar

Posts: 15517
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: Will's Launch MsgPlus Script
In the installer, after I selected a different directory it appends "MSN Messenger" to it. This is wrong beheviour. If a user selects a different directory, then you don't have to add yet another subdirectory. Can you change that...

Doing this in a DOS batch file sounds like (excuse my word) crappy. It could be a nice programming exercise, but if you want to do it right, use vbscript at least. In that way you don't need those external programs you use either. Also, don't put choice.com, consoletool.exe, process.exe in the Windows System32 directory, that' a VERY BAD idea. put it into the directory where you installed your loader!!!!!!!!

Anyway, after looking at the actual batchcode (yes I can :p):
* Use " when you change to a directory with long filenames, because like you do it now, this will fail in certain situations.
* Anyway, you don't need to change directories to startup a program. This is only needed if the program NEEDS to be in its own directory. Otherwise, it is a bad idea and bound to have problems. Just put the directory before the actual filename.
* This said, if you don't catch the Plus! path from the registry, there is no way in knowing where it is installed on the users computer. (and thus failing in many situations)
* The use of choice to wait a couple of seconds is nice (never used it that way). Although it is not failproof. If the user presses a key during the wait, choice will think that the user just pressed the wrong key and it will halt the delay and waits until the user presses the right key. In otherwords, the script will never continue...
* Like any other loader/program that attemps to kill the Plus! process, it is doing this in a bad way. I mean, what if I startup 1 Messenger without your loader and 1 with your loader. What if I want Windows Messenger and MSN Messenger running at the same time. What if I use another loader like Jnrz's to load MSN Messenger. What if Msgplus is already started before you use the loader, maybe the user doesn't want you to kill plus then, etc... etc...
It isn't as easy as saying: lets start plus, then messenger, after messenger gots terminated, kill plus. The best method to detect if plus can be killed is to use polling and check if there is no instance left of msn messenger and/or windows messenger. But you can't do that with a batchfile.

Note: I realy don't see why you should hide your code.
1) the user can't change the paths
2) the user doesn't have any control on what's happening
3) the code isn't special at all, just your basic, start this, start that...

Also, read these threads:
http://shoutbox.menthix.net/showthread.php?tid=17884
http://shoutbox.menthix.net/showthread.php?tid=19095
http://shoutbox.menthix.net/showthread.php?tid=21619

PS: some things to improve:
* Catch the installation directory of plus in the registry. (this can be done within a batchfile, although again this isn't a good idea)
* Check if the programs you use (even msgplus.exe and all) actually exist before launching them

I'll send you the corrected batchfile as it is now (without the registry checking and file existance checking). Even though doing this with a batchfile is a bad idea to begin with... sorry...

This post was edited on 03-01-2004 at 09:35 AM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
03-01-2004 07:01 AM
Profile PM Find Quote Report
Pages: (4): « First [ 1 ] 2 3 4 » 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