mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Jan 2004
Posts: 129
A
AaronL Offline OP
Vogon poet
OP Offline
Vogon poet
A
Joined: Jan 2004
Posts: 129
G'day to all

As the topic says.
I have a dialog with several buttons.
They open a aline window, but the dialog needs to be closed after that. As long its one button, the ok works good, but i want 2 other buttons to do the closing aswell.
Is that possible, and so yes please help me out.

Thanxs in advanged.
Aaron

Joined: Oct 2004
Posts: 8,061
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Oct 2004
Posts: 8,061
To close without triggering any events:
Code:
  if ($did == XXXX) { dialog -x $dname }


To close by "clicking" the OK button:
Code:
  if ($did == XXXX) { dialog -k $dname }


Joined: Jan 2003
Posts: 2,125
Q
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,125
Use the on dialog sclick event for those two buttons to perform a /dialog -c $dname (or /dialog -x $dname). You'll need to look up these things in the help file for more details.

Joined: Jan 2004
Posts: 129
A
AaronL Offline OP
Vogon poet
OP Offline
Vogon poet
A
Joined: Jan 2004
Posts: 129
Hi Riamus 2.

I used your first example and it works just fine..
Thank you so much smile


Link Copied to Clipboard