뭔가 옛날에 C언어 배웠어서
한번 도전해보고싶은데, 처음부터 과한건 못하고 기본적인걸 해보려고
if other_users_count > 0 then
_ChatMessageLogic:Add(_ChatMessageType.Yellow, "유저 감지: " .. other_users_count .. "명")
이 조건에서 유저 0명 이상이면 컨트롤+f4를 눌르라는 함수를 넣어보려는데
import keyboard
def check_condition():
# 여기에 조건을 확인하는 로직을 추가하세요
# 예를 들어, 조건이 True이면 'd' 키를 누르게 하도록 만듭니다.
return True # 여기에 실제 조건을 적용해주세요
def press_d_key():
keyboard.press_and_release('d')
def main():
if check_condition():
press_d_key()
if name == "main":
main()
gpt가 이렇게 하라네 ?
if other_users_count > 0 then
이걸 조건으로 넣고 true면 컨트롤+f4넣으면 되나 이런식으로 배우는게 맞지 형들 ?
댓글2
위에건 루아고 밑에건 파이썬아님?
아하 같은 c언어가 아니구나 !?
검하여요