mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-29 08:20:02 -05:00
feat: Added support for writing scripts in Python
This commit is contained in:
9
plugins/script_loader/support/python/imhex.py
Normal file
9
plugins/script_loader/support/python/imhex.py
Normal file
@@ -0,0 +1,9 @@
|
||||
import ctypes
|
||||
|
||||
script_loader = ctypes.CDLL("Script Loader", ctypes.DEFAULT_MODE, int(__script_loader__))
|
||||
|
||||
|
||||
class UI:
|
||||
@staticmethod
|
||||
def show_message_box(message: str):
|
||||
script_loader.showMessageBoxV1(ctypes.create_string_buffer(message.encode("utf-8")))
|
||||
Reference in New Issue
Block a user