mIRC Home    About    Download    Register    News    Help

Print Thread
#25684 23/05/03 07:11 PM
Joined: Jan 2003
Posts: 8
V
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
V
Joined: Jan 2003
Posts: 8
$ctrlenter returns $true if you use ctrl+v to paste text into your editbox. Not sure if this is a bug or a "feature", but I don't think it should be this way. Since $inpaste of course also returns $true, it is easy to create a workaround for this, however I thought I would report it either way.

Code:
on *:INPUT:*:{ if ($ctrlenter) { echo -s voidnull is right. | halt } }

#25685 24/05/03 03:58 AM
Joined: Feb 2003
Posts: 2,812
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2003
Posts: 2,812
I think it's neither bug nor feature... but should remain as is.
$inpaste as added after $ctrlenter, so it's not a bug for sure.

I feel It should remain the same because scripts that process On Input may treat pasted lines that begin with / improperly if $ctrlenter were $false. (possibly executing it as a command instead). This 'bug' also gives you the added bonus of telling if the person is pasting via Ctrl+V or RightClick-Paste (or Shift+Ins even) smile

- Raccoon


Well. At least I won lunch.
Good philosophy, see good in bad, I like!
#25686 24/05/03 12:04 PM
Joined: Dec 2002
Posts: 2,962
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,962
I don't think it's really a bug because it's not really a conflict. 9 times out of 10 if someone pastes a multi-line peice of text into a box you wouldn't want it to be treated as a command anyway. Plus anyone wanting to a script behave differently when something is pasted will most likely check $inpaste before $ctrlenter. Also it allows you to tell whether they pasted using ctrl+v or shift+insert (which personally I find helpful since I can block pasting with ctrl+v which I occasionally accidentally press when typing ctrl+b or ctrl+c).


Spelling mistakes, grammatical errors, and stupid comments are intentional.
#25687 24/05/03 04:41 PM
Joined: Jan 2003
Posts: 8
V
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
V
Joined: Jan 2003
Posts: 8
You might be right, but either way it should be added to the helpfile. It can cause confusion.


Link Copied to Clipboard