Download the ctypes.rar (compatible python 2.2) on the "Attach files" in this topic and extract it into lib folder of the client.
Now you could use all the function of ctypes.
EXAMPLE TO LOAD A LIB (EX. AntiHack):
Quote:
from ctypes import windll;
windll.kernel32.LoadLibraryA("antihack_into_client.dll");
if windll.kernel32.GetModuleHandleA("antihack_into_client.dll") == 0: app.Abort();
|
OTHER EXAMPLE PADMACK BONUS SWITCHER INGAME:
Code:
onPressKeyDict[app.DIK_F10] = lambda : self.__CtypesPadmack()
def __CtypesPadmack(self):
from ctypes import windll;
if windll.kernel32.GetModuleHandleA("switchbotv3.dll") == 0:
windll.kernel32.LoadLibraryA("switchbotv3.dll") #or the name of the switchbot's dll
if windll.kernel32.GetModuleHandleA("switchbotv3.dll") == 0:
chat.AppendChat(chat.CHAT_TYPE_INFO, "Switchbot failed!")
else:
chat.AppendChat(chat.CHAT_TYPE_INFO, "Switchbot already started!")
MessageBoxA in Python:
Code:
from ctypes import windll;
windll.user32.MessageBoxA(None, "Message", "Title", 0);