mIRC Homepage
Posted By: MauS How do i return selected text in edibox? - 21/01/05 06:06 PM
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.
Posted By: JAFO Re: How do i return selected text in edibox? - 21/01/05 09:11 PM
$did(id).seltext ....... a little bit of the code would help.
Posted By: DaveC Re: How do i return selected text in edibox? - 21/01/05 09:29 PM
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.
Posted By: JAFO Re: How do i return selected text in edibox? - 21/01/05 09:42 PM
huh grin

EDIT: lol.... nevermind.... I had dialogs on the brain. Been using them too much lately.
I was thinking that. The edit box in a dialog. So I didn't reply incase it wasn't.
Posted By: MauS Re: How do i return selected text in edibox? - 23/01/05 03:21 PM
Actually i meant an editbox of a channel/query/status window.

...Is it really impossible? blush
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.
© mIRC Discussion Forums