pyHook is a python wrapper for global input hooks in Windows. Specifically it wraps the Windows SetWindowsHookEx API function using low-level keyboard (WH_KEYBOARD_LL) and mouse (WH_MOUSE_LL) hooks.
Questions tagged [pyhook]
202 questions
0
votes
0 answers
pandas could not lockup my number correctly?
I am learning to use pandas and python. I want to look up a value from an excel in column A and print the value in column B. But Pandas can't find my value. Sometimes Pandas can find my value, but sometimes Pandas can't find my value, even though it…

Fijri Dahlawy
- 11
- 1
0
votes
1 answer
Script to load JSON file and create a condition to end or continue with the code
Hello I call a JSON file with the next code:
with open('C:/ftpfiles/itemdatasku.json') as json_file:
data = json.load(json_file)
What I want to do is create an exception if “list_no” doesn’t exist, or has other information then the script must…

Alex Co
- 53
- 6
0
votes
0 answers
RuntimeWarning: overflow encountered in long_scalars
I have the code below. when I try to run it, I get an error messages says:
"C:\Users\hanab\OneDrive\Desktop\Numerical simulation\HW#5\numer.py:33: RuntimeWarning: overflow encountered in long_scalars
X[i,j] = (k0/(mu0157.9778831)) *…

Hana Bachi
- 11
- 3
0
votes
0 answers
Detect Mouse Cursor changes in Windows
I will like to know which python library I can use for detecting changes to the mouse pointer state. Say a change from "arrow" to "hand". I have looked at pyhook, pyautogui, pynput, pywin32, pynput. These may have functions for detecting mouse…

middlepost
- 5
- 3
0
votes
1 answer
ImportError: No module named pathlib Windows OS and Python version 3.8
Hi im trying to run a venv for my project. Everythin goes well install requirments and creating a my venv. The problem is that when i try to make a manage.py migrate i get this error. Ive looked everywhere and i got python version 3.8 installed.…

The
- 73
- 7
0
votes
5 answers
How to install through pip
I was trying to make a keylogger but i couldn't download the Pyhook module

Mr Fire
- 1
0
votes
1 answer
How to use image jpg with numpy.load()
I try to implement this code, using colab:
x = np.load('data_sample.npy',allow_pickle=True)
stacked_x = np.concatenate([x,x,x],1)
stacked_x.shape
but my sample was an image in jpg format, so I wasn't able to convert these images to .npy to use…

norah
- 69
- 1
- 10
0
votes
0 answers
Script to know when user clicks the mouse causes deadlock
I am trying to code a script that would adjust the view in a game after user clicks the mouse, and stop adjusting if mouse was released. To enable/disable my script I used a keyboard.Listener from pynput. To know when user clicks the mouse I tried…

Edvinas Deksnys
- 31
- 6
0
votes
1 answer
wxPython, how to steal focus from another app when using pyxhook?
I tried to use pyxhook with wxPython. What the program suppose to do is when the window is hid or minimized, when the user press "R_Control", even when another application is still in focus, wxPython window should be shown, and set in focus. But…

Running Ray
- 11
- 1
0
votes
0 answers
Python 2.7 error when installing package using wheel files
I am trying to install pyHook with a wheel file (.whl) but for some reason it keeps giving me this error:
pyHook-1.5.1-cp27-cp27m-win_amd64.whl is not a supported wheel on this platform.
I got the wheel file from this…

Erick Amoedo
- 475
- 1
- 4
- 9
0
votes
2 answers
Issues building pywinhook from source
Python interpreter: 3.7
Python library: pywinhook https://pypi.org/project/pyWinhook/.
Objective: Add some features or functions to pywinhook library.
Tutorial to build this library: This library was done from pyHook library. That is why I am using…

sergioMoreno
- 189
- 1
- 15
0
votes
2 answers
How to switch back from iFrame index to the relative parent?
How to switch back from iFrame index to the relative parent in (Python)?
I use this code but not working for me :
def type_order_credit_card1_number(self, credit_card_1_number):
WebDriverWait(self.driver,…

FlutterLover
- 597
- 1
- 11
- 21
0
votes
1 answer
Remove duplicate values from python dictionary value for the same key
I have a python dictionary
graph = {'A': ['B', 'C','B'], 'E': ['C', 'D']}
I would like to remove the duplicate values from my dictionary & would like to have in this form
graph = {'A': ['B', 'C'], 'E': ['C', 'D']}
This is the sample dataset. I'm…

newinPython
- 313
- 1
- 6
- 19
0
votes
1 answer
Python Code when submitted returns Runtime Error - NZEC
def fact(y):
if y == 1 or y == 0:
return 1
else:
return y*fact(y-1)
x,n= map(int,input().split())
f = fact(n)%10
l = x**f
print(l%10)
It was getting submitted partially.

Akhil Matcha
- 25
- 1
- 4
0
votes
0 answers
How to set repeat interval time in background-tasks using django?
I tried to run the background task code in Django. its working fine but interval time is not working. it working every second how to fix it anyone gives some solution.
views.py
from django.shortcuts import render
from django.http import…

hari prasanth
- 716
- 1
- 15
- 35