1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

[Python] How to go about making a simple copy-paste app in python or swift and hang on the...

Discussão em 'Python' iniciado por Stack, Setembro 14, 2025.

  1. Stack

    Stack Membro Participativo

    I wrote this simple program in python that acts as a semi-manual copy-paste program.
    I am combatting a copy-paste detection program in one of my classes (Intro to Programming). I am dying from the fact that when I make a small mistake I have to apply the physical labour of re-typing what I wrote again.

    I tried making a shortcut on 'Automator' in macbook by making it run a vim file that includes the directory of the program. However, I faced some problems with importing the package 'keyboard'. Idk im confused tbh.

    Anyways, I thought of a better idea. What if i can put some sort of app in the menu bar that has a text-box space and I just paste what I want in there, wait a few seconds while I navigate my cursor to the spot I want, then start typing.

    I am not proficient in swift at all btw.

    Here's the code:

    import time
    import keyboard

    input_str = input("Enter the String Required:\n")
    for x in "321":
    print(x)
    time.sleep(1)

    keyboard.write(input_str, 0.001, True, True)
    print("Executed")


    Very simple.

    Continue reading...

Compartilhe esta Página