mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Sep 2003
Posts: 4,230
D
DaveC Offline OP
Hoopy frood
OP Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
Id like an identifier to tell me which editbox when using dual editboxs that the event relates to.

Joined: Dec 2002
Posts: 1,544
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Dec 2002
Posts: 1,544
well, you could use the comparison of:

Code:
if ($cmdbox) {
  stuff
}


That's been in mirc since the 2nd editbox aka the command box. I use it on an ops talker (among other things) script I have and has worked perfectly.


Those who fail history are doomed to repeat it
Joined: Sep 2003
Posts: 4,230
D
DaveC Offline OP
Hoopy frood
OP Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
ok ill shut up now <mahahahahahahaha>

u r so right

/help $cmdbox
$cmdbox
Returns $true if a command or script was initiated via the command editbox in a channel window.

I had read that but missunderstood its meaning, i thought it was true if a command or script was initiated at the command line rather than by say a timer or event. When i tried it out, by shear chance i was using the second editbox so of course it came up just as i had beleived with $true only when i entered it, the real reason was the second editbox.

/me goes to scrape the embaresment paint off.

PS Thanks for the point out!

Joined: Dec 2002
Posts: 1,544
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Dec 2002
Posts: 1,544
no problem smile Ive been using it since day one and I believe somebody had to point it out to me too initially smile It works great for ops talkers and nick styler combo scripts


Those who fail history are doomed to repeat it

Link Copied to Clipboard