This src aids in the execution of random clicks or keyboard presses.
Keep the screen from freezing!
-
randomClick()The click will be auto with a random time of 1-2 minutes and a random spot. -
keyPressAuto()-
Replace
'right'text inpress()for they key you want to press auto -
Replace nameId condition
(nameId == 95629 or nameId == 810)with the id of the app can auto press- For check the
nameIdyou can useprint(nameId)withtime.sleep(3)and move to the app current to see itnameId
- For check the
-
-
switchApp()Auto switch app after random time. You need check the app position withprint(pyautogui.position()) -
customActions()Any actions you wish can be customized. The feature is an illustration of an automatic click on another app and press in a particular app.
Set the main platform by replace value for main_platform variable macos or window
python3 /auto-tracking-actions/index.py