Script to run a command line whenever a contact becomes online - 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 to run a command line whenever a contact becomes online (/showthread.php?tid=75296) Script to run a command line whenever a contact becomes online by jabaltie on 06-12-2007 at 06:29 PM
Hello ! RE: Script to run a command line whenever a contact becomes online by Volv on 06-12-2007 at 06:37 PM
code:You can replace \"C:\\path to file\\file.bat\" with any console command. RE: Script to run a command line whenever a contact becomes online by Matti on 06-12-2007 at 06:40 PM
Well, if you have any program which can send a message to your mobile, it's very easy to do that: code:or something likely... Note that if there are any spaces in your file path, you should place the path between quotes (e.g.: '"C:\Program Files\SendSMS\sendsms.exe"'). If you don't have a program which does that... well, I don't know. EDIT: Damn, Volv beat me again. But he made an error: his code would execute for EVERY contact. RE: Script to run a command line whenever a contact becomes online by Volv on 06-12-2007 at 06:42 PM
quote:I suppose RE: Script to run a command line whenever a contact becomes online by jabaltie on 06-12-2007 at 07:49 PM
Thanks to you all folks for the help ! RE: Script to run a command line whenever a contact becomes online by L. Coyote on 06-12-2007 at 07:54 PM
quote:Tips: * Download the documentation (from the script database in MsgPlus! Live site). * Search before posting something, as there's a chance it's been answered many times. The PLSC file is simply a ZIP file renamed. All you need to do is zip your script, add a ScriptInfo.xml file, which is explained in the script documentation, change .zip for .plsc, and that's it. RE: Script to run a command line whenever a contact becomes online by Volv on 06-13-2007 at 04:36 AM
quote:And you don't need to create a .plsc file in order to use a script. PLSC files are for the purpose of distributing the script to others. Just go to the Script Preferences and click "Create new", then "Edit" and place the code in there, click "Save" and you're good to go. RE: Script to run a command line whenever a contact becomes online by markee on 06-13-2007 at 04:50 AM
For running a program or opening a file or something similar use the code that has been said above. ie code:But if you want to execute a command line then replace that line with something like this code:That codes aborts a shutdown, i couldn't think of anything else off the top of my head and I know that one isn't harmful is you accidentally execute it. I actually use the Exec method at uni in a HTML document to bypass the 15 minute timer they have on the 'express' computers . RE: Script to run a command line whenever a contact becomes online by jabaltie on 06-13-2007 at 01:37 PM
Well, it turns out that there must be some sort of security checking within scripts. RE: Script to run a command line whenever a contact becomes online by jabaltie on 06-13-2007 at 01:44 PM
Ops, sorry, I found the mistake by myself... RE: Script to run a command line whenever a contact becomes online by Volv on 06-13-2007 at 02:28 PM
You really need to read the Scripting Documentation instead of being baby fed some of the most simplest things which can be done in/with scripts. If you can't find the scripting documentation, it is found here: http://www.msgpluslive.net/scripts/view/13-Official-Scripting-Documentation/ RE: Script to run a command line whenever a contact becomes online by jabaltie on 06-13-2007 at 02:57 PM
OK. I found it. Simply enable "debug" checking and you're done. RE: Script to run a command line whenever a contact becomes online by Volv on 06-13-2007 at 03:18 PM
quote:[Offtopic] Why do you need to be at the beach to look at gorgeous girls on your laptop? [/Offtopic] RE: Script to run a command line whenever a contact becomes online by Jesus on 06-13-2007 at 05:04 PM You can also try this script I created a while ago if your own version doesn't work out. RE: Script to run a command line whenever a contact becomes online by Matti on 06-13-2007 at 07:25 PM [OFFTOPIC] quote:Oh my god, that's great! It's wonderful to see how easy a system can be fooled. [/OFFTOPIC] |