Commands & Syntax > Commands > Networking/Web/E-mail >

www.perfectkeyboard.com

 

Web FILL FORM - < www_fillform >() ... [Pro]

 

Web FILL FORM
<www_fillform>("URL","Form fields data","Submit button",Window state,Timeout (seconds),Window handle)
Available in: Professional edition

This command opens a web page with form and fills the form by user pre-defined values. Only Internet Explorer browser is supported.

 

#

Parameter name

Parameter description

1

URL

Link (URL) to the web page (e.g., "http://www.pitrinec.com/samples/sampleform.htm").

2

Form fields data

The user defined web form data. The user uses "Retrieve URL and Form data" button in this command edit window. It is possible to edit this field manually, though, it will be very hard in most cases. The format is this: {frame index}{form name}{form item type}{form item name}{form item value}{form item selected}.

3

Submit button

A form button that is to be automatically "clicked" after the form is filled. If this field is left empty then the form is not submitted.

4

Window state

The state of the web browser window: 0 - Normal 1 - Maximized 2 - Minimized

5

Timeout (seconds)

Time in seconds the command waits for the web form is loaded and completed.

6

Window handle

 

 

Example (Macro Steps):

 

1

<#> <#> This simple example shows how to fill web form

2

Macro execution: ONLY COMMANDS

3

Web FILL FORM URL = "http://www.pitrinec.com/samples/sampleform.htm", Timeout (seconds) = "15"

Example (Plain Text):

 

<#> This simple example shows how to fill web form

<cmds>

<www_fillform>("http://www.pitrinec.com/samples/sampleform.htm","{0}{}{text}{T1}{John}{0}{0}{}{text}{T2}{McKvak}{0}{0}{}{textarea}{S1}{This is my comment:No comment!}{0}{0}{}{}{}{}{0}{0}{}{radio}{R1}{V7}{0}{0}{}{radio}{R1}{V8}{1}{0}{}{radio}{R1}{V9}{0}{0}{}{checkbox}{C1}{ON}{0}{0}{}{checkbox}{C2}{ON}{1}{0}{}{sel-one}{}{1}{0}{0}{}{}{}{}{0}{0}{}{sel-mul}{Dog}{}{0}{0}{}{sel-mul}{Big dog}{}{0}{0}{}{sel-mul}{Big cat}{}{0}{0}{}{sel-mul}{Big mouse}{}{1}{0}{}{sel-mul}{Cat}{}{0}{0}{}{sel-mul}{Mouse}{}{1}{0}{}{submit}{B1}{Submit}{0}","",1,15)