Questions tagged [sendkeys]

A .NET class that sends one or more keystrokes to the active window as if they were typed at the keyboard.

A .NET class that sends one or more keystrokes to the active window as if they were typed at the keyboard.

MSDN Documentation for System.Windows.Forms.SendKeys

1218 questions
15
votes
4 answers

SendKeys alternative that works on Citrix

I recently developed a virtual keyboard application for a customer. The program is working fine with almost all programs, but certain commands like {ENTER} or {DEL} are not working with Citrix. Is there are workaround or an alternative to…
xsl
  • 17,116
  • 18
  • 71
  • 112
15
votes
9 answers

Selenium sendKeys are not sending all characters

I'm using Java, Selenium, and Chrome for test automation. Our developers recently upgraded our UI from AngularJS to Angular2 (not sure if that matters). But since then, sendKeys is inputting incomplete characters in to the text field. Here's an…
Larica B
  • 153
  • 1
  • 1
  • 7
15
votes
9 answers

SendKeys() permission denied error in Visual Basic

I am trying to use the SendKeys() command to another window with my VB6 app. What I wanted is to click a button, and then have 10 seconds to go to the other window before the app sends some keys to that window. I got everything sorted but for some…
Phox
  • 499
  • 3
  • 9
  • 12
15
votes
1 answer

How to Send Ctrl+Shift+F1 to an application using send keys

I want to send Ctrl+Shift+F1 combination of keys to an application. But when I try to send the keys i am getting an error,the error is, ^+F1 is not a valid key. The code I am using is: System.Windows.Forms.SendKeys.Send("{^+F1}");
Mohd Zubair
  • 237
  • 1
  • 3
  • 7
14
votes
2 answers

Make a form not focusable in C#

I'm wanting to write a virtual keyboard, like windows onscreen keyboard for touchscreen pcs. But I'm having problem with my virtual keyboard stealing the focus from the application being used. The windows onscreen keyboard mantains the focus on the…
Jandex
  • 303
  • 1
  • 2
  • 8
13
votes
3 answers

Sendkeys from command prompt

Is there a way to use sendkeys (or something equivalent) from (not to) the command prompt?
Eugene
  • 10,957
  • 20
  • 69
  • 97
12
votes
2 answers

Send special character with SendKeys

I am using textboxes to send text via SendKeys, but when I insert special characters in the textbox, my application crashes. For example, when I put in a '+' in the textbox, I get this error: SendKeys string '+' is not valid. I need a solution to…
Swag
  • 2,090
  • 9
  • 33
  • 63
11
votes
1 answer

Python and Selenium - Avoid submit form when send_keys() with newline

I am using Python 3 with selenium. Let's assume var = "whatever\nelse" My problem is that when I use elem.send_keys(var) it sends the form after "whatever" (because of the newline) How may I replace "whatever\nelse" with whatever + SHIFT+ENTER +…
Álvaro N. Franz
  • 1,188
  • 3
  • 17
  • 39
11
votes
7 answers

The method sendKeys(CharSequence[]) in the type WebElement is not applicable for the arguments (String)

I am trying to send a String to the sendkeys() method, but it is not accepting and throwing an error as my codes follows: package healthcare; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import…
mickey
  • 190
  • 1
  • 2
  • 9
10
votes
1 answer

Detecting Ctrl+V with RegisterHotKey but not intercepting it

I need to detect when a user presses Ctrl+V(regardless of window focus - my app will likely be minimised) but I must not stop the actual paste operation. I have tried a few things: (I am successfully binding to keystrokes with RegisterHotKey) I…
Ozzah
  • 10,631
  • 16
  • 77
  • 116
10
votes
2 answers

Vb.net sendkeys, letters duplicate?

I created a simple test with SendKeys, and tried both SendWait and Send. Private Sub Form1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Click System.Threading.Thread.Sleep(10000) SendKeys.SendWait("If you can read…
Cyclone
  • 17,939
  • 45
  • 124
  • 193
9
votes
2 answers

Sending letter 'i' with SendKeys

I made an on screen keyboard with c# Windows Forms. I use Sendkeys.Send() function to send the keystrokes. All letters but the letter i works fine. When I press the letter i on the keyboard when Microsoft Word is open, it sends Ctrl + Alt + I and…
Ozgur Dogus
  • 911
  • 3
  • 14
  • 38
9
votes
2 answers

Sending keystrokes to a program

In window form, I made a button and I'm trying to make it send F1 to a specific window (Such as FireFox, My Computer, etc...) My questions are : How do I do it by the window's name? (such as "Mozilla Firefox") How do I do it by the process's name?…
Or Betzalel
  • 2,427
  • 11
  • 47
  • 70
9
votes
1 answer

How to send several keys in WebDriver with Python?

How to make Python code in WebDriver to press Command+Shift+H buttons on keyboard (or keys)? Update: info: Pushing command to appium work queue: "au.mainApp().getTreeForXML()" debug: Sending command to instruments: au.mainApp().getTreeForXML() info:…
Kirill
  • 1,530
  • 5
  • 24
  • 48
9
votes
4 answers

How to press the Windows key programmatically using C# SendKeys

Basically I want to simulate in code a user clicking on the windows key. I know there is SendKeys which allows me to send key presses to windows if I get a handle to them, but what I can't figure out is what I need to get a handle on in order to…
PentaPenguin
  • 196
  • 2
  • 11
1
2
3
81 82