mIRC Homepage
Posted By: sparta dcx.dll - 09/09/10 11:32 AM
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.
Posted By: Riamus2 Re: dcx.dll - 09/09/10 11:39 AM
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.
Posted By: sparta Re: dcx.dll - 09/09/10 11:43 AM
Thnx, missed that site smile
Posted By: sparta Re: dcx.dll - 10/09/10 01:28 PM
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
Posted By: Riamus2 Re: dcx.dll - 10/09/10 02:08 PM
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.
Posted By: sparta Re: dcx.dll - 10/09/10 07:12 PM
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
  }
}
Posted By: sparta Re: dcx.dll - 11/09/10 12:30 PM
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
© mIRC Discussion Forums