What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » need help

need help
Author: Message:
Drakal
Junior Member
**

Avatar
Ohh no! im in the warp hole!!

Posts: 32
– / Male / Flag
Joined: Jun 2007
O.P. Huh?  need help
how do i do so it says

-(my script) info:*
-(my script) has x lines
-(my script) is x kb big
-(my script) has x files and x maps
-(my script) is active/inaktiv*
or something in the debug window but x are the real number...?
*= that i already know

-(my script) info:*
-(my script) has 303 lines
-(my script) is 174 kb big
-(my script) has 6 files and 2 maps
-(my script) is active*

that was the info on my script:P

Scripts in progres:
AIOS??% 3050 lines (1800 lines more in the xml files) and 6 Mb (total)
(renamed from bad word filter.. it can do more than filter words now:P):
Programs in progres:
a calculator (name: Mini): ??% 3600 lines :O and 280 Kb (it was 100 lines first but my friend wanted it a little bit more advanced)
--------------
Sorry for my english.. im not so good
08-25-2007 02:53 PM
Profile PM Find Quote Report
roflmao456
Skinning Contest Winner
****

Avatar

Posts: 955
Reputation: 24
29 / Male / Flag
Joined: Nov 2006
Status: Away
RE: need help
you could try your hand at using some FSO functions :)

http://www.tutorial-web.com/asp/fso/

for example:
code:
// Code to get the size of a file
var fso = new ActiveXObject("Scripting.FileSystemObject");
Debug.Trace(fso.GetFile("C:\\test.txt").Size); // probably 0 kb.


and as for  the active and inactive.. i think you will have to use the registry.

Reg: HKCU/Software/Patchou/Messenger Plus! Live/GlobalSettings/Scripts/<scriptname>
and then the DWORD called Enabled will be there and will specify a value of 1 for enabled or 0 for disabled

This post was edited on 08-25-2007 at 09:20 PM by roflmao456.
[quote]
Ultimatess6
: What a noob mod
08-25-2007 03:19 PM
Profile PM Web Find Quote Report
Drakal
Junior Member
**

Avatar
Ohh no! im in the warp hole!!

Posts: 32
– / Male / Flag
Joined: Jun 2007
O.P. RE: need help
thx :D
but i said that i already know how to show if it is active or not... didnt u read "*=that i already know"?

edit: spell fix

This post was edited on 08-25-2007 at 05:23 PM by Drakal.
Scripts in progres:
AIOS??% 3050 lines (1800 lines more in the xml files) and 6 Mb (total)
(renamed from bad word filter.. it can do more than filter words now:P):
Programs in progres:
a calculator (name: Mini): ??% 3600 lines :O and 280 Kb (it was 100 lines first but my friend wanted it a little bit more advanced)
--------------
Sorry for my english.. im not so good
08-25-2007 05:21 PM
Profile PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: need help
quote:
Originally posted by roflmao456
Debug.Trace(fso.GetFile("C:\test.txt").Size); // probably 0 kb.
Should be
code:
Debug.Trace(fso.GetFile("C:\\test.txt").Size); // probably 0 kb.
08-25-2007 05:50 PM
Profile E-Mail PM Find Quote Report
Drakal
Junior Member
**

Avatar
Ohh no! im in the warp hole!!

Posts: 32
– / Male / Flag
Joined: Jun 2007
O.P. RE: need help
it works... but only with one file:( how do i do so it says the size of the whole folder?(fixed :P it was only to change getfile to getfolder... but it says in byte:( i want Kb how do i get is so?)(<--- that is fixed to:D felipEx helped me)

want it to say numbers of lines in script to:/

Finished code for the size:
code:
var fso = new ActiveXObject("Scripting.FileSystemObject");
    var kb = fso.GetFolder("C:\\Program\\Messenger Plus! Live\\Scripts\\Bad Word Filter").Size/1024;
    Debug.Trace("  -Bad Word filter is "+ kb.toString().substr(0, kb.toString().indexOf(".")+3 )+ "Kb");

--------------------------------------------------------------------
  >Bad Word Filter status:
  -Bad Word Filter is 252.69 Kb
  -Bad Word Filter has 528 lines
  -Bad Word Filters outgoing filter is: Activated
  -Bad Word Filters ingoing filter is: Deactivated

only the lines i need help with now

(fixed:D felipEx helped me again:D)
--------------------------------------------------------

it would be nice if someone helped me with the thing with how many files and folders it is in the mainfolder for my script... but it is not so important that the other things was :P

This post was edited on 08-27-2007 at 04:04 PM by Drakal.
Scripts in progres:
AIOS??% 3050 lines (1800 lines more in the xml files) and 6 Mb (total)
(renamed from bad word filter.. it can do more than filter words now:P):
Programs in progres:
a calculator (name: Mini): ??% 3600 lines :O and 280 Kb (it was 100 lines first but my friend wanted it a little bit more advanced)
--------------
Sorry for my english.. im not so good
08-26-2007 10:03 AM
Profile PM Find Quote Report
« 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