mIRC Home    About    Download    Register    News    Help

Print Thread
#225681 08/09/10 12:59 AM
Joined: Sep 2010
Posts: 13
E
Pikka bird
OP Offline
Pikka bird
E
Joined: Sep 2010
Posts: 13
How can I make only the background transparent? Also I want to make my window's background image transparent but not having to be a desktop window. Is there a dll for this or something?

Joined: Nov 2009
Posts: 81
V
Babel fish
Offline
Babel fish
V
Joined: Nov 2009
Posts: 81
TDialog.dll: http://www.mircscripts.org/download.php?id=2205&type=5

Screenshot: http://i9.fastpic.ru/big/2010/0907/18/f59cd568aff78371f2ac6be8ba474418.png

Main script:
Code:
alias conky {
  var %rgb = $conky::rgb
  window -Cdpw0 +dL @conky -1 -1 $window(-1).w $window(-1).h
  drawfill -r @conky %rgb %rgb 0 0
  dll TDialog.dll TDColor $window(@conky).hwnd > 0 > %rgb
}
alias conky::rgb {
  var %R = $base(FB,16,10)
  var %G = $base(11,16,10)
  var %B = $base(D2,16,10)
  return $rgb(%R,%G,%B)
}
on *:START: {
  conky
}


and.. drawing anything!
/example_time
Code:
alias example_time {
  var %rgb = $conky::rgb
  drawrect -rf @conky %rgb 0 30 20 $width($time,Verdana,30) $height($time,Verdana,30)
  drawtext -r @conky $rgb(255,255,255) Verdana 30 30 20 $time
  if (!$timer(example_time)) .timerexample_time 0 1 example_time
}

Joined: Sep 2010
Posts: 13
E
Pikka bird
OP Offline
Pikka bird
E
Joined: Sep 2010
Posts: 13
Does this work on channels, queries and general chat windows?

I'm trying to get a transparent background for those.

Last edited by ELITEeNergizer; 08/09/10 01:28 AM.
Joined: Nov 2009
Posts: 81
V
Babel fish
Offline
Babel fish
V
Joined: Nov 2009
Posts: 81
Originally Posted By: ELITEeNergizer
Does this work on channels, queries and general chat windows?

of course. what is background of channel windows? white?
Code:
dll TDialog.dll TDColor $window(#).hwnd > 0 > $rgb(255,255,255)

or $rgb(0,0,0) if black.. thats simple wink

Joined: Sep 2010
Posts: 13
E
Pikka bird
OP Offline
Pikka bird
E
Joined: Sep 2010
Posts: 13
//dll TDialog.dll TDColor $window($active).hwnd > 0 > $rgb(255,255,255)
Aint working, the transparency isn't changing

Also I want it to work without it having to be a desktop window.

But the transparency doesn't even change when I make it a desktop window.

Does it not work with windows 7?

Last edited by ELITEeNergizer; 08/09/10 01:39 AM.
Joined: Nov 2009
Posts: 81
V
Babel fish
Offline
Babel fish
V
Joined: Nov 2009
Posts: 81
$window(-2).hwnd for main mIRC window

Joined: Sep 2010
Posts: 13
E
Pikka bird
OP Offline
Pikka bird
E
Joined: Sep 2010
Posts: 13
I want the window to be transparent so I can see my background which would be the red circled area.

http://i53.tinypic.com/fkn0pv.png

Joined: Dec 2002
Posts: 5,411
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 5,411
Windows does not support transparency in MDI windows, so that is not possible. Transparency is only supported on desktop windows.

Joined: Sep 2010
Posts: 13
E
Pikka bird
OP Offline
Pikka bird
E
Joined: Sep 2010
Posts: 13
Thanks for the reply. Alright so it's impossible for making a dll to do it. But it's possible for it to be implemented in the future by mIRC? Right?

Last edited by ELITEeNergizer; 09/09/10 05:31 PM.
Joined: Aug 2010
Posts: 134
T
Vogon poet
Offline
Vogon poet
T
Joined: Aug 2010
Posts: 134
Originally Posted By: Khaled
Windows does not support transparency in MDI windows, so that is not possible.


As long as Windows doesn't support it, there's really no way for mIRC to support it. You should bug Microsoft :P


Learning something new every day.
Joined: May 2010
Posts: 9
P
Pnk Offline
Nutrimatic drinks dispenser
Offline
Nutrimatic drinks dispenser
P
Joined: May 2010
Posts: 9
Originally Posted By: Khaled
Windows does not support transparency in MDI windows, so that is not possible. Transparency is only supported on desktop windows.


Can i still create transparent desktop window (not dialog) using this .dll? I need window without borders and title!


Link Copied to Clipboard