SendKeys for a variable

Getting started -basics for starting with WinTask

SendKeys for a variable

Postby Yasir on Wed Mar 18, 2015 9:05 am


I am using gmail and trying to attach some documents for sending.

The files names are in: tab$(I)
I need :

I have tried many ways to do this, how to use sendkeys for a variable?
Posts: 18
Joined: Tue Jun 21, 2005 5:18 pm

Re: SendKeys for a variable

Postby TechSupport on Thu Mar 19, 2015 9:25 am


A string constant is between quotes, for example
"Hello world"
so "tab$(i)" is a constant, it's the text tab$(i), it's not the content of the variable tab$(i)
The syntax for sending a variable is:
and if you want to add a constant to this variable, the syntax is:
SendKeys("Hello world"+tab$(i))

Best regards.
WinTask Tech Support
Posts: 805
Joined: Thu Nov 16, 2006 9:58 am

Return to Getting started

Who is online

Users browsing this forum: No registered users and 3 guests