[英]How can i print something to the roblox console from python?
我正在嘗試從 python 向 roblox 控制台打印一些內容,我該怎么做? 這是我嘗試過的:
def Execute():
try:
mem = pymem.Pymem("RobloxPlayerBeta.exe")
except:
subprocess.Popen("RobloxPlayerBeta.exe")
mem = pymem.Pymem("RobloxPlayerBeta.exe")
mem.inject_python_interpreter()
code = "print 'hello'"
mem.inject_python_shellcode(code)
然而 roblox 崩潰了,我的控制台顯示“無法分配 memory”。
我想你會寫 print("hello"),如果我錯了,請糾正我。
編輯:您也可以使用 rconsoleprint, https://synapsexdocs.github.io/custom-lua-functions/console-functions/
Python 可能不是理想的,但如果你堅持你可以將你的.py 代碼轉換成.lua 代碼
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.