Spy_agent Posted October 9, 2019 Share Posted October 9, 2019 Суть в чем: создать стороннюю программу или мод или скрипт, что нибудь для быстрого реагирования на нарушение правил. Идея такая: на клавишу назначить ввод команд в консоль, по принципу трейнеров, но не инжектить т.к. это нарушение правил. Думал на питоне, но не силен в программировании, помогайте... by Google Translate The bottom line is: create a third-party program or mod or script, something to quickly respond to a violation of the rules. The idea is this: assign a command input to the console on the key, according to the principle of trainers, but do not inject because this is a violation of the rules. I thought in python, but not good at programming, help ... import keyboard while True: try: if keyboard.is_pressed('delete') #must be opened console Y print('report') print ('/time') print ('/pinfo',id) else: pass except: break or import keyboard from pynput.keyboard import Key, Controller from pynput.keyboard import Key, Listener def on_press(delete): keyboard = Controller() keyboard.press('y') keyboard.release('y') print('report') print ('/time') print ('/pinfo', id) for visual text of the program и для русскоязычных https://ru.stackoverflow.com/questions/1032750/как-создать-микропрограмму-ввода-данных Link to comment Share on other sites More sharing options...
Bastet. Posted November 6, 2019 Share Posted November 6, 2019 Hello @Spy_agent, Because this topic has been inactive for over 14 days, it will now be locked and archived, to keep our forum organized. Kind regards, Chris [PL] TruckersMP Community Moderator //Locked & Moved to archive Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.