Giter Club home page Giter Club logo

autotype's Introduction

Autotype ๐Ÿ–Š

A quick and small python script that helps you autotype on websites that have copy paste disabled like Moodle, HackerEarth contests etc as it is difficult to efficiently debug your code on an online compiler.

Say Thanks! GitHub issues GitHub forks GitHub stars GitHub license Open Source Love svg1 PRs Welcome contributions welcome GitHub contributors

Works for windows, mac and linux

Pre-requisites

python3.9.x
pip

Development Setup

  • Create a new virtual environment using pipenv
pip install pipenv --user

# create venv and install dependencies from Pipfile
pipenv install
  • Activate the environment
pipenv shell

# check if activated
pip -V
  • Run it as CLI app

Provide the path of the file to be autotyped and the delay time through teminal/shell.

python3 command_line_script --path filePath --delay delay_before_typing

Run the GUI if you are not familiar with CLI apps.

  • Run the script python3 GUI_script.py

  • You can simply type your code in the textbox , enter the time delay and click the Start Typing button.The script will then type your code for you.

  • If your code is in a file , then leave the textbox blank , enter the time delay and click Start Typing button.A file exploror prompt will open asking you to select the file.Simply select your file and Done! Autotype will type your code for you.

  • There are two themes in the GUI Script: Dark and Light. By clicking the toggle in the bottom left corner of the window, you can switch between the two.

Run it as follows if you are not familiar with CLI apps.

Put the text inside code in Simulator/simulate_keyboard.py as follows

Line 13
code = """
    #include<bits/stdc++.h>
    {
        .
        .
        .
    }
"""
# Make sure to use triple quotes as it will preserve the code format.
  • Run the script python3 Simulator/simulate_keyboard.py
  • The script will start typing after 3s (wait or delay time can be tuned)
  • After running the script click on the window to move your cursor wherever you want to auto-type.

๐Ÿ’ช Thanks to all Wonderful Contributors

Thanks a lot for spending your time helping AutoType grow.
Thanks a lot! Keep rocking ๐Ÿป

Contributors

๐Ÿ™ Support++

This project needs your shiny star โญ.
Don't forget to leave a star โญ๏ธ

forthebadge made-with-python forthebadge

autotype's People

Contributors

aman-senpai avatar divyankgoyal avatar g-paras avatar joaofaveri avatar mr-sunglasses avatar nkilm avatar ryanwalker277 avatar shashwat1005 avatar srijan-ss02 avatar tushar5526 avatar utkal08 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.