Commit e4758e0c authored by Vitezslav Humpa's avatar Vitezslav Humpa
Browse files

rawinput: two new functions holdKey and releaseKey for keyboard

parent 00763041
Pipeline #6943465 passed with stages
in 19 minutes and 58 seconds
......@@ -5,7 +5,7 @@
Summary: GUI test tool and automation framework
Name: dogtail
Version: 0.9.9
Release: 6.68ec5d8e%{?dist}
Release: 7.00763041%{?dist}
License: GPLv2
URL: http://dogtail.fedorahosted.org/
Source0: http://fedorahosted.org/released/dogtail/%{name}-%{version}.tar.gz
......
......@@ -278,3 +278,15 @@ def keyCombo(comboString):
code = keyNameToKeyCode(modifier)
registry.generateKeyboardEvent(code, None, KEY_RELEASE)
doDelay()
def holdKey(keyName):
code = keyNameToKeyCode(keyName)
registry.generateKeyboardEvent(code, None, KEY_PRESS)
doDelay()
def releaseKey(keyName):
code = keyNameToKeyCode(keyName)
registry.generateKeyboardEvent(code, None, KEY_RELEASE)
doDelay()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment