mIRC Home    About    Download    Register    News    Help

Print Thread
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 =-
Joined: Sep 2004
Posts: 237
Fjord artisan
Offline
Fjord artisan
Joined: Sep 2004
Posts: 237
$did(id).seltext ....... a little bit of the code would help.

Joined: Sep 2003
Posts: 4,230
D
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.

Joined: Sep 2004
Posts: 237
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.
Joined: Dec 2002
Posts: 3,547
S
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.

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 =-
Joined: Feb 2004
Posts: 2,019
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.

Link Copied to Clipboard