keystroke Questions

7

Solved

I made an app with AppleScript called FRIDAY. When I tell it to 'open chrome', it opens google chrome, this is working on Script Editor and out side of script editor. I can also tell it to 'open a ...

3

Solved

Question: How to actively check if a certain (decoration) key is pressed, like CTRL or SHIFT, like: if (SomeKeyboardRelatedService.isControlPressed()) {...} background I'd like to check if a certa...
Teaspoon asked 29/3, 2022 at 9:44

8

Solved

I want to suppress a key stroke in a TextBox. To suppress all keystrokes other than Backspace, I use the following: private void KeyBox_KeyDown(object sender, System.Windows.Input.KeyEventArgs e)...
Needlecraft asked 9/3, 2013 at 21:35

1

Solved

I'm building a macOS application that requires monitoring global keystrokes. So the global event listener would be: NSEvent.addGlobalMonitorForEvents(matching: NSEvent.EventTypeMask.keyDown) { (eve...
Connect asked 22/1, 2022 at 16:33

5

Solved

I keep finding ways to map the backspace key differently, but that's not what I'm after. I'm in a program writing a python code, and basically I want to write a line of code that causes the progra...
Regan asked 19/8, 2013 at 18:18

1

Solved

Ok, so I have a script with Hammerspoon that executes key stokes for me. Simple example: hs.hotkey.bind({'cmd','alt','ctrl'}, "b", function() hs.eventtap.keyStroke({}, "Left",...
Iatric asked 17/1, 2021 at 20:35

2

Solved

I created android application and hosted it on google play, but suddenly I deleted my project in Eclipse (from disk too) and now I am restoring some files from backup but I don't have old app_id in...
Berns asked 12/3, 2014 at 20:31

6

Solved

How can I simulate a keystroke in python? I also want to press multiple keys simultaneously. Something like: keystroke('CTRL+F4') or keystroke('Shift+A')
Behring asked 19/4, 2011 at 9:11

5

Solved

I'm searching for a way to simulate keystrokes in OSX. I found another solution (Simulate keypress for system wide hotkeys) using Objective-C, but i need to do it with Swift. How can i adapt CGEven...
Mclaurin asked 15/12, 2014 at 12:40

5

Solved

Easy one for you guys. I have a textbox on top of a listbox. The textbox is use to filter ther data in the listbox. So... When the user type in the textbox, I would like to "trap" the down/up/pa...
Rigorous asked 12/8, 2009 at 4:34

1

I am a speedrunner (somebody who likes to finish games in the fastest way possible) on PC games and I'd like to record my inputs while I play in order to automatically replay a run later. So I've c...
Septavalent asked 10/7, 2015 at 5:38

1

Solved

As described in this answer is possible to map keystrokes to commands in a terminal. And to do this, there is a specific bash syntax for describes each key, as \e[11~ for F1 or Control-o for Contro...

3

How can I get the keystrokes I enter to be displayed on-screen in VS Code? This would be for presenting or doing screencast.
Secretarial asked 7/8, 2018 at 18:16

2

Solved

Can Powershell listen for and capture key presses? Is it possible to write a PowerShell script that, like AutoHotkey, sits in tray and waits until you press a predefined keyboard key to start exec...
Peculation asked 17/1, 2019 at 13:9

7

Solved

I have a javascript function which runs when the 'down' key is pressed. I would like, that if the 'down' key is held down, the function would not run at all. I thought about timing between keydown...
Spiritualty asked 23/8, 2011 at 17:1

1

Run the following: from selenium import webdriver from selenium.webdriver.common.keys import Keys # Get web driver going cp = webdriver.ChromeOptions() cp.add_argument("--browser.download.folderL...
Heading asked 20/6, 2017 at 22:33

4

Solved

I am trying to write a simple script that will send the key combo of CTRL+WINDOWS KEY+TAB. The code below sends the keys CTRL+ALT+TAB Set WshShell = WScript.CreateObject("WScript.Shell") WshShel...
Cabal asked 13/10, 2012 at 22:20

2

I want to make a program in vb.NET 2008 which will listen keyboard in background, i.e. even though the application is minimized (globally). If a specific key is been pressed by user, it should keep...
Gastrotomy asked 23/2, 2013 at 7:54

3

Solved

    I have made an application already that sends commands to an activated window. I want to be able to use the computer while my process is running because as soon as I switch ...
Pannonia asked 3/8, 2009 at 5:56

2

Solved

I am using node.js v4.5 I wrote the function below to send repeated messages with a delay. function send_messages() { Promise.resolve() .then(() => send_msg() ) .then(() => Delay(1000) )...
Whoremaster asked 8/9, 2016 at 2:12

2

I need to capture everything that I type on my keyboard and then store it in numerous ways. I'd prefer it to be written in C# for .Net, but anything will do really. My reasons to write this "...
Marguerita asked 24/6, 2011 at 8:53

6

Solved

I have a div that has been given a tabindex, when the div is focused(click or tabbed to) it does the following: inserts an input into itself, gives the input focus this works great in FF, IE and ...
Fourfold asked 15/1, 2010 at 19:52

6

Solved

I would like to create an application wide keyboard shortcut for a Java Swing application. Looping over all components and adding the shortcut on each, has focus related side effects, and seems lik...
Penoyer asked 19/9, 2008 at 6:54

4

Solved

(using WPF) i try to detect when Ctrl + Enter gets hit. so i tried this code: if (e.Key == Key.Return && (e.Key == Key.LeftCtrl || e.Key == Key.RightCtrl)) { //Do Something } Obvious...
Sandon asked 24/4, 2012 at 6:28

2

Solved

I try to trigger a button when in an input field the return key has been hit. This works. But if I hit the tab key nothing is triggered because the TAB key event isn't captured. Fiddle example He...
Rainie asked 22/1, 2015 at 8:30

© 2022 - 2024 — McMap. All rights reserved.