Go Back   FlashFXP Forums > > > >

Harm's scripts ioBanana, Readd script, ioVote

Reply
 
Thread Tools Rate Thread Display Modes
Old 05-03-2005, 01:54 AM   #16
Harm
Too much time...
Ultimate Scripter
 
Join Date: Jul 2003
Posts: 1,430
Default

I knew I forgot something important. ioBanana.exe adds a colon at the end of those messages.
Code:
if {[string equal $msgtype "STATS"]} {
	if {[string equal [lindex $line end] "usertop:"]} {
		ioB:sndall $section "--------------------------------=UserTop=-------------------------------"
	} elseif {[string equal [lindex $line end] "grouptop:"]} {
		ioB:sndall $section "--------------------------------=GroupTop=-------------------------------"
	}
	continue
}
Harm is offline   Reply With Quote
Old 05-03-2005, 03:51 PM   #17
djdeluxe76
Member
 
Join Date: Mar 2005
Posts: 43
Default

thanks Harm! testing it now ...

cheers
DJ
djdeluxe76 is offline   Reply With Quote
Old 05-04-2005, 08:46 AM   #18
djdeluxe76
Member
 
Join Date: Mar 2005
Posts: 43
Thumbs up

ahhh ... great! it's working Thank you very much!

now how do I get to color the header in [c]14[c] if possible ?

Code:
[APPS] - --------------------------------=UserTop=-------------------------------
[APPS] - 1. user2 of grp2 :: 30F :: 423MB  :: 96.7% :: 157KB/s (WU:1/AU:10)
[APPS] - 2. user1 of grp1 :: 1F :: 14MB  :: 3.3% :: 199KB/s (WU:5/AU:1)
[APPS] - --------------------------------=GroupTop=-------------------------------
[APPS] - 1. grp2 :: 30F :: 423MB  :: 96.7% :: 157KB/s
[APPS] - 2. grp1 :: 1F :: 14MB  :: 3.3% :: 199KB/s

Cheers
DJ

p.s.
This is just a very very detailed detail so we can skip it if its too much work involved.
djdeluxe76 is offline   Reply With Quote
Old 05-04-2005, 08:52 AM   #19
Harm
Too much time...
Ultimate Scripter
 
Join Date: Jul 2003
Posts: 1,430
Default

Try something like that:
Code:
if {[string equal $msgtype "STATS"]} {
	if {[string equal [lindex $line end] "usertop:"]} {
		ioB:sndall $section "\[[c]14$section[c]\] - --------------------------------=UserTop=-------------------------------"
	} elseif {[string equal [lindex $line end] "grouptop:"]} {
		ioB:sndall $section "\[[c]14$section[c]\] - --------------------------------=GroupTop=-------------------------------"
	}
	continue
}
Harm is offline   Reply With Quote
Old 05-04-2005, 08:03 PM   #20
djdeluxe76
Member
 
Join Date: Mar 2005
Posts: 43
Default

teriffic! it's workin ... yay!

thanks for all your help, thanks very much.

the final code:

Code:
	        if {[string equal $msgtype "STATS"]} {
#		   putlog "DBG: $line"
		        if {[string equal -nocase [lindex $line end] "usertop:"]} {
			        ioB:sndall $section "\[[c]2[b][b]$section[c]\] - [c]14--------------------------------=UserTop=-------------------------------[c]"
		        } elseif {[string equal [lindex $line end] "grouptop:"]} {
			        ioB:sndall $section "\[[c]2[b][b]$section[c]\] - [c]14--------------------------------=GroupTop=-------------------------------[c]"
		        }
		        continue
	        }
cheers
DJ
djdeluxe76 is offline   Reply With Quote
Reply

Tags
2005, 233635, apr, close, executing

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 09:30 AM.

Parts of this site powered by vBulletin Mods & Addons from DragonByte Technologies Ltd. (Details)