Project

General

Profile

[Script] List all Emoticon triggers in Menubar

Added by Per Amundsen over 1 year ago

List all Emoticon triggers in Menubar

Requires AdiIRC 2.7+.

2018/06/30

Fixed an error when reloading the script
Fixed an issue with $menucon file path

Script

on *:start:{
  if (!$menunbar(emoticons)) {
    menubar -a emoticons @emoticons Emote
  }
}

menu @emoticons {
  $submenu($listemoticons($1))
}

alias -l listemoticons {
  ; Show icons using the new $menuicon identifier
  if ($emoticons($1)) {
     return $menuicon($qt($emoticons($1).file)) $emoticons($1) $+ :editbox -ai $emoticons($1)
  }
}

Replies (3)

RE: [Script] List all Emoticon triggers in Menubar - Added by Roman Macuda over 1 year ago

Nice work.. but, (I'm not a software developer so maybe it's obvious) is there any limitation of entries ? In my case (ca 600 emots installed) only part of them are available in menu and list is descending.

Regards
Roman

RE: [Script] List all Emoticon triggers in Menubar - Added by Per Amundsen over 1 year ago

There is a max of 250 $submenu items, it is possible to call $submenu several times with some parameters, but I question the purpose of showing 600 menu items.

For descending, something like this should work:

alias -l listemoticons {
  return $calc($emoticons(0) - $emoticons($1)) $+ :editbox -ai $calc($emoticons(0) - $emoticons($1))
}

RE: [Script] List all Emoticon triggers in Menubar - Added by westor (GR) 3 months ago

There is an faster method.

alias -l listemoticons {
  ; Show icons using the new $menuicon identifier
  if ($emoticons($1)) { return $menuicon($qt($emoticons($1).file)) $v1 $+ :editbox -ai $v1 }
}
    (1-3/3)