mIRC Home    About    Download    Register    News    Help

Print Thread
#269282 15/08/21 10:51 PM
Joined: Dec 2002
Posts: 252
T
Talon Offline OP
Fjord artisan
OP Offline
Fjord artisan
T
Joined: Dec 2002
Posts: 252
It appears multiple instances of /editbox defaults into only the last one being sent.

example:
//editbox -an A | editbox -an B | editbox -an C

even in debug, none of the other lines were sent, except for the last one, "C"

Notes:
mIRC 7.66 on Windows 10

Joined: Dec 2002
Posts: 5,420
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 5,420
See here for previous discussion.

Joined: Jan 2012
Posts: 301
Pan-dimensional mouse
Offline
Pan-dimensional mouse
Joined: Jan 2012
Posts: 301
You can try adding timers on every next line to the command:
Code
//editbox -an test: 03A | .timerEB1 -m 1 1 editbox -an test: 04B | .timerEB2 -m 1 20 editbox -an test: 12C



🌐 http://forum.epicnet.ru πŸ“œ irc.epicnet.ru 6667 #Code | mIRC scripts, help, discuss, examples
Joined: Feb 2003
Posts: 2,812
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2003
Posts: 2,812
Khaled: A work-around to the SendMessage/PostMessage limitation would be possible if we had the means to use the /editbox command to populate multiple lines into multi-line editboxes. Then the batch could be sent all at once.

Code
//window -e2 @test | editbox -n @test /whois Raccoon $crlf /whowas Raccoon


As of right now, $crlf nor $lf nor $cr can be used to stimulate multiple lines in the editbox, and it makes me very sad and gosh dang frustrated. :'(


Well. At least I won lunch.
Good philosophy, see good in bad, I like!
Joined: Jan 2012
Posts: 301
Pan-dimensional mouse
Offline
Pan-dimensional mouse
Joined: Jan 2012
Posts: 301
Originally Posted by Raccoon
As of right now, $crlf nor $lf nor $cr can be used to stimulate multiple lines in the editbox, and it makes me very sad and gosh dang frustrated. :'(

Yes, I also this noticed Β :-[ Β and it would be very useful to improve (develop) this function.
In addition, it would be helpful if we got a command to resize of the "Editbox" field to modes: "/editbox -m [Single,Multiple,Automatic,Pixels [N]] [window]".
And also, so that this field has the ability to automatically resize (in "Automatic" mode) when used the identifier $crlf for line break (linefeed down), when there is only one line in the text.

All this would be useful when creating scripts associated with this field for editing text.


🌐 http://forum.epicnet.ru πŸ“œ irc.epicnet.ru 6667 #Code | mIRC scripts, help, discuss, examples

Link Copied to Clipboard