aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Pages: 1 [2]

Author Topic: fun with Events  (Read 10151 times)

Ezeltje

  • Full Member
  • ***
  • Karma: 1
  • Offline Offline
  • Posts: 130
    • Home page
so far so good
« Reply #15 on: December 17, 2006, 03:51:04 PM »

Error upon incompletion seems to work ok; I haven't tested the other yet (I still have a lot space in the temp partition).

I noticed that when Events commands fail, this is logged. Very useful!

In the meantime, I have updated the Events page on the Wiki.
Logged

phoenix

  • Evil respawning bird from aMule Dev Team
  • Developer
  • Hero Member
  • *****
  • Karma: 44
  • Offline Offline
  • Posts: 2503
  • The last shadow you'll ever see
Re: fun with Events
« Reply #16 on: December 17, 2006, 10:11:05 PM »

Nice!

You can test the other by creating a very large file on the temp partition just to see if it alarms, and deleting it afterwards.

Thanks for your support!
Logged

Fenix-TX

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 33
Re: fun with Events
« Reply #17 on: December 23, 2006, 07:23:02 PM »

Hi! i'm using amule on kde, and i want to know if it's possible associate kdialog with amule tray icon.
If i use kdialog --passivepopup %NAME 10 i show a popup but at left top of the screen, so i want to know if it is possible associate kdialog with an application or systray application...

Sorry for my bad english and explanation
« Last Edit: December 23, 2006, 07:23:45 PM by Fenix-TX »
Logged

phoenix

  • Evil respawning bird from aMule Dev Team
  • Developer
  • Hero Member
  • *****
  • Karma: 44
  • Offline Offline
  • Posts: 2503
  • The last shadow you'll ever see
Re: fun with Events
« Reply #18 on: December 24, 2006, 12:53:43 AM »

Hi Fenix-TX,

Sorry, I did not understand you, try to explain to me what do you mean by "associate kdialog with amule tray icon". I don't understand "associate" in this context. What do you want to do?

Cheers!
Logged

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4292
Re: fun with Events
« Reply #19 on: December 24, 2006, 01:00:40 AM »

I think he means, that the message should appear above the aMule tray icon, not in the top-left corner.
Logged

Fenix-TX

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 33
Re: fun with Events
« Reply #20 on: December 24, 2006, 11:36:39 AM »

Quote
Originally posted by phoenix
Hi Fenix-TX,

Sorry, I did not understand you, try to explain to me what do you mean by "associate kdialog with amule tray icon". I don't understand "associate" in this context. What do you want to do?

Cheers!

Sorry, i mean....

Quote
Originally posted by wuischke
I think he means, that the message should appear above the aMule tray icon, not in the top-left corner

....that.

And i have a problem with %NAME: If the file name is like "This is a file", it only shows "This".

I'm using this: kdialog --title "aMule Download Completed" --passivepopup %NAME 10
« Last Edit: December 24, 2006, 11:40:37 AM by Fenix-TX »
Logged

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4292
Re: fun with Events
« Reply #21 on: December 24, 2006, 11:40:54 AM »

Put the name in quotation marks: "%NAME" , than it should work.
« Last Edit: December 24, 2006, 11:47:23 AM by wuischke »
Logged

Fenix-TX

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 33
Re: fun with Events
« Reply #22 on: December 24, 2006, 11:42:58 AM »

Quote
Originally posted by wuischke
Put the name in quotation marks: "$NAME" , than it should work.

But "$NAME" or "%NAME" ?
Logged

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4292
Re: fun with Events
« Reply #23 on: December 24, 2006, 11:47:00 AM »

Sorry, "%NAME".
Logged

Fenix-TX

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 33
Re: fun with Events
« Reply #24 on: December 24, 2006, 11:50:45 AM »

Ok, i'll try it. Thanks

EDITED: It's working thanks!!!!!!!!
« Last Edit: December 24, 2006, 01:02:15 PM by Fenix-TX »
Logged

phoenix

  • Evil respawning bird from aMule Dev Team
  • Developer
  • Hero Member
  • *****
  • Karma: 44
  • Offline Offline
  • Posts: 2503
  • The last shadow you'll ever see
Re: fun with Events
« Reply #25 on: December 24, 2006, 03:04:38 PM »

Quote
Originally posted by Fenix-TX
Quote
Originally posted by wuischke
I think he means, that the message should appear above the aMule tray icon, not in the top-left corner

....that.
Very interesting, I did not know about kdialog, really nice. I have searched a lot to find a way to do it, but I did not manage to succeed :(

Maybe with the parameter --embed? But I found absolutely no documentation about it, except for the man page, and I tried with some X windows id's using xwininfo, but no results.
Logged

Fenix-TX

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 33
Re: fun with Events
« Reply #26 on: December 24, 2006, 04:55:30 PM »

I don't know how it works embed. But i see examples using dcop+kdialog,(i think that) it's possible with dcop+kdialog associate events to an application, but only on kde applications.

Gnome equivalent to kdialog is zenity.
« Last Edit: December 24, 2006, 04:56:11 PM by Fenix-TX »
Logged
Pages: 1 [2]