- Mar 31, 2020
- 17
- 21
I want to do automatic language translation with Python, as an example, I wrote a code and I managed to run it on my own pc. At least you can give some advice
I would appreciate it if you could help me develop a program that I use when there are languages in games that I do not understand, but which is challenging.
first download the pyperclip and pyautogui libraries
import pyperclip
import pyautogui
# Clipboard Gets the picture taken with PrtSc
image = pyperclip.paste()
Before you do this you must add a shortcut to the desktop. (
# Browser
import os
os.system('"type your desktop location\Translate.url"')
# wait for a second
import time
time.sleep(3)
# Paste on page
pyautogui.hotkey('ctrl', 'v')
copies the picture taken with the PrtSc key, opens the internet browser, and pastes the copied picture to yandex translation.
I want to use this program for Lightshot, what kind of way should I follow to translate the picture I cut.
I would appreciate it if you could help me develop a program that I use when there are languages in games that I do not understand, but which is challenging.
first download the pyperclip and pyautogui libraries
import pyperclip
import pyautogui
# Clipboard Gets the picture taken with PrtSc
image = pyperclip.paste()
Before you do this you must add a shortcut to the desktop. (
You must be registered to see the links
) type the filename as Translate# Browser
import os
os.system('"type your desktop location\Translate.url"')
# wait for a second
import time
time.sleep(3)
# Paste on page
pyautogui.hotkey('ctrl', 'v')
copies the picture taken with the PrtSc key, opens the internet browser, and pastes the copied picture to yandex translation.
I want to use this program for Lightshot, what kind of way should I follow to translate the picture I cut.