mIRC Home    About    Download    Register    News    Help

Print Thread
editbox #146519 05/04/06 05:25 PM
Joined: Feb 2006
Posts: 164
V
vexed Offline OP
Vogon poet
OP Offline
Vogon poet
V
Joined: Feb 2006
Posts: 164
Just wondering, i've added in .timer -m 1 1 editbox -f to my treeview switchbar for when i switch windows, but is there a way to focus the editbox without losing the text in it? it disappears if i write something, swap channels and come back to it.

Re: editbox #146520 05/04/06 06:41 PM
Joined: Dec 2004
Posts: 66
B
Bob57 Offline
Babel fish
Offline
Babel fish
B
Joined: Dec 2004
Posts: 66
Iím not sure, but try this, from help:
Quote:
$editbox(window,N)
Returns the text in the editbox of the specified window.
If N = 1, returns the text in the second editbox in a channel window, if it's open.


So before whatever erases the editbox do this:
var %editing = $editbox(window,N)
and when you return to the window:
editbox -f %editing

Re: editbox #146521 05/04/06 07:35 PM
Joined: Feb 2006
Posts: 164
V
vexed Offline OP
Vogon poet
OP Offline
Vogon poet
V
Joined: Feb 2006
Posts: 164
Excellent, didn't think about using a var, nice one dude.
Many thanks. smile