Using SendKey with Variables
Keywords: sendkey variables
Question:
Can the SendKey Function be used with variables sent from a calling file? If so, how?Answer:
Yes. If you are *real* careful.myvar="Fred and Alice" SendKey(myvar)The problems come in if the calling file has special sendKey characters in it. For example, if it has:abc+defDo you want:abc+def typed
or
abcDef
typed?
If you want the first case then you must fix the string as follows:
myvar="abc+def" myvar=StrReplace(myvar,"+","{+}")
Article ID: W13845Filename: Using Sendkey with Variables.txt