Difference between revisions of "Relay Browser Functions"

From Kolmafia
Jump to navigation Jump to search
imported>StDoodle
m
imported>StDoodle
m
Line 3: Line 3:
 
{{flink|void|write|string|desc=Writes text to the relay browser.}}
 
{{flink|void|write|string|desc=Writes text to the relay browser.}}
 
{{flink|void|writeln|string|desc=Same as above, ending with a line break (in the page source).}}
 
{{flink|void|writeln|string|desc=Same as above, ending with a line break (in the page source).}}
 +
 +
{{flink|string|form_field|string|desc=Returns the &quote;value&quote; attribute of a previously-submitted input tag.}}
 +
{{flink|string [string]|form_fields|desc=As above, but returned as a map of all values keyed by input names.}}

Revision as of 16:01, 10 April 2010

For general information on how to use these functions, please see Relay Override Scripting.

void write( string )

Writes text to the relay browser.

void writeln( string )

Same as above, ending with a line break (in the page source).


string form_field( string )

Returns the &quote;value&quote; attribute of a previously-submitted input tag.

string [string] form_fields()

As above, but returned as a map of all values keyed by input names.