kriomant / ch57x-keyboard-tool

Utility for programming ch57x small keyboard
MIT License
544 stars 66 forks source link

feature request: Mouse jiggle #86

Closed yeyeto2788 closed 5 months ago

yeyeto2788 commented 5 months ago

Hey there!

Is it possible to work on a mouse-jiggler functionality on a key press? Let's say 10 minutes of random mouse movements so the screen does not lock. The idea would be to have a user-defined time on which the mouse movements will be applied.

In some occasions, a minor up and down (does not need to be random) movement is needed every 15-30 seconds and would be plenty enough not to lock the screen.

For example, I do achieve this by using the python code below

import pyautogui
import time

position = pyautogui.position()

while True:
    pyautogui.moveTo(position[0]+1,position[1]+1)
    time.sleep(15)
    pyautogui.moveTo(position[0]-1, position[1]-1)
    time.sleep(15)

Cheers.

simon-something commented 5 months ago

This is at the software level, not the keypad itself - what you might do is mapping a chord/key combination which triggers your script (using whatever software available on your system to map the shortcut to your Python script execution). See the first item of the FAQ

yeyeto2788 commented 5 months ago

@drgorillamd thanks for the reply. Is it a good option but I was thinking more on a device functionality rather than a shortcut to execute a program/script within the PC. There are some situations that would not allow a user to run a script 😞

Something like this but built onto the firmware.

simon-something commented 5 months ago

You'd then need a new firmware (and a way to flash it) @yeyeto2788 - this is "only" an utility to configure key maps, so using the existing/current firmware. I haven't seen custom firmware for such in the wild, let me know if you spot one!

yeyeto2788 commented 5 months ago

My bad and thanks for the clarification.

The only thing I could find was something like this https://github.com/biemster/3keys_1knob but looks completely different.