Question Using SendKeys to send a string value that include brackets.

VantiveGuy

Member
Joined
Mar 5, 2009
Messages
18
Location
Brussels on Contract
Programming Experience
1-3
Hello,

I have developed a VB.NET (VS2005) application that performs a dependency check of VBA code to see where a selected procedure was called from. I want to add the facility to launch an application and to load the selected procedure into it's edit window. I can launch the application and, using sendkeys, I can open the application window, and the final thing is to use SendKeys to insert the function name.
Now, here is the problem. Where the finction name contains parentheses, they get stripped out by SendKeys. For example where a function name is of the form "Scriptxyz(1)", then sendkeys sends the value "Scriptxyz1" to the application.
I have the script name defined as a string and am using SendKeys(strName).
How can I stop SendKeys from stripping out the parentheses?

Thanks for any help.

Al.
 
Back
Top