mIRC Home    About    Download    Register    News    Help

Print Thread
How do i return selected text in edibox? #108666 21/01/05 06:06 PM
Joined: May 2003
Posts: 78
M
MauS Offline OP
Babel fish
OP Offline
Babel fish
M
Joined: May 2003
Posts: 78
I badly need my script to work with selected text in the active editbox.

There should be a way to get the selection's beginning and ending positions at least... Or directly getting selected text and pasting new text instead of selected one.

Please, teach me how to do that.
Thanks for your attention and help.


-= endless in a victory of a yourself =-
Re: How do i return selected text in edibox? #108667 21/01/05 09:11 PM
Joined: Sep 2004
Posts: 237
JAFO Offline
Fjord artisan
Offline
Fjord artisan
Joined: Sep 2004
Posts: 237
$did(id).seltext ....... a little bit of the code would help.

Re: How do i return selected text in edibox? #108668 21/01/05 09:29 PM
Joined: Sep 2003
Posts: 4,230
D
DaveC Offline
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
if u mean /editbox and $editbox then you cant it only lets u set what text u want in there and tells you what text is in there. Bit of a bummer for auto correction since evertime you replace the text the cursors at the end.

Re: How do i return selected text in edibox? #108669 21/01/05 09:42 PM
Joined: Sep 2004
Posts: 237
JAFO Offline
Fjord artisan
Offline
Fjord artisan
Joined: Sep 2004
Posts: 237
huh grin

EDIT: lol.... nevermind.... I had dialogs on the brain. Been using them too much lately.

Last edited by JAFO; 21/01/05 09:50 PM.
Re: How do i return selected text in edibox? #108670 21/01/05 10:26 PM
Joined: Dec 2002
Posts: 3,547
S
SladeKraven Offline
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
I was thinking that. The edit box in a dialog. So I didn't reply incase it wasn't.

Re: How do i return selected text in edibox? #108671 23/01/05 03:21 PM
Joined: May 2003
Posts: 78
M
MauS Offline OP
Babel fish
OP Offline
Babel fish
M
Joined: May 2003
Posts: 78
Actually i meant an editbox of a channel/query/status window.

...Is it really impossible? blush


-= endless in a victory of a yourself =-
Re: How do i return selected text in edibox? #108672 23/01/05 03:24 PM
Joined: Feb 2004
Posts: 2,019
FiberOPtics Offline
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2004
Posts: 2,019
Not possible with the built-in commands.

Perhaps there is a DLL out there that could do what you want, though I don't know any.


Gone.