From WikiChip
Editing mirc/identifiers/$inpaste

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

This page supports semantic in-text annotations (e.g. "[[Is specified as::World Heritage Site]]") to build structured and queryable content provided by Semantic MediaWiki. For a comprehensive description on how to use annotations or the #ask parser function, please have a look at the getting started, in-text annotation, or inline queries help pages.

Latest revision Your text
Line 3: Line 3:
 
It appears that $inpaste is mostly $false, and can be $true only when:
 
It appears that $inpaste is mostly $false, and can be $true only when:
  
# In channel editbox where Options/Display/Other/'Editbox Lines' is set to 'Single'
+
# Options/Display/Other/'Editbox Lines' is set to 'Single'
# In @window editbox created with /window -e0 or -e, or created with -e3 while Editbox Lines is set to single
 
 
# Clipboard contains at least one of $cr $lf $crlf
 
# Clipboard contains at least one of $cr $lf $crlf
 
# Paste from the clipboard triggers the ON INPUT event
 
# Paste from the clipboard triggers the ON INPUT event
 
# $inpaste is used within the ON INPUT or ON PARSELINE:out event
 
# $inpaste is used within the ON INPUT or ON PARSELINE:out event
*Note: If you paste text into the editbox which doesn't trigger the INPUT event, pressing <enter> later messaging the pasted text to #channel does not set $inpaste to $true.
 
 
== Synopsis ==
 
== Synopsis ==
 
<pre>$inpaste</pre>
 
<pre>$inpaste</pre>
Line 21: Line 19:
 
<source lang="mIRC">
 
<source lang="mIRC">
 
on *:PARSELINE:out:*:{ echo -s debug $scriptline $event : $inpaste is $true only if this line was triggered by pasting from the clipboard : $parseline }
 
on *:PARSELINE:out:*:{ echo -s debug $scriptline $event : $inpaste is $true only if this line was triggered by pasting from the clipboard : $parseline }
</source>
 
 
<source lang="mIRC">
 
if ($inpaste) echo -a INPUT event triggered by paste from clipboard
 
elseif ($ctrlenter) echo -a INPUT event triggered by pressing <enter> and <Ctrl> keys together
 
else echo -a INPUT event triggered by pressing <enter>
 
 
</source>
 
</source>
  

Please note that all contributions to WikiChip may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see WikiChip:Copyrights for details). Do not submit copyrighted work without permission!

Cancel | Editing help (opens in new window)