Skip to content
This repository has been archived by the owner. It is now read-only.
Browse files
Changed keylogging parameter to not confuse with the term details.
  • Loading branch information
mooshu1x2 committed Jul 29, 2016
1 parent f8abb99 commit 3b4dc2484ff9fbd81916e941d8b16e23419c8572
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 16 deletions.
@@ -25,22 +25,20 @@ class Ale (QObject):

def __init__(self,
:param output: [str] The file or url path to which logs will be sent
:param autostart: [bool] Should UserAle start automatically on app rendering
:param interval: [int] The minimum time interval in ms betweeen batch transmission of logs
:param user: [str] Identifier for the user of the application
:param version: [str] The application version
:param details: [bool] Should detailed logs (key strokes, input/change values) be recorded. Default is False
:param keylog: [bool] Should detailed key logs be recorded. Default is False
:param resolution: [int] Delay in ms between instances of high frequency logs like mouseovers, scrolls, etc
:param shutoff: [list] Turn off logging for specific events. For example, to ignore mousedown events, ['mousedown']
:param shutoff: [list] Turn off logging for specific events
An example log will appear like this:
@@ -51,7 +49,7 @@ def __init__(self,
'path': ['Example', 'testLineEdit'],
'clientTime': ,
'location': {'x': 82, 'y': 0},
'type': 'mouseHover',
'type': 'mousemove',
'userAction': 'true',
'details' : [],
'userId': 'userABC1234',
@@ -64,11 +62,10 @@ def __init__(self,

# UserAle Configuration
self.output = output
self.autostart = autostart
self.interval = interval
self.user = user
self.version = version
self.details = details
self.keylog = keylog
self.resolution = resolution
self.shutoff = shutoff

@@ -98,13 +95,9 @@ def __init__(self,

# Turn on/off keylogging & remove specific filters
for key in list(
val = [key]
name = list (val) [0]
# Handle shutoff
if name in self.shutoff:
del [key]
if self.details and (name == 'keypress' or name == 'keyrelease'):
for key in list (
name = list ([key]) [0]
if name in self.shutoff or (not self.keylog and (name == 'keypress' or name == 'keyrelease')):
del [key]

def eventFilter(self, object, event):
@@ -63,7 +63,7 @@ def initUI(self):
def test_drag ():
app = QApplication(sys.argv)
# Turn off mouse click's and keylogging
ale = Ale (shutoff=['mousedown', 'mouseup'], details=True)
ale = Ale (shutoff=['mousedown', 'mouseup'], keylog=True)
# install globally
app.installEventFilter (ale)
ex = Example()

0 comments on commit 3b4dc24

Please sign in to comment.