So recently i started to make my own farming bot, so i reached to point where i need to import subprocess module in python, i'm using PyLoader (Python 2.7) by maximus780 to inject the game with my script, so my question is: how can i import subprocess, so my script can use it ?
i tried to import it normally, but no use. when using dir(subprocess) display's this:
['IsEnabled', 'LogBox', 'RegisterExceptionString', 'SetEnabled', 'Trace', 'TraceError', 'Tracen', '__doc__', '__name__', '__package__']
so i tried to import it from outside of the game by using imp library which is built-in, so when i use
imp.load_source("subprocess", path_to_python 2.7_lib_folder_in_my_computer, open(path_to_file\subprocess.py))
but that didn't work, i got this
File "system.py", line 64, in NewOpen
1202 23:46:41348 :: TypeError
1202 23:46:41348 :: :
1202 23:46:41348 :: 'tuple' object does not support item assignment
so anyone can help me?
+ the thing i'm trying to achieve is:
mount / unmount the horse, but in the pserver that i'm trying to work in it, doesn't have ("/ride","user_horse_ride","/mount vnum_of_the_horse","/mount")
so the only way is to simulate Ctrl+h key press to mount \ unmount the horse