mIRC Home    About    Download    Register    News    Help

Print Thread
#225784 09/09/10 11:32 AM
Joined: Feb 2003
Posts: 3,432
S
sparta Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
somone that using dcx.dll ? i trying to find a good tutorial that explain how to use it, but no luck so far, somone that know of any good tutorials? looked at mircscripts.org, but i couldent find one that made med understand how it works.


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
sparta #225785 09/09/10 11:39 AM
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
http://dcx.scriptsdb.org/

You can find examples and information about everything it can do directly from their site. It's set up somewhat similar to mIRC's help file, so it should be easy enough to see how to use the commands. I know that is how I learned it years ago. It even has tutorials if you need a bit more than just the help file type of layout.


Invision Support
#Invision on irc.irchighway.net
Riamus2 #225787 09/09/10 11:43 AM
Joined: Feb 2003
Posts: 3,432
S
sparta Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
Thnx, missed that site smile


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
Riamus2 #225818 10/09/10 01:28 PM
Joined: Feb 2003
Posts: 3,432
S
sparta Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
I got so far so i created a dialog with listview, and i can insert a text in the first colum with:

xdid -a testing 1 0 0 + 0 0 0 0 0 0 $+($gettok($read($mircdirscripts\txt\qtmp.txt, %x),1-3,32))

now i want to insert text to the next colum, how would i do this? i cant figure it out, been reading the page Riamus2 gave me, and i cant find it out from there, somone that can explain it to me?

thnx

%x return what line i want to read.

testing is the name of the dialog


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
sparta #225820 10/09/10 02:08 PM
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
I don't have it here to test with, but try changing the N value. 0 would place the text at the end, but changing N to something else may change the column. Other than that, I'm not sure without being able to test it out.


Invision Support
#Invision on irc.irchighway.net
Riamus2 #225826 10/09/10 07:12 PM
Joined: Feb 2003
Posts: 3,432
S
sparta Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
I found out how i add the text to the other columns
Code:
xdid -a testing 1 1 0 + 1 0 0 0 $rgb(170,213,255) $rgb(0,255,255) $+($gettok($read($mircdirscripts\txt\qtmp.txt, %x),1-3,32)) $chr(9) + 0 -1 $rgb(10,210,250) $rgb(255,0,255) $+($gettok($read($mircdirscripts\txt\qtmp.txt, %x),4-5,32)) $chr(9) + 0 -1 $rgb(120,255,210) $rgb(255,255,0) $+($gettok($read($mircdirscripts\txt\qtmp.txt, %x),6,32))  $chr(9) + 0 -1 $rgb(120,255,210) $rgb(255,255,0) $+($gettok($read($mircdirscripts\txt\qtmp.txt, %x),7-,32))

I dont know why i need to use $rbg(), but if i remove the the code will be broken, but stumbled on a new problem, how can i return what i just cliked on..

I tested to echo a bit, and this is what i got so far.
Code:
alias testing_cb {
  if ($2 != mouse) {
    var %dname = $dname , %did = $3 , %devent = $2 , %data = $4-

    echo -a %name -> %did -> %devent -> %data
  }
}

The reply the echo give me.
testing<dialog name> -> 1<ID> -> sclick<what i just did> -> 2<what row> 3<what column>

But im unable to return the text/data in the dialog column, have been trying to return $4- as the data, but all i get is the column i just clicked, i need to return all info from the 4 columns i have and get it in one line, somone that can point me in the right direction?

after som more testing i can return the text from the dialog. but only from the column i just clicked, not from all in the same row, the line i was using was
Code:
alias testing_cb {
  if ($2 != mouse) {
    var %dname = $dname , %did = $3 , %devent = $2 , %data = $4-

    echo -a $xdid(testing,%did,$gettok(%data,1,32),$gettok(%data,2,32)).text

    echo -a %name -> %did -> %devent -> %data
  }
}

Last edited by sparta; 10/09/10 07:43 PM.

if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
sparta #225850 11/09/10 12:30 PM
Joined: Feb 2003
Posts: 3,432
S
sparta Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
No one that have any ideas on this? been searching the net, but no luck so far, and no action in the dcx forum ether. smirk


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }

Link Copied to Clipboard