mIRC Home    About    Download    Register    News    Help

Print Thread
#36434 15/07/03 10:01 AM
Joined: Jan 2003
Posts: 2,523
Q
qwerty Offline OP
Hoopy frood
OP Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
It seems that it's not possible to set focus to the editbox without affecting its content. For example, I want when I activate a window to automatically set focus to the editbox while leaving whatever is already there intact. So I think there should be a new switch for that or modify the behaviour of -f, so that when no new text is specified, it only sets focus to the editbox (and not clear the text).

/editbox -f <window> $editbox(<window>) is not good enough: by overwriting the editbox text, it resets the cursor position (which I find annoying) and there's always the consecutive-spaces issue (/editbox would kill any existing double spaces in the editbox).


/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com
#36435 16/07/03 08:03 AM
Joined: Dec 2002
Posts: 1,321
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Dec 2002
Posts: 1,321
While you're at it, -f should accept an N parameter to specify the pos you want the cursor to be at, with a matching $editbox(window, N).pos property.

editbox $+(-f,$calc($editbox(#mIRC).pos + 1)) #mIRC

or

editbox -f #mIRC $calc($editbox(#mIRC).pos + 1)


DALnet: #HelpDesk and #m[color:#FF0000]IR[color:#EEEE00]C
#36436 16/07/03 08:24 AM
Joined: Jan 2003
Posts: 2,523
Q
qwerty Offline OP
Hoopy frood
OP Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
I agree, definitely nice additions.


/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com

Link Copied to Clipboard