mIRC Home    About    Download    Register    News    Help

Print Thread
#158379 03/09/06 09:17 PM
F
flurdoing
flurdoing
F
Double clicking on a word in the script editor causes the word to be selected.

Double clicking on a word ending with a ' character causes the ' to be selected instead of the word.

Ie: paste the following string into the script editor:
test 'foo bar'
next, double click on the word bar.

Confirmed in:
6.16
6.17

Thanks,
flurdoing
[email]flur@_nospam_d1f.org[/email]

Joined: Aug 2004
Posts: 7,168
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,168
Also confirmed in 6.2

O
Om3n
Om3n
O
This is probably designed ctrl-left/ctrl-right/auto-select behavior. I think quite a number of interfaces to scripting/programming languages will treat non-alphanumeric sequences as a 'word-change' or 'seperate-word' where as else where words are seperated only by spaces.

if ($2 >= 332)
significant number of programming interfaces or advanced test editors...
1. "if "
2. "($"
3. "2 "
4. ">= "
5. "332"
6. ")"

things like notepage and explorer...
1. "if "
2. "($2 "
3. ">= "
4. "332)"

A few would even seperate a ( from the $

F
flurdoing
flurdoing
F
I understand your point, but I don't think I agree.

If mIRC was selecting the word that I click on as well as the non alphanumeric, it would be understandable. It just doesn't make any sense to not select a word that i've double clicked on-- very counter-intuitive, and most definitely not a standard (try it in notepad!)

Joined: Dec 2002
Posts: 3,841
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 3,841
mIRC does not control the behaviour of the editbox in the script editor, highlighting of text is completely dependent on the Windows richedit editbox. This appears to be purposeful richedit behaviour, since it behaves differently if a " is used, though I'm not sure of the reasoning behind it.


Link Copied to Clipboard