mIRC Home    About    Download    Register    News    Help

Print Thread
#82557 10/05/04 07:49 AM
Joined: May 2004
Posts: 14
F
fskolog Offline OP
Pikka bird
OP Offline
Pikka bird
F
Joined: May 2004
Posts: 14
Im qurious what does the -a switch actualy do? I kinda hoped it would nest the dialog, but it doesnt seem that way. Actualy, it doesnt seem to do anything:). Or do i just dont know how to use it:?

#82558 10/05/04 08:10 AM
Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
opens the dialog in the active window, so if you opened the dialog while the status window was active, then click #mIRC on the switchbar, you would no longer see the dialog.


New username: hixxy
#82559 10/05/04 08:34 AM
Joined: May 2004
Posts: 14
F
fskolog Offline OP
Pikka bird
OP Offline
Pikka bird
F
Joined: May 2004
Posts: 14
heh i finaly figured it out:). It doesnt seem to do what you said though.
It centers the dialog in the parent window if you use -1 -1 for the coordinates.

txh anyway:)

#82560 10/05/04 08:52 AM
Joined: Feb 2004
Posts: 2,019
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2004
Posts: 2,019
Hi,

The /dialog command
The /dialog command allows you to create a modeless dialog with the -m switch. This type of dialog doesn't halt or return a value to the calling script, and the dialog can be displayed indefinitely and used for many purposes.

/dialog -mdtsonkcvie name [table] [x y w h] [text]


-m create a modeless dialog using 'table'
/dialog -m name table

-a used with -m, uses currently active window as the parent

-x close a dialog without triggering any events

-d open dialog on the desktop, used with -m

-h make dialog work with active server connection

-t set dialog title
/dialog -t name text

-s set dialog size/pos
/dialog -s name x y w h
-r centers dialog

-bp interprets size as dbu or pixels

-o set dialog ontop of all windows
-n unset ontop setting

-k click ok button
-c click cancel button

-v makes the dialog the active window

-ie minimize/restore the dialog if created on the desktop

Where name is the name by which you'll refer to the dialog, and table is the dialog table name used to create dialog (see below).


For more help regarding dialogs and according flags, type /help /dialog

Greetz


Gone.
#82561 10/05/04 04:02 PM
Joined: Dec 2002
Posts: 1,922
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
Quote:
It doesnt seem to do what you said though.

This 'parenting' matters only when the active window is outside of mIRC, i.e. a desktop window.

For example, try //window -d @@ | dialog -am name table, and you will see how the dialog disappears when you switch back to mIRC.


Link Copied to Clipboard