Link to home
Start Free TrialLog in
Avatar of bergertime
bergertime

asked on

vbscript unknown charactor in sendkey

I have, objShell.SendKeys name
I am getting name from a client access screen from an i Series.  If the text is just text everthing is cool, if I have a strang charactor, ( or + it errors out.  can I enclose the name in quotes or something to prevent this?  so something like objShell.SendKeys ' & name & '?
Avatar of solomonacquah
solomonacquah
Flag of United States of America image

Where is sendkeys sending the information to a command line?
ASKER CERTIFIED SOLUTION
Avatar of Shift-3
Shift-3
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of bergertime
bergertime

ASKER

To a windows app.  The script starts a clickonce app, then scraps the text from an as400, then pastes the text in the windows app.
Try using double quotes

objShell.SendKeys Chr(34) & name & Chr(34)
Thanks