473,378 Members | 1,620 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

SendKeys (Sending Origional String)

I have a string that I want to send with SendKeys.Send(...) exactly as
the string is (It may or may not contains special characters like
"+").

Is there something already built to auto parse the string or tell the
method to not parse anything? I already created have my own function
that converts (+ ^ % ~ { [ ] }), I'm just wondering if I can get ride
of it for a built in version.

NB
Jan 15 '08 #1
1 1413
On Jan 15, 2:45*pm, NvrBst <nvr...@gmail.comwrote:
I have a string that I want to send with SendKeys.Send(...) exactly as
the string is (It may or may not contains special characters like
"+").

Is there something already built to auto parse the string or tell the
method to not parse anything? *I already created have my own function
that converts (+ ^ % ~ { [ ] }), I'm just wondering if I can get ride
of it for a built in version.

NB
Instead of the function you can do it with 1 line (with the
System.Text.RegularExpression). Regex.Replace(myString, @"([\+\^\%\~\
{\}\[\]\(\)])", "{$1}"). But still a little curious on if there is
built in functionality for this.

NB
Jan 16 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Mr. Bungle | last post by:
I would like to send email automatically via a command button. I have accomplished this just fine through the following code: (Outlook should already be open for reliable results) Private Sub...
2
by: RBohannon | last post by:
I need to create a report in MS Word populated with data from A2K. I have been asked to create the report in Word so that parts of it can be edited as necessary later. The data in the report are...
1
by: Bryan | last post by:
I am writing a C# Windows App that updates out Excel reports' modules. The app is complete, but has a problem. The only way MS allows you to unprotect the VBA code in Excel is to do it by hand or...
1
by: GrantS | last post by:
I need to use a sendkeys key combination to automate the "accept files" that a remote user wants to send to me via Windows messenger. I am using automation to work with Windows Messenger client in...
5
by: alfred.sehmueller | last post by:
Hello, i built a small system-tray application that listens to a hotkey builds a string and inserts the string to the active application using SendKeys.Send() The Problem is - this works only...
3
by: mark | last post by:
I have a procedure that needs to put characters into the current insertion point of a textbox. This insertion point is not necessarily the end of the current string so textbox1.text &= "?" won't...
2
by: Phil Galey | last post by:
I have an application written in VB.NET, running on Windows 2000 SP 3. It uses a process object and AppActivate, followed by SendKeys commands, to control a running QuarkXPress application. On...
0
by: neonspark | last post by:
I'm buidling some simple macro functionality for my app so the users can record a sequence of keyboard inputs and replay them reliably via some menu. Originally, I used: protected override bool...
0
DOSrelic
by: DOSrelic | last post by:
I have read this page http://msdn.microsoft.com/en-us/library/system.windows.forms.sendkeys(VS.71).aspx but try as I might I cannot figure out how to do it. I tried many combinations but none of...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.