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 & '?
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 & '?
Where is sendkeys sending the information to a command line?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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)
objShell.SendKeys Chr(34) & name & Chr(34)
ASKER
Thanks