mIRC Homepage
Posted By: FroggieDaFrog $editbox(Window,N).focus - 17/11/10 08:17 PM
$editbox(window,N).focus

returns $true or $false if the specified window's editbox has focus.
N is optional and if specified as 1, returns for the first editbox, if 2 then .focus returns for the 2nd.
Posted By: DJ_Sol Re: $editbox(Window,N).focus - 18/11/10 12:41 AM
Out of curiosity, how would this be used? Just wondered because "/editbox # Text" will put text in the editbox even if it isn't active.
Posted By: FroggieDaFrog Re: $editbox(Window,N).focus - 18/11/10 01:15 AM
am writing a spellchecker script, and If the editbox is specific types of windows is active, and if so, which one.
Posted By: FroggieDaFrog Re: $editbox(Window,N).focus - 21/11/10 06:00 PM
Just an update of what I'd like to see done with $editbox:
Code:
$editbox(window,Z,N)[.x|y|w|h|focus]

If N is specified, results for the 2nd editbox are returned

Z is optional and if Z is specified, then $editbox will return the Zth line of the editbox history.
  If Z is 0, the total number of lines stored in the editbox history are returned.
  N must be specified(0 for first editbox, 1 for second editbox)

.x|y|w|h returns the x, y, width or height, in pixels, of the editbox.

.focus returns $true of $false if the editbox has focus.


What I'd like to see done with /editbox:
Code:
/editbox -hwN +aodilN window text

If the -wN switch is specified, then the width of the editbox is adjusted to N pixels. 
The -wN switch is only applicable when using the 2 editbox setup.

If the -h switch is specified, then the editbox history is to be manipulated.

The following switches are used with the -h switch:
  +a appends <text> as a new entry into the editbox history.
  +o used with +lN overwrites the Nth entry in the editbox hystory.
  +d used with +lN to delete the Nth entry in the editbox hystory.
  +i used with +lN inserts <text> after the Nth entry in the editbox hystory.
  +lN manipulates the Nth line in the editbox history.

© mIRC Discussion Forums