mIRC Home    About    Download    Register    News    Help

Print Thread
#227662 17/11/10 08:17 PM
Joined: Apr 2010
Posts: 969
F
Hoopy frood
OP Offline
Hoopy frood
F
Joined: Apr 2010
Posts: 969
$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.


I am SReject
My Stuff
Joined: Jan 2007
Posts: 1,156
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Jan 2007
Posts: 1,156
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.

Joined: Apr 2010
Posts: 969
F
Hoopy frood
OP Offline
Hoopy frood
F
Joined: Apr 2010
Posts: 969
am writing a spellchecker script, and If the editbox is specific types of windows is active, and if so, which one.


I am SReject
My Stuff
Joined: Apr 2010
Posts: 969
F
Hoopy frood
OP Offline
Hoopy frood
F
Joined: Apr 2010
Posts: 969
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.



I am SReject
My Stuff

Link Copied to Clipboard