Developers

Capture Fox can be triggered from a web page or the page URL if "Allow Automatic Start" option is checked in Advanced Settings tab.

Capture Fox periodically checks the URL hash or the value (or text) of an HTML element. So you can control Capture Fox in two ways:

The command syntax is as follows:

<command name>|<command id>


You can use four commands to trigger Capture Fox events. These are as follows:

The id must be unique so that Capture Fox processes commands once. The id part can be generated easily by using the following javascript code:

var id = (new Date()).getTime();

A sample command in URL hash format is "#cf_cmd:start|1302966032381".
A sample command as a value (or innerHTML) of an HTML element is "start|1302966032381".

By Adding a URL Hash

The following URL hashes can be used to control Capture Fox:

By Setting the Value of an HTML Element

The id of the element must be cf_cmd. This element may be a hidden form element or another HTML element that can have text node. In summary, the element must have the value or innerText property. The following values are used to control Capture Fox:

Samples

Important Note: Before trying samples, click here to refresh the page to clear the parameters.
Also, don't forget to check "Allow Automatic Start" option in the Advanced Settings tab.

Changing URL Hash

Click the following links to try Capture Fox.

» Open Capture Fox Settings Dialog
» Start Capture Fox With Saved Preferences (no dialog is opened)

» Stop Capture Fox and Open Video Options Dialog
» Stop Capture Fox Silently (no dialog is opened)

Setting the innerHTML value of an HTML Element

The following yellow area is a span element and its id is cf_cmd:



Help Content


Support the Development of Capture Fox


© 2009 CaptureFOX. Designed by Advancity