Possible to create an E-Mule module? Thread last updated on 2006-10-25 21:49:13

Posted by member 274805 on 2006-10-23 07:01:35

Hey guys, ive been a bit of a forum lounger but last night i thought of an idea (but no clue how to implement it) basically, if any of u guys are aware of the "single click" data window that opens in a small box showing upload/download speed/drive space left etc?

Would it be possible to utilize whatever it is that shows that data, into a module? (i dont have too much experience in LS other than basic knowledge in how it works)

Thanks for any feedback on this
--2k--

Posted by member 1 on 2006-10-23 08:36:56 link

You mean other than xLabel or Rainmeter?

Posted by member 274805 on 2006-10-23 08:58:04 link

heh, as i said above, i only understand a small amount of LS, how can i make the modules you mentioned read the data from e mule?

Posted by member 1 on 2006-10-23 11:31:03 link

maybe I don't understand emule...but what drive space would it be reporting? Up/Down speed will be like 99.9% of your total so what is the difference between that and the one read off the NIC?

Posted by member 274805 on 2006-10-23 18:36:35 link

nah, i mean the download speed that e-mule is downloading and uploading at, (it also shows the remaining space of your incoming folder/drive)
http://i17.photobucket.com/albums/b89/Ali_2k/emule.jpg
thats a pic of the utility within e-mule, but i want to extract that data and put it (as you said) into rainmeter

Posted by member 1 on 2006-10-23 18:52:31 link

But like I said...99.9% of your up/down rate is going to be eMule...so you can just pull it from the NIC which xLabel already does. xLabel also will pull your drive free space. Therefore...you don't need a new module...just need to read the xLabel docs.

Posted by member 248213 on 2006-10-23 19:11:03 link

DeV: You are right, you dont understand eMule =P

You can throttle eMule to various different speeds so that you can do other things, while still maintaining a connection with ed2k (the eMule p2p network).


Ali_2k: eMule can display its speeds in the title bar, and I think there is some module that can read application titlebars. Can't remember the name of said module :/
But you could then use xlabel to display that modules output.

Anybody remember the name of that module?

Posted by member 5575 on 2006-10-23 19:35:23 link

I believe that would be... xlabel. =P
windowTitle('class')
Title of the window with the given class name.

Posted by member 248213 on 2006-10-23 19:45:08 link

Ah! There you go! Easy peasy lemon squeezy XD

Posted by member 1 on 2006-10-24 04:59:59 link

fractal: but even if you throttle it what else would you be using your net connection for that would be so high where that label wouldn't work by default? I mean come on...are you really going to be running eMule and BitTorrent at the same time? Even if you throttled back on eMule so you could browse the web...the web traffic isn't going to be that high in comparison.

Posted by member 212670 on 2006-10-24 06:15:28 link

As someone who does lots of torrent fun, I can tell you that people typically want to throttle their upload speed because ISPs generally give you a lot less upload bandwidth, compared to download. (For example, on some servers, I can often download near 1500k - 2000k a second, sustained, but my upspeed is capped around 50k.) If I leave my upstream unthrottled, playing online games or surfing becomes much slower, especially if I have multiple torrents going, so I usually chop it up in to pieces.

Posted by member 248213 on 2006-10-24 08:26:14 link

Yeah, the upload is an issue, but also you might want to play a game, or let someone else use some of the router, or not use all your data allowance on pr0n etc etc.

Posted by member 274805 on 2006-10-24 11:58:21 link

ok kool, so let me see if ive understood this, i set e mule to show download\upload speed in its title bar? i currently have:

*label emule

emulex 200
emuley 200

emuleWidth 147
emuleHeight 22

emuleTransparencyMode true
emuleAlwaysOnTop false

emuleFontHeight 15
emuleFontColor 137A99
emuleLeftBorder 5
emuleRightBorder 5

emuleSolidColors 000000 115C6F 115C6F
emuleSolidBevelSize 1


now this is about as far as my understanding of LS goes, please teach me =P where do i place the "windowTitle('class')"?

Posted by member 212670 on 2006-10-24 14:27:56 link

You want to make it the label's text. Like:

YourLabelText "[windowTitle('MozillaUIWindowClass')]"

