Skip to content

Instantly share code, notes, and snippets.

View wonsolution's full-sized avatar

wonsolution.kr wonsolution

  • korea, a-san
View GitHub Profile
import pyautogui as ag
import keyboard
import time
mpos_list=[]
while True:
while True:
if keyboard.is_pressed('F3'):
mpos = ag.position()
mpos_list.append(mpos)
@wonsolution
wonsolution / Python Macro ticketing
Last active May 25, 2022 03:15
Python openCV macro
import pyautogui, sys
from time import sleep
import pyperclip
import cv2
import numpy as np
pyautogui.click(808,1420)
sleep(1)
print('창 열기')
...
pip install requests beautifulsoup4 lxml
...
import requests
from bs4 import BeautifulSoup
import time
keyword = '믹서기'
@wonsolution
wonsolution / dafont_href scraping
Last active September 10, 2020 03:40
crawling/scraping
from urllib.request import urlopen
from urllib.parse import quote_plus
from bs4 import BeautifulSoup
from selenium import webdriver
import time
#dafont에서 폰트 url가져오기
n=1
while 1:
@wonsolution
wonsolution / Python macro color recognition
Created August 25, 2020 01:12
color recognition macro
-------------pyautogui이용(screenShot)
def rgbColor():
black=(0, 0, 0)
red=(237, 28, 36)
green=(34, 177, 76)
blue=(63, 72, 204)
white=(255, 255, 255)
#install 한 pyautogui import하기
import pyautogui, sys
#마우스 커서 이동할 위치 좌표 : pyautogui.moveTo(x축, y축, 이동시간)
pyautogui.moveTo(1206,189,1)
#마우스 클릭하기
#pyautogui.click()
import pyautogui, sys
from time import sleep
import pyperclip
pyautogui.click(100,500)
//------------------한 음절씩 입력하는 코드
pyperclip.copy("안")
pyautogui.hotkey("ctrl","v")