DCX - Dialog Control Xtension
 
Web Control
Web HTML control.

/xdid flags
Control commands are input to the control with the /xdid command.
/xdid -g
This command is like hitting the Home button in IE.
Syntax:
/xdid -g [DNAME] [ID]
Example:
/xdid -g dcx 4

/xdid -i
This command is like hitting the Forward button in IE.
Syntax:
/xdid -i [DNAME] [ID]
Example:
/xdid -i dcx 4

/xdid -j
This command lets you execute some javascript code.
Syntax:
/xdid -j [DNAME] [ID] [JAVASCRIPT CODE]
Example:
/xdid -j dcx 4 alert('Hello')

/xdid -k
This command is like hitting the Back button in IE.
Syntax:
/xdid -k [DNAME] [ID]
Example:
/xdid -k dcx 4

/xdid -n
This command lets you navigate to an url.
Syntax:
/xdid -n [DNAME] [ID] [URL]
Example:
/xdid -n dcx 4 http://dcx.scriptsdb.org

/xdid -r
This command is like hitting the Refresh button in IE.
Syntax:
/xdid -r [DNAME] [ID]
Example:
/xdid -r dcx 4

/xdid -t
This command is like hitting the Stop button in IE.
Syntax:
/xdid -t [DNAME] [ID]
Example:
/xdid -t dcx 4

$xdid() Properties
The $xdid identifier is a given mIRC alias that communicates with the DCX DLL to extract information in DCX controls.
$xdid().ready
This property lets you retreive the ready state. If it is $true the control is ready for another command, else you should wait.
Syntax:
$xdid(dialog, ID).ready
Example:
$xdid(dcx, 4).ready

$xdid().url
This property lets you retreive the current loaded url.
Syntax:
$xdid(dialog, ID).url
Example:
$xdid(dcx, 4).url

Web Control Events
These events are fired when activity occurs in the Web Control control.
back
When the state of the back button changes.
Syntax:
/cb_alias DNAME back ID ENABLED
Example:
/cb_alias dcx back 4 $true
 
Note. ENABLED can be either $true or $false to indicate the enabled state of the back button.

dl_begin
When downloading is about to begin.
Syntax:
/cb_alias DNAME dl_begin ID
Example:
/cb_alias dcx dl_begin 4

dl_complete
When the downloading is complete.
Syntax:
/cb_alias DNAME dl_complete ID
Example:
/cb_alias dcx dl_complete 4

dl_progress
Downloading progress update.
Syntax:
/cb_alias DNAME dl_progress ID CURRENT TOTAL
Example:
/cb_alias dcx dl_progress 4 259700 1000000
Parameters:
CURRENT Current dowload position.
TOTAL Maximum download position.
 
Note.
  • CURRENT can be -1. If anyone knows why this occurs, please let us know here.
  • TOTAL can be 0, so make sure to check this before performing any calculation with it.
  • It is advised you use the values provided by CURRENT and TOTAL to display progress as these values may change with later revisions of Internet Explorer.

doc_complete
When the document has been downloaded.
Syntax:
/cb_alias DNAME doc_complete ID URL
Example:
/cb_alias dcx doc_complete 4 http://dcx.scriptsdb.org/

forward
When the state of the forward button changes.
Syntax:
/cb_alias DNAME forward ID ENABLED
Example:
/cb_alias dcx forward 4 $false
 
Note. ENABLED can be either $true or $false to indiciate the enabled state of the forward button.

help
Launched when you click on a control using the ? contexthelp button.
Syntax:
/cb_alias DNAME help ID
Example:
/cb_alias dcx help 4

nav_begin
When the text is clicked.
Syntax:
/cb_alias DNAME nav_begin ID URL
Example:
/cb_alias dcx nav_begin 4 http://dcx.scriptsdb.org/
Returncancel return this value to block the navigation.

nav_complete
When the control is finished navigating to the URL.
Syntax:
/cb_alias DNAME nav_complete ID URL
Example:
/cb_alias dcx nav_complete 4 http://dcx.scriptsdb.org/

status
When the statusbar text changes.
Syntax:
/cb_alias DNAME status ID NEW_TEXT
Example:
/cb_alias dcx status 4 New statusbar text

title
when the title changes.
Syntax:
/cb_alias DNAME title ID NEW_TEXT
Example:
/cb_alias dcx title 4 The other page title

win_open
When a new window is attempted to be opened.
Syntax:
/cb_alias DNAME win_open ID
Example:
/cb_alias dcx win_open 4
Returncancel Return this value to block the new window from opening.

Contact � 2005-2009 Last Updated: 12th July, 09

Valid XHTML 1.0 Transitional Valid CSS!