(That's with Firefox as an example... I don't have emule, so you'll have to change MozillaUIWindowClass to whatever the class name is for emule.)

Posted by member 274805 on 2006-10-24 14:50:36 link

aye sweet, just checked the post to find ive written something that looks exactly like you made :D i feel special... anyway, how do i go about finding out the class of any window?, i can then apply it to emule itself

Posted by member 212670 on 2006-10-24 15:26:48 link

Posted by member 274805 on 2006-10-24 15:55:00 link

nice save, cheers. although it looks like i cant single out the actual download/upload data, only the name "emule v0.47c". you think im doing somthing wrong?

Posted by member 1 on 2006-10-24 16:02:44 link

xcal: While that may be true...how much of the extra bandwidth that you set aside is being constantly used? Yes you would see a spike here and there but come on...it will give you a good enough idea? Sh!t why does it even matter? It isn't like you can do anything about a slow/fast download/upload. What does the information even specifically mean? Are you going to constantly watch it and jerk off to it? No...you are going to look at it when you notice that things are slow. To me it is just another user not having a full understanding of what they want and jumping through hoops for it. You want to waste your time on it fine...but you shouldn't drag others into it.

Posted by member 274805 on 2006-10-24 16:11:30 link

wooa, chill. im only utilizing features to suite me, to create a UI i enjoy, if he wants to help (which im greatly apreciating) let him. i dont understand why you feel so strongly about him knowing that sometimes changing you settings can make a difference...

Posted by member 274805 on 2006-10-24 16:17:15 link

anyway, it looks like after i did something, it started working :D

one thing remains, on the other labels on the theme im using, they all use a alpha fade when you mouse over, or off:

ClockOnEnter !LabelSetAlpha Clock 255
ClockOnLeave !Clock_Change_Alpha


ive tried to apply this to my new label but it hasent worked, im guessing cos there is no !bang command for my eMule alpha thingy, how do i create a new one to resolve this?

Posted by member 274805 on 2006-10-24 16:59:08 link

ok, this is what i have, can anyone test it out, and tell me why the scroll wont.. well. scroll and what i need to add for the fade onEnter and onLeave to work?
*label emule

;places in bottom right
emulex 1097
emuley -62

emuleText "Status: [windowTitle('#32770')]"

emuleWidth 180
emuleHeight 22

emuleTransparencyMode true
emuleAlwaysOnTop false

emuleTitleTextFade 5

emuleFontHeight 15
emuleFontColor 137A99
emuleLeftBorder 5
emuleRightBorder 5

emuleSolidColors 000000 115C6F 115C6F
emuleSolidBevelSize 1

emuleTitleScroll horizontal
emuleTitleScrollSpeed 2

Posted by member 212670 on 2006-10-24 16:59:10 link

While I agree with DeV about the necessity of displaying the information, who are we to say what a user should or should not have displayed in their theme? If we all only used what was necessary in our themes, we'd only have a popup. If someone else wants to waste their time helping, that's really their decision, but thank you for caring.

While that may be true...how much of the extra bandwidth that you set aside is being constantly used?

Usually all of it, but it depends on how tight I make the allocations.

@Ali_2k: It's time for you to open the xlabel help file. You'll find it in \litestep\modules\docs\xlabel-ver#.chm.

Posted by member 274805 on 2006-10-24 17:01:19 link

will do, but thanks for ure help though, its been good fun working through it. cheers again ./salute
--2k--

Posted by member 212670 on 2006-10-24 17:07:55 link

Keep in mind that the version of xlabel which the theme uses, that you're modifying, may need to be updated in order to support scrolling. That has the potential to break other things if syntax has changed, but it'll be a good learning experience.

You'll find the module's version number in the theme.rc.

Posted by member 93947 on 2006-10-24 19:52:37 link

Funny/sad side conversation. But im glad it actually didnt take 23 replies to solve this problem ... that really would have scared me ^^

Posted by member 1 on 2006-10-24 20:32:11 link

sorry about that...it's been a bad day. Even still...there is no point to this module/config. It is just more crappy eye candy. Why don't you load up LSTetris and LSAfghan while yer at it?

Posted by member 1949 on 2006-10-24 21:43:42 link

why bother dev...

Posted by member 5575 on 2006-10-25 00:27:25 link

Hey - what's LSAfghan? I don't think I have that module yet... =P

Posted by member 248213 on 2006-10-25 21:49:13 link

Neither, and hey, if DeV hates it, it must be good! XP