mIRC Homepage
Posted By: bloupx channel dialog - 03/07/04 06:09 PM
Hello,

does anyone know of an $identifier ,or anoyther way ,which tells whether the channel dialog is open or not.

Thanks.
Posted By: tsoglanos Re: channel dialog - 03/07/04 07:45 PM
are you kiding the channel central dialog is modal it frezz access to other windows if it is open
Posted By: Coolkill Re: channel dialog - 03/07/04 09:24 PM
I have to say tsoglanos, i've never seen a more useless reply to a question but still..

I ABSOLUTELY hate, Com Objects, however, when the need arrises they can be of use.. try the following it works okay for me, but i'm not saying its "perfect".

alias chandialog {
if ($1) {
var %a = chandialog | .comopen %a WScript.Shell
if (!$comerr) {
var %b = $com(%a,AppActivate,3,bstr,mIRC Channel Central $1)
var %c = $com(%a).result | .comclose %a
return %c
}
}
}

Syntax: $chandialog(#Channel)

Example: //timer 0 3 echo -s -> $!chandialog($active)

Returns, $true when open, $false when closed..

Works, by attempting to make the channel window the "active window", and if it cant, then it must not be open, if it can then its open..

Hope this helps.

Eamonn.
Posted By: Online Re: channel dialog - 03/07/04 09:30 PM
Good thinking CK laugh
Posted By: tsoglanos Re: channel dialog - 04/07/04 08:33 AM
this code makes absolut no sense becuse it returns $true after the channel dialog is closing, and the true is not valid \

try /help dialog to read about modal dialogs

I dont want to talk about the flood thet returns every second $false
Posted By: Coolkill Re: channel dialog - 04/07/04 12:19 PM
Actually for your information this code was tested on 3 seperate people, using 3 seperate operating systems and all worked fine.. as stated its not "perfect" and if you even bothered to pay attention it says "example" next to /timer, and an ECHO every 3 seconds is not a flood.

Oh, and be sure to use $!chandialog inside a timer so its reevaluated everytime. =)

And again, for your information i'm fully aware of what a modal dialog is but then at the end of the day i proposed something that'd work, not some stupid comment about 'are you kidding...'.

Eamonn.
Posted By: tsoglanos Re: channel dialog - 04/07/04 03:07 PM
Oh realy you make somthing thet work this is not a big deal
i never try to make somthink work becuse it make no sense
modal dialogs. they halt the script until the dialog is closed
actuali it works after closing the dialog also the $true is not valid anymore, and please behave to call my comends stupid act your age
Posted By: Coolkill Re: channel dialog - 04/07/04 03:53 PM
Oh well..
Posted By: Mentality Re: channel dialog - 04/07/04 04:05 PM
-General comment-

Guys, please take this to private before it turns into a flame war, nobody wants to see it and nobody cares. The person has been helped and so I see no relevance to further posting.

Regards,
© mIRC Discussion Forums