<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forum.eggheads.org/app.php/feed/topic/20348" />

	<title>egghelp/eggheads community</title>
	<subtitle>Discussion of eggdrop bots, shell accounts and tcl scripts.</subtitle>
	<link href="https://forum.eggheads.org/index.php" />
	<updated>2017-06-04T08:35:34-04:00</updated>

	<author><name><![CDATA[egghelp/eggheads community]]></name></author>
	<id>https://forum.eggheads.org/app.php/feed/topic/20348</id>

		<entry>
		<author><name><![CDATA[juanamores]]></name></author>
		<updated>2017-06-04T08:35:34-04:00</updated>

		<published>2017-06-04T08:35:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=106307#p106307</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=106307#p106307"/>
		<title type="html"><![CDATA[Solved]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=106307#p106307"><![CDATA[
nml375, The solution for mIRC is as follows:<br>I put the code in an image because there are characters (ETX and SI) that can not be seen well in this forum<br><br><img src="http://i68.tinypic.com/2nk1lih.png" class="postimage" alt="Image"><br><br>The <strong class="text-strong">ETX</strong> code you see in the image is obtained by pressing the Control (Ctrl) key +  K key in the mIRC client window.<br>And, the <strong class="text-strong">SI</strong> code, with Control key (Ctrl) +  O key<br><br>Result:<br><br><img src="http://s2.subirimagenes.com/privadas/previo/thump_2407632results.png" class="postimage" alt="Image"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12499">juanamores</a> — Sun Jun 04, 2017 8:35 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[juanamores]]></name></author>
		<updated>2017-05-23T18:18:55-04:00</updated>

		<published>2017-05-23T18:18:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=106281#p106281</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=106281#p106281"/>
		<title type="html"><![CDATA[Pingmeter by arfer/nml375 colour lag meter not work]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=106281#p106281"><![CDATA[
Exact.<br>Is that in mIRC is very different from the list of ASCII characters that apply to Windows.<br>I have tried with the ALT + number key, and it gives different results in mIRC than in Words (Office).<br><br>In short, it is something graphical, that in no way affects the operation of your TCL.<br>Thanks for everything.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12499">juanamores</a> — Tue May 23, 2017 6:18 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2017-05-23T17:27:03-04:00</updated>

		<published>2017-05-23T17:27:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=106280#p106280</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=106280#p106280"/>
		<title type="html"><![CDATA[Pingmeter by arfer/nml375 colour lag meter not work]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=106280#p106280"><![CDATA[
Well, this seems to be yet another issue with character sets and encodings... You'll find quite a few of them in the forum.<br><br>You could try something as simple as this, I suppose:<div class="codebox"><p>Code: </p><pre><code>set char "\u258C"</code></pre></div>But then again, that might produce an entirely different output in mIRC as opposed to the terminals/consoles I use...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Tue May 23, 2017 5:27 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[juanamores]]></name></author>
		<updated>2017-05-23T15:55:10-04:00</updated>

		<published>2017-05-23T15:55:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=106278#p106278</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=106278#p106278"/>
		<title type="html"><![CDATA[Pingmeter by arfer/nml375 colour lag meter not work]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=106278#p106278"><![CDATA[
Okay, I already did the modification.<br><br><img src="http://i64.tinypic.com/2unxd7b.png" class="postimage" alt="Image"><br>A solid triangle pointing to the left and the number 9 are now shown.<br>ASCII characters do not have the same number in mIRC.<br>I have tried several ASCII numbers, but I can not seem to show the solid block.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12499">juanamores</a> — Tue May 23, 2017 3:55 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2017-05-22T14:20:10-04:00</updated>

		<published>2017-05-22T14:20:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=106276#p106276</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=106276#p106276"/>
		<title type="html"><![CDATA[Pingmeter by arfer/nml375 colour lag meter not work]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=106276#p106276"><![CDATA[
Hi,<br>The output of this script is designed to use UTF-8, and displays a character known as "Left half block".<br>You can rather easily change the character shown (and go for a plain ascii-character) by editing this line (found in pPingCtcrReceive):<div class="codebox"><p>Code: </p><pre><code>set char [encoding convertto utf-8 \u258C]</code></pre></div>To show a full block, try something like this:<div class="codebox"><p>Code: </p><pre><code>set char "\219"</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Mon May 22, 2017 2:20 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[juanamores]]></name></author>
		<updated>2017-05-22T10:56:16-04:00</updated>

		<published>2017-05-22T10:56:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=106275#p106275</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=106275#p106275"/>
		<title type="html"><![CDATA[Pingmeter by arfer/nml375 colour lag meter not work]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=106275#p106275"><![CDATA[
The script works correctly, the only thing that does not show up well is the colour lag meter.<br>There seems to be a problem with the charset.<br><blockquote class="uncited"><div> @juanam ¦ .ping Peter<br>@myBoT ¦ Compliance (juanam) â&amp;#150;&amp;#140;â&amp;#150;&amp;#140;â&amp;#150;&amp;#140;â&amp;#150;&amp;#140;â&amp;#150;&amp;#140;â&amp;#150;&amp;#140;â&amp;#150;&amp;#140;â&amp;#150;&amp;#140;â&amp;#150;&amp;#140;â&amp;#150;&amp;#140;  0.152 seconds from Peter</div></blockquote><div class="codebox"><p>Code: </p><pre><code># pingmeter.tcl by arfer/nml375# requires Tcl 8.4 or later# requires channel to permit embelished text (colour) output# requires utf-8 compliant IRC client# each #channelname the script is to function in requires (in the partyline) .chanset #channelname +ping# note that this script will probably not respond if any other client based script responds to the same command# configure the command trigger accordingly# assuming default trigger "." (period) syntax would be .ping ?target?# replaces 10 green bars with 1 red bar per each 0.5 seconds (rounded) lag##### CHANGELOG ############## 1.0 07/03/09 beta# 1.1 08/03/09 changed abs() math to modulus math to interpret integer wraparound##### INSTALLATION ########### 1. configure pingmeter.tcl in a suitable text editor# 2. upload configured pingmeter.tcl to bot's scripts subdirectory# 3. add a line to bots .conf file 'source scripts/pingmeter.tcl'# 4. restart the bot# 5. requires '.chanset #channelname +ping' in the partyline to function in #channelname##### CONFIGURATION #########set vPingTrigger "."##### CODE ##################proc pPingTrigger {} {  global vPingTrigger  return $vPingTrigger}set vPingVersion 1.1setudef flag pingbind CTCR - PING pPingCtcrReceivebind PUB - [pPingTrigger]ping pPingPubCommandbind RAW - 401 pPingRawOfflineproc pPingTimeout {} {  global vPingOperation  set schan [lindex $vPingOperation 0]  set snick [lindex $vPingOperation 1]  set tnick [lindex $vPingOperation 2]  putserv "PRIVMSG $schan :\00304Error\003 (\00314$snick\003) operation timed out attempting to ping \00307$tnick\003"  unset vPingOperation  return 0}proc pPingCtcrReceive {nick uhost hand dest keyword txt} {  global vPingOperation  if {[info exists vPingOperation]} {    set schan [lindex $vPingOperation 0]    set snick [lindex $vPingOperation 1]    set tnick [lindex $vPingOperation 2]    set time1 [lindex $vPingOperation 3]    if {([string equal -nocase $nick $tnick]) &amp;&amp; ([regexp -- {^[0-9]+$} $txt])} {      set time2 [expr {[clock clicks -milliseconds] % 16777216}]      set elapsed [expr {(($time2 - $time1) % 16777216) / 1000.0}]      set char [encoding convertto utf-8 \u258C]      if {[expr {round($elapsed / 0.5)}] &gt; 10} {set red 10} else {set red [expr {round($elapsed / 0.5)}]}      set green [expr {10 - $red}]      set output \00303[string repeat $char $green]\003\00304[string repeat $char $red]\003      putserv "PRIVMSG $schan :\00310Compliance\003 (\00314$snick\003) $output $elapsed seconds from \00307$tnick\003"      unset vPingOperation      pPingKillutimer    }  }  return 0}proc pPingKillutimer {} {  foreach item [utimers] {    if {[string equal pPingTimeout [lindex $item 1]]} {      killutimer [lindex $item 2]    }  }  return 0}proc pPingPubCommand {nick uhost hand channel txt} {  global vPingOperation  if {[channel get $channel ping]} {    switch -- [llength [split [string trim $txt]]] {      0 {set tnick $nick}      1 {set tnick [string trim $txt]}      default {        putserv "PRIVMSG $channel :\00304Error\003 (\00314$nick\003) correct syntax is \00307!ping ?target?\003"        return 0      }    }    if {![info exists vPingOperation]} {      if {[regexp -- {^[\x41-\x7D][-\d\x41-\x7D]*$} $tnick]} {        set time1 [expr {[clock clicks -milliseconds] % 16777216}]        putquick "PRIVMSG $tnick :\001PING [unixtime]\001"        utimer 20 pPingTimeout        set vPingOperation [list $channel $nick $tnick $time1]      } else {putserv "PRIVMSG $channel :\00304Error\003 (\00314$nick\003) \00307$tnick\003 is not a valid nick"}    } else {putserv "PRIVMSG $channel :\00304Error\003 (\00314$nick\003) a ping operation is still pending, please wait"}  }  return 0}proc pPingRawOffline {from keyword txt} {  global vPingOperation  if {[info exists vPingOperation]} {    set schan [lindex $vPingOperation 0]    set snick [lindex $vPingOperation 1]    set tnick [lindex $vPingOperation 2]    if {[string equal -nocase $tnick [lindex [split $txt] 1]]} {      putserv "PRIVMSG $schan :\00304Error\003 (\00314$snick\003) \00307$tnick\003 is not online"      unset vPingOperation      pPingKillutimer    }  }  return 0}putlog "pingmeter.tcl by arfer/nml375 version $vPingVersion loaded"</code></pre></div>[/code]<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12499">juanamores</a> — Mon May 22, 2017 10:56 am</p><hr />
]]></content>
	</entry>
	</feed>
