mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Mar 2007
Posts: 9
L
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
L
Joined: Mar 2007
Posts: 9
Hello,
I have re-wrote/motify an existing script with balloon popups on the desktop if someone write something.

It works good except one thing. When the ballon appaer it display the channelname, the user and the text, but how:
-How can I display the groupname? $server show me the the full URL to the server, but I want the groupname.
-I use showmirc -s to show the mIRC window if it was minimized/in tray, but how can I select the channel for the message that I not must scroll through all the channels to find the right one, for example:
User ABC Wrote in #XYZ on SERVER:
Blah blah
Now I want that #XYZ is selected and opens when I click on the balloon.

Peter

Joined: Dec 2002
Posts: 2,031
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,031
Quote:
How can I display the groupname?

$network ?

Quote:
Now I want that #XYZ is selected and opens when I click on the balloon.


/window -a #XYZ

Last edited by RoCk; 27/03/07 03:43 PM.
Joined: Mar 2007
Posts: 9
L
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
L
Joined: Mar 2007
Posts: 9
thanks for the answer,
but the second answer not work correct, because unfortunately I have some channels with the same name on different servers.

Peter

Joined: Mar 2003
Posts: 612
B
Fjord artisan
Offline
Fjord artisan
B
Joined: Mar 2003
Posts: 612
/join #channel should work. I use short aliases to quickly change between active channels all using /join, even when already IN the channel.

Last edited by billythekid; 27/03/07 06:45 PM.

billythekid
Joined: Mar 2007
Posts: 9
L
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
L
Joined: Mar 2007
Posts: 9
hmmmh, I guess my question was not clearly enough...
1) I am in ~20 channels online, some of them have the same name, #help for example, and mIRC is minimized in the tray
2) someone write something on Server ABC in Channel XYZ
3) the script show me with the picture window function a window with "User 123 wrote on ABC in channel XYZ ...." on the desktop
4) I click on this picture window on the desktop
5) I open mIRC and I must search in the treebar/switchbar in which channel the user have spoke something and click on it to open the channel.

It would be nice if I could do the same thing like this search in the tree and open/select the channel within the script.

At the moment I have the following code (thanks Rock)
Code:
menu @DesktopPopup {
  sclick { 
    showmirc $iif($appstate == minimized,-r,-s)
    window -a %DesktopPopup.LastChannel
  }
  rclick { DesktopPopup.doclose $iif($mouse.key & 4,-s) }
  $DesktoPopup.doclose
}
;DesktopPopup.LastChannel stores the channel which "produce" the DestopPopup

But this not work correctly, it works only if the same group than the message was selected before I minmized mIRC, if another group was selected, mIRC opens, but I must open and select the correct channel per hand.

Last edited by Lastwebpage; 27/03/07 09:27 PM.
Joined: Dec 2002
Posts: 2,031
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,031
Set a variable for the CID like you did for the channel...

you set %DesktopPopup.LastChannel to $chan or #
so also set %DesktopPopup.LastCID to $cid

then use the /scid command in your script with the new variable %DesktopPopup.LastCID

Code:
menu @DesktopPopup {
  sclick { 
    showmirc $iif($appstate == minimized,-r,-s)
    scid %DesktopPopup.LastCID window -a %DesktopPopup.LastChannel
  }
  rclick { DesktopPopup.doclose $iif($mouse.key & 4,-s) }
  $DesktoPopup.doclose
}
;DesktopPopup.LastChannel stores the channel which "produce" the DestopPopup
;DesktopPopup.LastCID stores the connection ID (CID) which "produce" the DesktopPopup

Joined: Mar 2007
Posts: 9
L
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
L
Joined: Mar 2007
Posts: 9
That was the solution,
many thanks.

Peter


Link Copied to Clipboard