Greetings users!
Ironically, I need to routinely fill-in 12 items on a web form about pain which in a certain number of instances are always the same answers for all items. LOL I want to automate "pain" for less pain.
Here is the in english answers mixed to the best of my ability with TextBlaze script.
comments are indicated by "//"
// WEB FORM PAIN SECTION
// script will
/pain // this will execute the script
< tab > // this will goto the first item which is a dropdown list of options
{key:downarrow} // this dropdown first selection means the person has pain
< tab > // this automatically is a goto the next item
{formtext: name=primarysite; default=generalized} // this will fill-in that the pain is generalized
< tab > // this will goto the next item
{key:downarrow} // this dropdown first selection means the the pain affects activity
< tab > // this will goto the next item
{repeat: 3}{key: downarrow}{endrepeat} // this dropdown 3rd selection means intensity is discomforting
< tab > // this will goto the next item
{repeat: 3}{key: downarrow}{endrepeat} // this dropdown 3rd selection means discomforting is best...
< tab > // this will goto the next item
{repeat: 2}{key: downarrow}{endrepeat} // this dropdown 2nd selection means discomforting is worst...
< tab > // this will goto the next item
{key:downarrow} // this dropdown 1st selection means the type of pain is aching
< tab > // this will goto the next item
{repeat: 3}{key: downarrow}{endrepeat} // this checkbox 3rd selection means non-verbal is stiff
{key:click} // this will click the checkbox
< tab > // this will goto the next item
{repeat: 8}{key: downarrow}{endrepeat} // this checkbox 8th selection means pain relief is rest
{key:click} // this will click the checkbox
< tab > // this will goto the next item
{repeat: 7}{key: downarrow}{endrepeat} //this drowpdown 7th selection means pain stabilization
< tab > // this will goto the next item
{key: downarrow} // this 1st check box will mean there are no abhorrent behaviours
{key:click} // this will select the checkbox
< tab > // this will goto the next item
{repeat: 4}{key: downarrow}{endrepeat} // this 4th dropdown selection means pain is daily
// the script ends
Does the above have the optimal syntax and correct scripting in TextBlaze language as stated below?
/pain
< tab >{key:downarrow}< tab >{formtext: name=primarysite; default=generalized}< tab >{key:downarrow}< tab >{repeat: 3}{key: downarrow}{endrepeat}< tab >{repeat: 3}{key: downarrow}{endrepeat}< tab >{repeat: 2}{key: downarrow}{endrepeat}< tab >{key:downarrow}< tab >{repeat: 3}{key: downarrow}{endrepeat}{key:click}< tab >{repeat: 8}{key: downarrow}{endrepeat}{key:click}{repeat: 7}{key: downarrow}{endrepeat}< tab >{key: downarrow}{key:click}< tab >{repeat: 4}{key: downarrow}{endrepeat}
instead of executing like desired, I get a textblaze pop-up. I click insert and this is what happens (minus all of the < tab > all appearing within a textbox of the form:
generalized[Error - Unknown key "click"][Error - Unknown key "click"][Error - Unknown key "click"]
Thoughts?