mIRC Homepage
Posted By: pouncer wanna add emots to theme - 15/11/06 11:03 PM
how can i add emots so that when someone says :P

it shows the actualy smiley icon for that in the window?
Posted By: Riamus2 Re: wanna add emots to theme - 15/11/06 11:23 PM
You have to use a DLL, or put your chat windows into custom picture windows. (Finding a DLL would probably be easier).
Posted By: Mpdreamz Re: wanna add emots to theme - 16/11/06 09:47 AM
Another method, less of a pain than picwin in this case, is to get the latest build of DCX. On join open a new dialog with a webbrowser control that's docked to the mIRC channel you just joined.

Then script all the events to update the HTML in the webbrowser through Javascript from mIRC.
Posted By: Riamus2 Re: wanna add emots to theme - 16/11/06 02:24 PM
i.e. a DLL laugh
Posted By: Mpdreamz Re: wanna add emots to theme - 17/11/06 10:18 AM
True smile i thought you was on about one of the specific built dll's for this, and since i've sworn to spread the dcx virus i thought i mentioned it smile.

Remember those annoying people who used to scream MDX whenever they had a chance ? Well thats me now laugh

DCX!
Posted By: Sais Re: wanna add emots to theme - 17/11/06 11:01 AM
MDX, DCX - What's the difference both TLAs ending in X. O:)
Posted By: Riamus2 Re: wanna add emots to theme - 17/11/06 12:48 PM
DCX is better and is really good. laugh
Posted By: pouncer Re: wanna add emots to theme - 18/11/06 03:11 PM
so using dcx. i think ill give it a go.

when i join a channel, will i have to halt the default window from opening? and instead open a dialog for the window? have you ever done this with dcx?

im a bit unsure. your idea of docking a webbrowser to the window and then being able to show emots by $replace(;p, imgsrce="whatever.png") makes sense. but how can i dock a webbrowser to the existing default window? any idea?

and also if i do what you suggested will the normal identifers like $chan and # work as normal?
Posted By: Mpdreamz Re: wanna add emots to theme - 18/11/06 04:24 PM
I actually done it a long time ago using nHTMLn but now DCX is around i would do it with DCX. nHTMLn has issues with 6.2 anyways.
Check out the /xdock function in the DCX documentation. You will have to learn about Cell Layout Algorithm.
/xdid -j dcx 4 alert('Hello')
allows you to execute javascript on a webcontrol

step one: make one html file (You will only need one).
step two: create a dialog table called html for instance.
step three: on join open a generic dialog name. i.e dialog -m $+($cid,$chan,.html) html
step four: ON *:dialog:*.html:init:0: {
-call xdock on the appropiate hwnd.
-browse to the html file from step one
-Apply a CLA scheme so it resizes appropiatly.
step 4:On some event call xdid -j on the webcontrol on the corresponding tablename to manipulate the DOM from the html file you browsed to in the init.

You gotta really want it wink
Posted By: TRT Re: wanna add emots to theme - 18/11/06 11:43 PM
i prefer to use imgmirc
though it doesnt seem to get update anymore its still working quite well
Posted By: pouncer Re: wanna add emots to theme - 19/11/06 12:42 PM
whats that? never heard of it. can i download it from anywhwere?

and Mpdreams. if i use what you suggested instead of echo i'll have to use xdid for all my theme stuff wont i?
© mIRC Discussion Forums