Text replacement software and Citrix
-
שבת 14 אפריל 2012 22:05
I'm building an text replacement application,
it works fine until:
on my work we use Citrix XenAPP and still that's alright
because when I enter the shortkey, the text from the string is typed with sendkeys.send()
but the shortkey isn't ereased before typing
I use sendkeys.send({backspace})well I figured out that XenApp wont react on all the buttons like delete and backspace...
I tried some things like this.. http://inputsimulator.codeplex.com/
but not with success outside the application it works fine until inside XenApp
I Hope you can help me,
with Thanks in Advance,
Arjan Kuijpersprivate void check_typed() { if (System.Text.RegularExpressions.Regex.IsMatch(keybuffer,ckName.Default.name1, System.Text.RegularExpressions.RegexOptions.IgnoreCase)) { nameLength1 = ckName.Default.name1.Length; while (nameLength1 >= 1) { // SendKeys.Send("{BACKSPACE}"); InputSimulator.SimulateKeyPress(VirtualKeyCode.BACK); nameLength1--;
כל התגובות
-
יום שני 16 אפריל 2012 11:51
Why do you use SendKeys in the first place? Are you trying to control third-party applications with your tool? You may take a look at that thread about the input simulator, it shows you some enhancements.
- סומן כתשובה על-ידי Bob ShenMicrosoft Contingent Staff, Moderator יום רביעי 25 אפריל 2012 04:46