From WikiChip
Difference between revisions of "mirc/commands/dialog"
< mirc‎ | commands

m (Bot: Fixing links)
(Switches)
 
(10 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 +
{{mirc title|/dialog Command}}
 
The '''/dialog command''' is used to create a dialog using a given table. The name is what the script/you will use to refer to the table. The standard dialog created using the /dialog command can be used to create model or modeless dialogs. Modeless it does not return a value when the dialog closes. As a result it does not halt the mIRC scripting engine, letting other script to keep processing. Dialogs can be kept open for as you want.
 
The '''/dialog command''' is used to create a dialog using a given table. The name is what the script/you will use to refer to the table. The standard dialog created using the /dialog command can be used to create model or modeless dialogs. Modeless it does not return a value when the dialog closes. As a result it does not halt the mIRC scripting engine, letting other script to keep processing. Dialogs can be kept open for as you want.
  
 
== Synopsis ==
 
== Synopsis ==
  /dialog -mbpardievon <name> [table]
+
  /dialog -mhbpardievon <name> [table]
 
  /dialog -kcx <name>
 
  /dialog -kcx <name>
 
  /dilaog -g <name> <newName>
 
  /dilaog -g <name> <newName>
 
  /dialog -t <name> [text]
 
  /dialog -t <name> [text]
 
  /dialog -s <name> [x y w h]
 
  /dialog -s <name> [x y w h]
  /dialog -mbpardievonts <name> [table] [x y w h] [text]
+
  /dialog -mhbpardievonts <name> [table] [x y w h] [text]
  
 
== Switches ==
 
== Switches ==
Line 14: Line 15:
 
* '''-b''' - Size Mode: DBU
 
* '''-b''' - Size Mode: DBU
 
* '''-p''' - Size Mode: Pixels
 
* '''-p''' - Size Mode: Pixels
 +
* '''-h''' - Dialog work with active server connection
 +
 
Modes Used with -m:
 
Modes Used with -m:
 
* '''-a''' - Uses the current window as parent
 
* '''-a''' - Uses the current window as parent
* '''-d''' - opens the dialog on the window
+
* '''-d''' - opens the dialog on the desktop
 
Modes Used with -d:
 
Modes Used with -d:
 
* '''-i''' - Minimize dialog
 
* '''-i''' - Minimize dialog
Line 83: Line 86:
  
 
== Compatibility ==
 
== Compatibility ==
Added: mIRC v5.5
+
{{mIRC compatibility|5.5}}
 
 
Added On: 08/01/1999
 
 
 
<small>Note: Individual switches were not taken into consideration.</small>
 
  
 
== See also ==
 
== See also ==
Line 103: Line 102:
 
{{mIRC command list}}
 
{{mIRC command list}}
  
[[Category:MIRC commands]]
+
[[Category:mIRC commands|dialog command - mIRC]]

Latest revision as of 11:29, 12 July 2020

The /dialog command is used to create a dialog using a given table. The name is what the script/you will use to refer to the table. The standard dialog created using the /dialog command can be used to create model or modeless dialogs. Modeless it does not return a value when the dialog closes. As a result it does not halt the mIRC scripting engine, letting other script to keep processing. Dialogs can be kept open for as you want.

Synopsis[edit]

/dialog -mhbpardievon <name> [table]
/dialog -kcx <name>
/dilaog -g <name> <newName>
/dialog -t <name> [text]
/dialog -s <name> [x y w h]
/dialog -mhbpardievonts <name> [table] [x y w h] [text]

Switches[edit]

Mode:

  • -m - Modeless dialog
  • -b - Size Mode: DBU
  • -p - Size Mode: Pixels
  • -h - Dialog work with active server connection

Modes Used with -m:

  • -a - Uses the current window as parent
  • -d - opens the dialog on the desktop

Modes Used with -d:

  • -i - Minimize dialog
  • -e - Restores dialog

Close:

  • -k - clicks the ok button
  • -c - clicks the cancel button
  • -x - closes the dialog without triggering any event

Change:

  • -t - Sets the dialog's title
  • -s - Sets the dialog's size [X Y W H]
  • -o - Sets the dialog on top of all windows
  • -n - Unset -o
  • -r - Centers the dialog
  • -v - Sets the dialog as the active window
  • -g - Renames dialog <name> <new name>

Parameters[edit]

  • <name> - Dialog Name
  • [table] - Table Name
  • [x y w h] - (x,y) coordinates, width and height
  • [text] - Text

Example[edit]

Consider:

Dialog Example1 {
  title "This is Example 1"
  size -1 -1 172 129
  option dbu
  tab "Tab A", 14, 2 0 165 123
  tab "Tab B", 15
  tab "Tab C", 16
  edit "", 17, 8 16 154 104, tab 16 multi return autohs vsbar
  menu "&File", 1
  item "&New", 6, 1
  item "&Open", 7, 1
  item break, 8, 1
  item "&Save", 9, 1
  item "Save &as", 10, 1
  menu "&Edit", 2
  item "&Copy", 11, 2
  item "P&aste", 12, 2
  menu "&view", 3
  item "&All", 13, 3
  menu "&Help", 4
  item "&About", 5, 4
}

Example 1:

;Modeless, Desktop
/dialog -md Example1 Example1

Example 2:

;Change the title of the dialog
/dialog -t Example1 This is Example 2!


Example 3:

;Rename the dialog
/dialog -g Example1 Example3

Example 4:

;Close the dialog, don't trigger any event
/dialog -x Example3

Compatibility[edit]

Added: mIRC v5.5
Added on: 08 Jan 1999
Note: Unless otherwise stated, this was the date of original functionality.
Further enhancements may have been made in later versions.


See also[edit]

v · d · e mIRC commands list

A /abook, /action, /add, /ajinvite, /alias, /aline, /ame, /amsg, /anick, /aop, /auser, /auto, /autojoin, /avoice, /away

B /background, /ban, /bcopy, /beep, /bindip, /bread, /break, /breplace, /bset, /btrunc, /bunset, /bwrite

C /channel, /clear, /clearall, /clearial, /cline, /clipboard, /close, /closechats, /closedccs, /closefserves, /closemsg, /cnick, /color, /colour, /comclose, /comlist, /commands, /comopen, /comreg, /continue, /copy, /creq, /ctcp, /ctcpreply, /ctcps

D /dcc, /dccserver, /dde, /ddeserver, /debug, /dec, /describe, /dialog, /did, /didtok, /disable, /disconnect, /dlevel, /dline, /dll, Template:mIRC/donotdisturb, /dns, /dqwindow, /drawcopy, /drawdot, /drawfill, /drawline, /drawpic, /drawrect, /drawreplace, /drawrot, /drawsave, /drawscroll, /drawsize /drawtext

E /ebeeps, /echo, /editbox, /else, /elseif, /emailaddr, /enable, /events, /exit

F /fclose, /filter, /findtext, /finger, /firewall, /flash, /flist, /flood, /flush, /flushini, /fnord, /font, /fopen, /fseek, /fsend, /fserve, /fullname, /fupdate, /fwrite

G /ghide, /gload, /gmove, /gopts, /goto, /gplay, /gpoint, /gqreq, /groups, /gshow, /gsize, /gstop, /gtalk, /gunload, /guser

H /hadd, /halt, /haltdef, /hdec, /hdel, /help, /hfree, /hinc, /hload, /hmake, /hotlink, /hop, /hsave

I /ial, /ialclear, /ialmark, /identd, /if, /ignore, /iline, /inc, /iuser

J /join

L /leave, /linesep, /links, /list, /load, /loadbuf, /localinfo, /log, /logview

M /maxdepth, /mdi, /me, /menubar, /mkdir, /mnick, /mode, /msg

N /noop, /notice, /notify

O /onotice, /omsg

P /pareline, /part, /partall, /pdcc, /perform, /play, /playctrl, /pop, /protect, /proxy, /pvoice

Q /qme, /qmsg, /query, /queryrn, /quit, /quote

R /raw, /registration, /reload, /remini, /remote, /remove, /rename, /renwin, /reseterror, /resetidle, /return, /returnex, /rlevel, /rline, /rmdir, /run, /ruser

S /save, /savebuf, /saveini, /say, /scid, /scon, /server, /set, /setlayer, /showmirc, /signal, /sline, /sockaccept, /sockclose, /socklist, /socklisten, /sockmark, /sockopen, /sockpause, /sockread, /sockrename, /sockudp, /sockwrite, /sound, /speak, /splay, /sreq, /strip, /switchbar

T /timer, /timestamp, /tip, /tips, /titlebar, /tnick, /tokenize, /toolbar, /topic /tray, /treebar

U /ulist, /unload, /unset, /unsetall, /updatenl, /url, /username, /uwho

V /var, /vcadd, /vcmd, /vcrem, /vol

W

X /xyzzy