Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to Assign a variable value to control?
#1
I am still working with the basics of Quick Macros.
What I am trying to do is assign the variable value to a control.
I used "Accessible Object Actions" dialog to find and allocate the control, it is a text box in a web page.

Code:
Copy      Help
int w=wait(3 WV win("New Tab - Google Chrome" "Chrome_WidgetWin_1"))
Acc a.Find(w "STATICTEXT" "Search Google or type URL" "" 0x3001 3)
a.Select(3)

str s="Some value"

a.Value=s

I am receiving a error
Error in Macro1: syntax.

I tried also
Code:
Copy      Help
a.SetValue(s)
I get error

Any help :?:


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)