Shoutbox

Script Question - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: Script Question (/showthread.php?tid=70774)

Script Question by GutterClown on 01-17-2007 at 11:14 AM

Simple question, requiring a simple answer.

Background info:
I run a small TeamSpeak server for a few guys.  Nothing too special.  just get in, and game.
But, I've got a dynamic IP.  so if my router resets, it locks the other guys out of the server until I get them the new IP.

now, I'm running the server on a dedicated machine, and it's annoying to constantly get my own IP (cmd => ipconfig /all) to send to them.


So, my question is as follows.  If I were to set up a small MSN account on the server, and had it just sitting there with selected contacts, could I set up a script to respond to them (for instance, contact says: .getIP) and have the server send it's current IP(s) to that contact?

And more importantly, has this been done before?

====================================

Alas, the elusive search function reveals that I could simply code an auto-talker to respond with "(!IP)"

Nevermind.


RE: Script Question by markee on 01-17-2007 at 11:22 AM

You can write (!IP) in a message and that sends your IP address (this is a feature of Plus! itself and has been for a umber of versions).  For another method of making it easy on people you can have a look at the likes of http://www.no-ip.com which has a redirection capability to redirect a subdomain that you set up to a dynamic IP address, you just need to connect to them to tell the server your new IP.  I hope this is what you are after.


RE: Script Question by GutterClown on 01-17-2007 at 01:18 PM

Actually, I do still require an oppinion.

Is there a function to close a contact window?

ie: contact sends request for IP, server sends it, then closes the window

Otherwise there'll be MSN windows open all over the place, taking up useless RAM.

=========================================

...Damnit.  Why do I always finish posting before checking the search results tab.


RE: RE: Script Question by Felu on 01-17-2007 at 01:24 PM

quote:
Originally posted by GutterClown
Is there a function to close a contact window?

quote:
Originally posted by Matty
code:
Interop.Call('user32', 'SendMessageW', ChatWnd.Handle, 0x0010/*WM_CLOSE*/, 0, 0);

Close a Chat Window
RE: Script Question by Spunky on 01-17-2007 at 02:37 PM

or just set the auto-reply message to:

(!IP)
/close