mIRC Home    About    Download    Register    News    Help

Print Thread
#162827 23/10/06 05:18 AM
Joined: Apr 2005
Posts: 1,009
raZOR Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Apr 2005
Posts: 1,009
okay, i know mdx scares ppl off but i promise this isnt big thing...

anyhows... i have list control that uses mdx.
and only thing i am interested in how to "extract" exact
item i need from this output:

(would like examples how to get item1,2 and 3 but in each individual way not all together) smile

Code:
 
0 +fs 0 0 0 item1 	+fs 0 0 0 item2 	+fs 0 0 0 item3
 


ehm.. since forum shows it different, here screenie:


listcontrol is formated like this:

Code:
|colon 1|colon2 |colon 3|
|        |        |        |
|item 1 | item 2 | item 3 |
  


list ID is 2
and i have this code (for echoing) in SCLICK event:
if ($did = 2) { .echo -a $did(2).seltext }
...
i also get "* /echo: insufficient parameters"
for that same line altho i DID selected valid line
that contains some info (items)

so help is needed smile

Last edited by raZOR; 23/10/06 05:26 AM.

IceCapped
#162828 23/10/06 05:43 PM
Joined: Apr 2005
Posts: 1,009
raZOR Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Apr 2005
Posts: 1,009
solved.


IceCapped
#162829 23/10/06 10:14 PM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
While I don't use MDX on a regular basis, I do have it. Would you mind posting the resolution in case others have the same problem?

#162830 24/10/06 07:16 PM
Joined: Apr 2005
Posts: 1,009
raZOR Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Apr 2005
Posts: 1,009
well since i only needed to extract item2

this is code i use:

$gettok($gettok(here_comes_whole_output_line,2,9),5,32)


IceCapped

Link Copied to Clipboard