mIRC Home    About    Download    Register    News    Help

Topic Options
#148481 - 06/05/06 05:53 PM New identifier's... $isdialog $ismenu $isgroup
NaquadaServ Offline
Fjord artisan

Registered: 12/12/02
Posts: 580
All working in a simular way to $isalias... $isgoup could be scripted from $group, but I thought I'd add it anyways...
_________________________
NaquadaBomb
www.mirc-dll.com

Top
#148482 - 06/05/06 06:03 PM Re: New identifier's... $isdialog $ismenu $isgroup
genius_at_work Offline
Hoopy frood

Registered: 08/10/05
Posts: 1741
Each of those identifiers could include ways to make the query local to a specific script file (with wildcards), or global.

$ismenu(*.mrc,nicklist)

-genius_at_work

Top
#148483 - 06/05/06 09:21 PM Re: New identifier's... $isdialog $ismenu $isgroup
IR_n00b Offline
Fjord artisan

Registered: 01/10/04
Posts: 200
Loc: where i am.
All of them could be scripted, just some simpler than others.

You can use $script(0) to get the number of loaded scripts, $script(file.mrc) to see if a script is loaded, fopen and $fread to read from the file, and $regex to find a match (I.E $regex(%line,/^menu .*(nicklist).* {/i) :tongue:)

Top
#148484 - 07/05/06 04:49 AM Re: New identifier's... $isdialog $ismenu $isgroup
NaquadaServ Offline
Fjord artisan

Registered: 12/12/02
Posts: 580
Yeah and I can also script a web server with mIRC... Point is much easier to add them internally, since there already exists code to parse mirc script files.
_________________________
NaquadaBomb
www.mirc-dll.com

Top
#148485 - 08/05/06 01:25 AM Re: New identifier's... $isdialog $ismenu $isgroup
SladeKraven Offline
Planetary brain

Registered: 19/12/02
Posts: 3547
Loc: Kent, England
What you asked for wouldn't even take a 30 seconds to code. Could you code a web browser in 30 seconds?

Top
#148486 - 08/05/06 01:30 AM Re: New identifier's... $isdialog $ismenu $isgroup
hixxy Offline
Hoopy frood

Registered: 06/09/05
Posts: 2876
He said webserver, and no, but close enough. Try 5 minutes.

Top
#148487 - 08/05/06 01:31 AM Re: New identifier's... $isdialog $ismenu $isgroup
hixxy Offline
Hoopy frood

Registered: 06/09/05
Posts: 2876
Signed.

Top
#148488 - 08/05/06 02:20 AM Re: New identifier's... $isdialog $ismenu $isgroup
MikeChat Offline
Hoopy frood

Registered: 12/12/02
Posts: 1245
Loc: California, doooood
add in $isloaded
$isloaded(file.name).a
$isloaded(filename).r
or $isload(filename) returns alias or remote depending on where it was found or $false if not loaded

yes you can script this (i have already) but would be nicer to not have to

$iscomchar ($true/$false) to handle { if (($left($1,1) isin / $readini($mircini,text,commandchar)) || ($left($$1,1) == !) || ($left($$1,1) == @) || ($ctrlenter == $true)) { return $true } }

Top
#148489 - 08/05/06 09:10 AM Re: New identifier's... $isdialog $ismenu $isgroup
qwerty Offline
Hoopy frood

Registered: 07/01/03
Posts: 2523
$isdialog and $isgroup are redundant, as "if ($dialog(name))" and "if ($group(#name))" do the job fine. I'm not sure I get $ismenu though, what would it do?
_________________________
/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com

Top
#148490 - 08/05/06 05:43 PM Re: New identifier's... $isdialog $ismenu $isgroup
hixxy Offline
Hoopy frood

Registered: 06/09/05
Posts: 2876
$dialog(name) will not tell if you a dialog exists, it will only tell you if it's open. Considering he compared them to $isalias, I'm guessing he wants to see if the dialog exists code-wise.

I'm thinking $ismenu could tell if you if there's a menu named "x" under the "y" menu: $ismenu(do something,menubar)

Top
#148491 - 08/05/06 06:28 PM Re: New identifier's... $isdialog $ismenu $isgroup
qwerty Offline
Hoopy frood

Registered: 07/01/03
Posts: 2523
If a dialog isn't open, it doesn't exist. If you're both talking about dialog tables, it's a different matter (and something the OP should have explained, along with what $ismenu is supposed to do).
_________________________
/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com

Top
#148492 - 08/05/06 06:32 PM Re: New identifier's... $isdialog $ismenu $isgroup
hixxy Offline
Hoopy frood

Registered: 06/09/05
Posts: 2876
That's what I mean..

Code:
dialog t {
  size -1 -1 300 300
  title ""
  option dbu
}


$isdialog(t) - $true
$dialog(t) - $null

Top