New Score :0
High Score :0
Run Best
NICE BUSINESS TYPE INDICATOR
3. ๊ธ์ ์ ์น๊ตฌ์๊ฒ ๋น๋ ธ๋๋ฐ ์ค๋์ด ๋์ ์ฃผ๊ธฐ๋ก ํ๋ .. ๊ทธ๋ฐ๋ฐ ์นด๋๊ฐ์ ๋ด์ผํ๋ ๋ ๋ ์ค๋์ธ๋ฐ... ์ด๊ฑธ ์ด์ฉ๋...
4. ์ฐ๋ฆฌ ํ์ฌ๋ ์ค์ํ ์์ฌ ๊ฒฐ์ ์ ํ ๋?
5. ์ด์ฌํ ์ผํ ๋๋ฅผ ์ํ ์ ๋ฌผ์ ์ฃผ๊ณ ์ถ๋ค. ์ด๋ค๊ฒ ์ข์๊น?
6. ์ํ์์ ํฌ์์ํ์ ์ถ์ฒ๋ฐ์๋ค. ์ด๋ค๊ฑธ ๊ฐ์ ํ์ง?
7. ํ์ฌ์์์ ๋๋?
8. ๊ฟ์์ ๊นจ์ด๋๋ 20๋ ์ ์ผ๋ก ๋์๊ฐ๋ค. ๋น์ ์ด ์ ์ผ ๋จผ์ ํ๋์ผ์?
9. ๋ด๊ฐ ์ธ์ฌ ๋ด๋น์๋ผ๋ฉด ์ ๊ท ์ ์ฌ์ ์ฑ์ฉ ์ ์ ์ผ ์ค์ํ๊ฒ ๋ณด๋๊ฒ์?
10. ํ์ฌ์ ์ ๋ง ์ซ์ดํ๋ ๋๋ฃ๊ฐ ์๋ค๋ฉด?
11. ๊ฐ๋ํ ์ง์ ๊ฐ์ฅ์ด ๋์๋ค.. ์๋ ์ ์์ผ ๋ ์ ๋ฌผ์?
12. ํ์ ํ์ฌ ์ถ๊ทผ ์คํ์ผ์?
13.ํ์ฌ ์ฒด์ก๋ํ ํ๋ ๋ ์ด๋ค. ์ค๋ ๋ญํ์ง?
14. ๋์ ์ ๋ฌด ์คํ์ผ์?
ppadb์ pynput์ ํ์ฉํ์ต๋๋ค.
๋๋ฐ์ด์ค ํค๊ฐ์ adb devices๋ฅผ ํตํด ์ป์ด๋ผ ์ ์์ต๋๋ค.
from ppadb.client import Client as AdbClient
from pynput.keyboard import Key, Listener
import time
# Default is "127.0.0.1" and 5037
client = AdbClient(host="127.0.0.1", port=5037)
device = client.device("ce0*******642702")
# device.shell("logcat", handler=dump_logcat)
isNotPressRight = True
isNotPressLeft = True
isNotPressUp = True
isNotPressDown = True
def excuteTouch(x, y):
device.shell("sendevent /dev/input/event0 3 57 0 && sendevent /dev/input/event0 3 47 0 && sendevent /dev/input/event0 3 53 {0} && sendevent /dev/input/event0 3 54 {1} && sendevent /dev/input/event0 1 330 1 && sendevent /dev/input/event0 0 0 0".format(x, y))
def releaseTouch():
device.shell("sendevent /dev/input/event0 3 57 4294967295 && sendevent /dev/input/event0 3 47 0 && sendevent /dev/input/event0 1 330 0 && sendevent /dev/input/event0 0 0 0")
def on_press(key):
# ํด๋ฆญ ์ขํ๋ ์ฃผ์์ ํด์ ํ๋ฉด ํ์ธ ๊ฐ๋ฅํฉ๋๋ค.
# print('{0} pressed'.format(key))
global isNotPressRight
global isNotPressLeft
global isNotPressUp
global isNotPressDown
if key == Key.right and isNotPressRight:
isNotPressRight = False
excuteTouch(3600, 700)
elif key == Key.left and isNotPressLeft:
isNotPressLeft = False
excuteTouch(3600, 3400)
elif key == Key.down and isNotPressDown:
isNotPressDown = False
excuteTouch(3700, 1100)
elif key == Key.up and isNotPressUp:
isNotPressUp = False
excuteTouch(2600, 900)
def on_release(key):
# print('{0} release'.format(key))
global isNotPressRight
global isNotPressLeft
global isNotPressUp
global isNotPressDown
if key == Key.right:
releaseTouch()
isNotPressRight = True
elif key == Key.left:
releaseTouch()
isNotPressLeft = True
elif key == Key.down:
releaseTouch()
isNotPressDown = True
elif key == Key.up:
releaseTouch()
isNotPressUp = True
if key == Key.esc:
# Stop listener
return False
# Collect events until released
with Listener(
on_press=on_press,
on_release=on_release
) as listener: listener.join()
scrcpy๋ก ํ๋ฉด์ ์ถ๋ ฅํ๋ฉฐ python๋ฅผ ํตํด ํค๋ณด๋ ์ ๋ ฅ์ ๋ฐ์ adb ๋ช ๋ น์ด๋ฅผ ์ ์กํ๋ ๊ฐ๋จํ ์ฝ๋์ ๋๋ค.
2020/06/21 - [Tool/scrcpy] - [scrcpy] scrcpy ๋?
[scrcpy] scrcpy ๋?
์๋๋ก์ด๋ ๊ธฐ๊ธฐ๋ฅผ USB๋ over TCP/IP๋ฅผ ํตํด ์ฐ๊ฒฐํ๊ณ ์ปดํจํฐ์ ํ๋ฉด์ ์ถ๋ ฅํ ์ ์์ต๋๋ค. ๋ฃจํธ ๊ถํ์ด ์์ด๋ ๋ฉ๋๋ค. GNU/Linux, Windows and macOS์์ ๋์ํฉ๋๋ค. It focuses on: ๊ฐ๋ฒผ์ (native, d..
codeparadise.tistory.com