Quantcast
Channel: Programming Forums
Viewing all articles
Browse latest Browse all 51036

SendKeys.Keys() special chars in a variable problem

$
0
0
Hi !
I have made a simple program that copies the text written into a textbox (its NOT a spammer.. it rewrites the text only 1 time, i made it just to learn something)
and everything works, however i have spot a weird thing that when i write a character like ( then the program crashes.
I know how to fix it when i use something like SendKeys.Keys("+") (just put + into bracets) but how to do it with a variable ?
SendKeys.Keys(Textbox1.Text)

Viewing all articles
Browse latest Browse all 51036

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>