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

SendKeys strange behaviour on Windows XP in C#

I am using SendKeys in one of my program (C#) which copies selected text when a user presses F8 on keyboard. It is working fine on Windows 7 but on Windows XP it has the following problem. Suppose on notepad, following sentence is written "This is…
Ali
  • 1,801
  • 6
  • 43
  • 58
0
votes
1 answer

Configurable method read from XML used in VB.NET on calling

I have a question regarding how can i use a method name configurable to be called. E.g 1.I have a xml file with three elements looking like this:
Operagust
  • 137
  • 5
  • 6
  • 16
-1
votes
1 answer

Can you explain what each line of the C++ function is doing? It sends keystrokes but I am confused by how

I was making a program to send keystrokes to another window and I got it all working, but I had to go online and find a function to do the keystroke portion itself. It works but I have no idea what it is actually doing. Can someone comment each line…
-1
votes
1 answer

How can I send " sign from vbs?

So I have this code: Set WshShell = WScript.CreateObject("WScript.Shell") WshShell.SendKeys "{"}" But VBS says there is a mistake. How can I fix this? I was trying to put it in {} but it doesn't work.
-1
votes
1 answer

Sendkey in selenium sends not a full value, instead of 0.7795 it sends 7795

First I get the value, then I convert it to float to multiply it, but when I send it back as a string to a webpage instead of 0.7795 it sends 7795. Code below: values = driver.find_element(By.XPATH,…
arg
  • 51
  • 3
-1
votes
1 answer

How do I put quotation marks into quotation mark (vbs, sendkeys)

I need to type " into notepad with VBS script. I have this code: Set WshShell = WScript.CreateObject("WScript.Shell") WshShell.Run "notepad" wscript.sleep 500 WshShell.sendkeys "some "text"" But it shows an error.
Andrew
  • 33
  • 3
-1
votes
1 answer

Why send_keys function doesn't work in Python Selenium?

I have a problem in my code. for photolink in all_links: self.browser.get(photolink) #Link öffnen time.sleep(random.randint(5, 6)) #liken …
-1
votes
1 answer

Unable to pass dict value in send_keys, passing as string taking long time

from selenium import webdriver import time from selenium.webdriver.common.keys import Keys from selenium.webdriver.common.action_chains import ActionChains driver =…
SKK
  • 31
  • 1
  • 6
-1
votes
1 answer

Sending multiple whitespace / blankspace with Selenium Webdriver appears impossible

Could you please tell me how to send multiple whitespace / blank space using sendkeys or something similar. I am trying to test acceptance of creating username using multiple withespaces between other characters (like say "user name"). I was not…
-1
votes
1 answer

Why does python selenium send keys not input my keys sometimes?

I'm trying to code an auto gmail maker, and I'm on the part where it is confirming the phone number. When I run this code, I get: selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element:…
Andy Peng
  • 99
  • 1
  • 1
  • 5
-1
votes
1 answer

Sendkeys Workbooks vba

i'm trying with the code above save manually an another workbook (different of that the code is write). But... It doens't work. The command sendkeys just works on the properly worbook Workbooks("prorrogacao automatica.csv").Sheets("prorrogacao…
-1
votes
1 answer

C# copy to clipboard - third party

I would like to create an program like a text module in background. With a shortcut like ALT+A I am going to simulate an double click at the current cursor position (to select a word in a third party application) and use sendkeys CTRL + C to copy…
lerxer
  • 41
  • 5
-1
votes
1 answer

Handling file explorer in C# How to change to "All Files" option

I'm trying to handle a file explorer in C# but I don't know how to select the "All Files" option I've been successful in typing a file path into the file name text box and I'm able to press the OK button. But I can't select the file if I can't…
zaid iqbal
  • 101
  • 1
  • 2
  • 11
-1
votes
1 answer

SendKey.Send(variable) does not work on other computers

Someone told me he needs a program to type names in a textbox from another application. I am not able to get an API from the application. He has to type names which are listed in an excel file. After each name he has to press enter to create…
-1
votes
1 answer

How do I use the sendkeys.send to work with the windows key

I'm trying to make a software in c# that needs to sendkeys.send the windows key and l how would i do this ive tried sendkeys.send(keys.lwin); but that doesn't work