Post Reply 
 
Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Menu To XPopup Converter by Flobse | nicklist on command identifier $$1 does not work
Author Message
DEATHJ0KER Offline
Junior Member
**

Posts: 4
Joined: Jul 2010
Reputation: 0
Post: #1
Menu To XPopup Converter by Flobse | nicklist on command identifier $$1 does not work
Hello everyone sorry my english ... I encountered this problem by creating popups ... commands addressed to $$1 $1 are interpreted as "position of the button ($1 == 1) 2 so.../notice $$1... how can I fix the command to the selected nick in nicklist or active in the query window?
Post script to a greater understanding of nicklist
thanks Huh


Attached File(s)
.txt  xnicklist~VxDscript.txt (Size: 37.38 KB / Downloads: 5)
(This post was last modified: 07-07-2010 11:55 PM by DEATHJ0KER.)
07-07-2010 11:53 PM
Visit this user's website Find all posts by this user Quote this message in a reply
MTX Offline
Junior Member
**

Posts: 21
Joined: Jun 2009
Reputation: 1
Post: #2
RE: Menu To XPopup Converter by Flobse | nicklist on command identifier $$1 does not work
(07-07-2010 11:53 PM)DEATHJ0KER Wrote:  Hello everyone sorry my english ... I encountered this problem by creating popups ... commands addressed to $$1 $1 are interpreted as "position of the button ($1 == 1) 2 so.../notice $$1... how can I fix the command to the selected nick in nicklist or active in the query window?
Post script to a greater understanding of nicklist
thanks Huh

Why did u using:
;xpopups
PHP Code:
alias xpopup_menu {
  var %
menu = <mirc|mircbar>, %ico1 = <icon path/name>
  ;; 
Create an icon list by cmd:
  
xpopup -%menu 1,2,3... %ico1 // if you have an icon library (.icl)
  
xpopup -%menu %ico1 // if you have a sigle icon (.ico)

  
;;There are two special reserved menu names in XPopupThey are for mIRC's regular popup menus mirc (channel, statusbar, query and nicklist)
  ;;and mIRC'
s menubar popup menu mircbar  (the menubar). Their appearance can be changed by XPopup and activated with the following command:
  
mpopup %menu [1|0// 0 = disable 1 = enable
  
xpopup -%menu <office2003,office2003rev,officexp,icy,icyrev ,grade,graderev ,normal ,vertical ,verticalrev or custom menu styles>
  ;;if 
popup style custom you must insert background picture by using this command:
  
xpopup -%menu picture.jpg
  xpopup 
-%menu +dpi //This command lets you set the menu extended styles. 
  
+d  Disabled items display a selection box.
  +
Icons have a 3D shadow effect when menu item is selected.
  +
Icons have a plain 3D effect when menu item is selected.
  
xpopupstyle %menu


PHP Code:
alias xpopupstyle {
  var %
pop = $1
  
if (%pop) {
    
xpopup -%pop 1 <RGB color for background>
    
xpopup -%pop 2 <RGB color for iconbox>
    
xpopup -%pop 3 <RGB color for checkbox>
    
xpopup -%pop 4 <RGB color for disablecheckbox>
    
xpopup -%pop 5 <RGB color for disabledselected>
    
xpopup -%pop 6 <RGB color for disabledtext>
    
xpopup -%pop 7 <RGB color for selecttext>
    
xpopup -%pop 8 <RGB color for selectbox>
    
xpopup -%pop 9 <RGB color for separator>
    
xpopup -%pop 10 <RGB color for menustext>
    
xpopup -%pop 11 <RGB color for selectedtext>
    
xpopup -%pop +r 1 // create a rounded around menus text.
  
}
  else return


run popup for apply to mirc menu on start up mirc with this event:
PHP Code:
on 1:START:xpopup_menu 

and This used for siple nicklist menu

PHP Code:
menu nicklist {
  ;;
your menu commands here
  
;;<icon number in icon list> <char11text [chr9] [shortcut like a +T]:any mirc command
  
;;e.g. :
  
1 $chr(11) $+ info $$1:cs info $$1
  control
  .2 $chr
(11) $+ Op (+o) $$1:mode # +o $$1
  
.3 $chr(11) $+ DeOp (-o) $$1:mode # -o $$1
  
.-
  
.4 $chr(11) $+ Voice (+v) $$1:mode # +v $$1

see attachment picture below to example mirc menu (xpopup)
   

for another help go to http://dcx.scriptsdb.org/xpopup.htm
Hope this help has a usefull for you. Smile

Manchester United FC iRC Huh
(This post was last modified: 07-10-2010 08:08 PM by MTX.)
07-10-2010 08:01 PM
Visit this user's website Find all posts by this user Quote this message in a reply
DEATHJ0KER Offline
Junior Member
**

Posts: 4
Joined: Jul 2010
Reputation: 0
Post: #3
Thumbs Down RE: Menu To XPopup Converter by Flobse | nicklist on command identifier $$1 does not work
MTX thank you for having responded in great detail ... I think I will review most of the code of my script.

Idea ... but I still doubt on some direct controls that work well using the 'identifier $active($nick) instead of "$$1"

For example:
/notice $$1 $$?="What do you say?"
/query $snick($active)

=====================================================
on *:signal:XPopup-nicklist: {
if ($1 == 1) { /load -rs scripts\popups\nicklist.ini | /unload -rs scripts\iconpopups\nicklist.vxd }
elseif ($1 == 2) { /notice $snick($active) $$?="What do you say?" }
elseif ($1 == 3) { /query $snick($active) }
}
=====================================================

Thanks again MTX ... revise 'code Angel
VxÐ~$¢®iþ†


Attached File(s) Thumbnail(s)
   
(This post was last modified: 07-11-2010 08:57 PM by DEATHJ0KER.)
07-11-2010 08:46 PM
Visit this user's website Find all posts by this user Quote this message in a reply
DEATHJ0KER Offline
Junior Member
**

Posts: 4
Joined: Jul 2010
Reputation: 0
Post: #4
RE: Menu To XPopup Converter by Flobse | nicklist on command identifier $$1 does not work
thanks to 'upgrade' s addon XPopup Converter by Flobse the problem of '$$1 identifier is resolved.
can be found here http://www.mircscripts.org/comments.php?cid=4392


Attached File(s)
.txt  nicklist.txt (Size: 20.95 KB / Downloads: 5)
07-28-2010 08:28 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump: