Skip to content

A python project based on tkinter module to manipulate auto mouse movement.

License

Notifications You must be signed in to change notification settings

imShakil/autopi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AutoPI

AutoPI is a python project, based on tkinter module to manipulate auto mouse movement and switching between tabs on your chrome browser. In case you need to keep up window active, you can use this application. It will move mouse and press keyboard shortcut to make window active and switching tabs.

Pre-requirements

  • Pyautogui
  • python3-tk
  • python3-dev
  • scrot

How to Install?

I already added all pre-requirements inside the python script. During running this script it will check all requirement packages. Incase it will install such pakcage those are missing in your linux distro.

So, First of all lets clone this repository:

git clone https://github.com/imShakil/autopi.git /opt/autopi

Now, let's move as super user:

sudo su -

It will ask the root user password.

Let's move into the directory.

cd /opt/autopi/bin

Now give permission to the binary file.

chmod +x autopi

Finally, run the application with following command:

./autopi

It will check and install the requirement processes.

Overview

This is a pretty simple application with 3 buttons only to start, stop and exit the application. It looks like:

overview.png

Create Desktop Entry

To run this application from dash menu, Create a desktop entry mouse-movement.desktop with the following text:

[Desktop Entry]
Version=1.0
Name=Auto Pi
Comment=AutoPi
Exec=/opt/autopi/bin/autopi
Icon=/opt/autopi/bin/icon.png
Terminal=false
Type=Application
Categories=Utility;Application;
StartupWMClass=MouseMovement

Put this desktop entry inside:

/usr/local/share/applications/

Usage

By default it will just try click your mouse and will switch tabs if they are open. You may customize the config.ini as your own.

[DEFAULT]
ActiveTime =

[MouseMovement]
allow = false
mmTime =

[MouseClick]
allow = true
button = 'right'
clicks = 2
intervals =

[SwitchingTabs]
allow = true

[RefreshWindow]
allow = false

[PageScroll]
allow = false
ScrollUp =
ScrollDown =

Customizing

Its still a basic program for a quick activity tracking system. You can customize it. You need to know some basic functionalites. I will keep it updated next with good features.

Support

If you found this helpful, please treat me some coffee here Thanks!

~ Shakil