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
-1
votes
1 answer

C# Sendkeys class {SHIFT}

I am trying to use the Sendkeys class to send a SHIFT key. But it doesn't allow for SHIFT. Only BACKSPACE or ENTER or basically anything but SHIFT. I need a way to send shift keys, like, Sendkeys.Send({SHIFT}); Is there a way to do this? Is there…
Jfopa
  • 21
  • 2
-1
votes
1 answer

Virtual Machine, Remote Desktop, SendKeys C#

I am trying to do the following with a VM accessed via RDP: Launch a command prompt thread.sleep long enough to disconnect RDP session (10 seconds, its ok if its longer) Sendkeys to command prompt to launch an exe that works in interactive mode. …
JoeCM
  • 1
  • 2
-1
votes
1 answer

Sendkeys On Disconnected RDP Session

I have a VB application which is scheduled. It focuses on some cmd windows and performs sendkey actions. This works fine when I have the RDP session open, it's only when I disconnect (not logoff) that the issue occurs. (This task is running on a…
Jacob Mason
  • 1,355
  • 5
  • 14
  • 28
-1
votes
1 answer

sendkey() doesnt work in selenium webdriver

I tried to input phone numbers in the field but it gives me an error Exception in thread "main" org.openqa.selenium.NoSuchElementException: no such element Here is the code: …
-1
votes
1 answer

Powershell Mouseclick Dialog Box

I am writing a script to use winzip from powershell but I am having problems clicking the mouse inside the address bar of a dialog box. I have solved the problem using the 7zip method but I want to learn another method. (I have 2 screens hence the…
Clint Eastwood
  • 135
  • 1
  • 7
-1
votes
1 answer

using sendkeys with excel VBA

Apparently, the Application.CalculateFull is not returning the correct results on a worksheet with many formulae, but when I Press F9 it works fine. I had a similar file from Excel 2003 and Calculate command worked just fine for such worksheet with…
chandanrs
  • 19
  • 1
  • 1
  • 4
-1
votes
2 answers

How to send keys to a difficult element in selenium (Python)

I am trying to click a small button, which has no "ID" or "Name", on a website. The only unique identifier is onclick, which is as follows:…
-1
votes
1 answer

Specified repeat count is not valid

I'm experimenting with a simple auto typer. I've made several of these before, but have never received this error. I just want to be able to send the text within textbox3 to the currently focused window. Here's the code : code: Private Sub…
Jake2k13
  • 231
  • 3
  • 8
  • 23
-1
votes
1 answer

Copy the selected object to clipboard VB.NET

i want to make an application that selects the focused Object where ever is maybe in a browser or Explorer or any place i think there is a function SendKeys.Send("^(c)") but it does not work, any ideas ?
Dark-Core
  • 17
  • 1
  • 7
-1
votes
1 answer

Sending Ctrl-Alt-Break from C#

I'm trying to send a Ctrl-Alt-Break sequence to an RDP ActiveX window in a WebBrowser control in order to make it fullscreen. I've searched the internet and tried numerous ways to accomplish this (PostMessage, keybd_event, SendMessage), and have not…
Michael S.
  • 305
  • 4
  • 17
-1
votes
3 answers

SendKeys GUI Bug

I've made this program in C#: namespace Spammer { public partial class Form1 : Form { int delay, y = 1; public Form1() { InitializeComponent(); } private void button1_Click(object sender,…
BlueRay101
  • 1,447
  • 2
  • 18
  • 29
-1
votes
1 answer

WPF/C# keyboard event input sendkey

Hi I want to type text in textbox by sendind keys from keyboard. Xaml:
Finchsize
  • 935
  • 2
  • 17
  • 34
-1
votes
1 answer

How do i send a set of keys to my program to implement using code only no keyboard C#?

How do i implement a set of keys that have been sent to me by another program , for example (Alt & F4) or any other wanted sequence ? , Thanks in Advance :)
Yaser Jaradeh
  • 322
  • 1
  • 6
  • 27
-2
votes
2 answers

Simulating/Synthesizing simple key presses within an out-of-focus application window using PostMessage

Trying to write a simple demo program where keyboard input into the console gets translated to key presses on a target window belonging to some other application process. So if I type the character "w" on my keyboard into the console, it translates…
-2
votes
1 answer

Why is Selenium sometimes unable to send characters within input field without any error message?

I'm using Selenium in python to webscrape. Most of the time when I use: driver.find_element_by_xpath("//input[@placeholder='name']").send_keys("data") it works but in some occasions it does not, and it has no error…