summary refs log tree commit diff stats
path: root/win32/etc/download.png
blob: 43253432082aa6795ce8e39442b7ebeadb053f43 (plain)
ofshex dumpascii
0000 89 50 4e 47 0d 0a 1a 0a 00 00 00 0d 49 48 44 52 00 00 00 10 00 00 00 10 08 06 00 00 00 1f f3 ff .PNG........IHDR................
0020 61 00 00 02 86 49 44 41 54 38 8d 95 93 cb 4b 94 51 18 c6 7f 67 be 99 b1 69 d0 2e e6 58 91 95 89 a....IDAT8....K.Q...g...i...X...
0040 97 ca 4b 4a 50 a1 63 b4 89 68 23 14 6e 5a b4 30 23 ea 4f 88 5a 45 20 46 ab 12 0c 71 e5 22 21 08 ..KJP.c..h#.nZ.0#.O.ZE.F...q."!.
0060 0a c1 34 a9 20 0b 8c 72 63 17 29 95 28 a3 b2 1a 4d c7 f9 2e e7 7c e7 b4 18 ef b9 a8 77 f7 9e f3 ..4....rc.).(...M....|......w...
0080 9e 1f cf f3 70 5e 61 8c e1 5f ab af a7 7b d9 70 64 6d 26 c1 95 43 17 6f 9e 2d 1e 0c 76 ed 88 c5 ....p^a.._...{.pdm&..C.o.-..v...
00a0 62 1b 4f 47 9b 6e 2f bd 2b d9 5b 36 38 fc 66 a8 0a a0 f0 c0 91 07 e3 43 2f 8f fd 05 50 6b 18 ae b.OG.n/.+.[68.f........C/...Pk..
00c0 ac 29 9b 15 21 2f da fb f8 2e cd 8d 6d 4b 15 54 95 c6 8f 11 0e 0a 52 ae 02 20 b0 9a d4 bc fc ad .)..!/......mK.T......R.........
00e0 d1 d0 ba c5 5e 6b 4d 5f 4f 37 5b ca 6b d1 01 81 ad c0 56 69 ef ab 02 72 33 f2 28 0e c6 17 7a cf ....^kM_O7[.k.....Vi...r3.(...z.
0100 73 01 90 3e d8 12 1c 69 70 d2 02 d2 19 34 b4 d6 85 3d e1 44 a6 92 93 6a cf ba 0a 1c 92 38 5a 03 s..>...ip....4...=.D...j.....8Z.
0120 e0 38 2e 49 3b 39 07 d0 38 0a b4 f2 71 95 5e 04 88 10 b9 5b cd f6 4f bb f3 cb 27 77 96 e4 7a 23 .8.I;9..8...q.^....[..O...'w..z#
0140 13 bd e1 44 f4 03 59 75 3b b9 3c 11 47 f4 56 70 34 ef 04 9e d2 04 3c 1f ad 24 b6 34 58 f3 16 da ...D..Yu;.<.G.Vp4.....<..$.4X...
0160 cf dc fb fc d5 1f 3f f8 3b 31 b5 e1 c5 8e 96 70 22 fa 81 91 b1 8f bc 4c 3c 41 f4 56 70 e5 54 4b ......?.;1.....p"......L<A.Vp.TK
0180 5a 81 d2 cc da 1e 9e f4 f9 36 2d 97 87 d8 71 ae 7b e0 93 1c dd ff ba 29 f8 6b 64 ec 23 00 65 4f Z........6-...q.{......).kd.#.eO
01a0 1b 69 6e 68 43 93 36 6c 3b 1e 8e 2b 99 4a 29 12 49 6f d1 c2 7c 75 9e 7f f4 aa af a7 3b fb c6 fd .inhC.6l;..+.J).Io..|u......;...
01c0 4b 00 34 5f 6c c3 18 83 54 69 80 56 0e 29 27 c4 cf a4 c4 95 1a ac 39 c0 ee a2 22 01 08 27 e5 9a K.4_l...Ti.V.)'.......9..."..'..
01e0 b6 f6 56 6e 5d e8 22 3b 33 07 29 25 52 49 8c 31 14 14 14 30 3a fa 96 e1 40 19 30 f7 21 ad 45 0b ..Vn].";3.)%RI.1...0:...@.0.!.E.
0200 16 b0 c9 0a 89 9c e6 6b d7 eb b2 c2 eb 91 ae 87 ed d8 28 a5 b0 2c 0b 2b 98 16 eb b8 12 ed fb e0 .......k..........(..,.+........
0220 ab d0 42 06 ef de bf 57 c0 2c 88 5c 20 26 95 87 af fd 05 6b c6 18 32 32 32 d2 41 7a d2 fc 9c f6 ..B....W.,.\.&.....k..222.Az....
0240 66 df 7c 49 8d ad cc c0 9e eb 37 47 22 11 5c d7 c5 18 83 10 82 81 e7 fd fc 98 f8 7e e7 e1 e0 f8 f.|I......7G".\............~....
0260 b7 57 99 b1 9c 99 99 e9 a1 8e 13 a1 ab d5 f1 1a 21 96 6e 63 49 61 61 20 10 08 94 9e ac af af 3f .W..............!.ncIaa........?
0280 1c af be 34 7f 5e 50 58 1c ca df b5 4b e5 ed 3b 5e 4b e5 e9 43 9d 0d db 9a aa e3 35 02 40 fc cf ...4.^PX....K..;^K..C......5.@..
02a0 3a 3f 7b da 6f 00 e6 1f 03 fc 01 db 74 2e c3 1e ff c1 14 00 00 00 00 49 45 4e 44 ae 42 60 82 :?{.o.......t..........IEND.B`.
or: #0000DD; font-weight: bold } /* Literal.Number.Bin */ .highlight .mf { color: #0000DD; font-weight: bold } /* Literal.Number.Float */ .highlight .mh { color: #0000DD; font-weight: bold } /* Literal.Number.Hex */ .highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ .highlight .mo { color: #0000DD; font-weight: bold } /* Literal.Number.Oct */ .highlight .sa { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Affix */ .highlight .sb { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Backtick */ .highlight .sc { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Char */ .highlight .dl { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */ .highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
#! /usr/bin/python

# HexChat
# Copyright (C) 1998-2010 Peter Zelezny.
# Copyright (C) 2009-2013 Berke Viktor.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
#

import dbus

bus = dbus.SessionBus()
proxy = bus.get_object('org.hexchat.service', '/org/hexchat/Remote')
remote = dbus.Interface(proxy, 'org.hexchat.connection')
path = remote.Connect ("example.py",
		       "Python example",
		       "Example of a D-Bus client written in python",
		       "1.0")
proxy = bus.get_object('org.hexchat.service', path)
hexchat = dbus.Interface(proxy, 'org.hexchat.plugin')

channels = hexchat.ListGet ("channels")
while hexchat.ListNext (channels):
	name = hexchat.ListStr (channels, "channel")
	print("------- " + name + " -------")
	hexchat.SetContext (hexchat.ListInt (channels, "context"))
	hexchat.EmitPrint ("Channel Message", ["John", "Hi there", "@"])
	users = hexchat.ListGet ("users")
	while hexchat.ListNext (users):
		print("Nick: " + hexchat.ListStr (users, "nick"))
	hexchat.ListFree (users)
hexchat.ListFree (channels)

print(hexchat.Strip ("\00312Blue\003 \002Bold!\002", -1, 1|2))