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)
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.