mIRC Home    About    Download    Register    News    Help

Print Thread
channel dialog #89023 03/07/04 06:09 PM
Joined: Dec 2002
Posts: 124
B
bloupx Offline OP
Vogon poet
OP Offline
Vogon poet
B
Joined: Dec 2002
Posts: 124
Hello,

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

Thanks.

Re: channel dialog #89024 03/07/04 07:45 PM
Joined: Mar 2004
Posts: 130
T
tsoglanos Offline
Vogon poet
Offline
Vogon poet
T
Joined: Mar 2004
Posts: 130
are you kiding the channel central dialog is modal it frezz access to other windows if it is open

Re: channel dialog #89025 03/07/04 09:24 PM
Joined: Dec 2002
Posts: 788
C
Coolkill Offline
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 788
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.

Re: channel dialog #89026 03/07/04 09:30 PM
Joined: Dec 2002
Posts: 1,922
O
Online Offline
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
Good thinking CK laugh

Re: channel dialog #89027 04/07/04 08:33 AM
Joined: Mar 2004
Posts: 130
T
tsoglanos Offline
Vogon poet
Offline
Vogon poet
T
Joined: Mar 2004
Posts: 130
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

Last edited by tsoglanos; 04/07/04 08:38 AM.
Re: channel dialog #89028 04/07/04 12:19 PM
Joined: Dec 2002
Posts: 788
C
Coolkill Offline
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 788
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.

Re: channel dialog #89029 04/07/04 03:07 PM
Joined: Mar 2004
Posts: 130
T
tsoglanos Offline
Vogon poet
Offline
Vogon poet
T
Joined: Mar 2004
Posts: 130
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

Re: channel dialog #89030 04/07/04 03:53 PM
Joined: Dec 2002
Posts: 788
C
Coolkill Offline
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 788
Oh well..

Re: channel dialog #89031 04/07/04 04:05 PM
Joined: Jun 2003
Posts: 5,024
M
Mentality Offline
Hoopy frood
Offline
Hoopy frood
M
Joined: Jun 2003
Posts: 5,024
-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,


Mentality/Chris