def string_from_bytes(self, target, obj, strng): self.smart.exp_stringFromBytes.argtypes = [ ct.POINTER(Sh.SMARTClient), ct.c_void_p, ct.c_char_p ] self.smart.exp_stringFromBytes.restype = ct.c_int return self.smart.exp_stringFromBytes(target, obj, Sh.string_to_char_p(strng))
def get_field_byte(self, target, obj, path): self.smart.exp_getFieldByte.argtypes = [ ct.POINTER(Sh.SMARTClient), ct.c_void_p, ct.c_char_p ] self.smart.exp_getFieldByte.restype = ct.c_int return self.smart.exp_getFieldByte(target, obj, Sh.string_to_char_p(path))
def get_field_float(self, target, obj, path): self.smart.exp_getFieldFloat.argtypes = [ ct.POINTER(Sh.SMARTClient), ct.c_void_p, ct.c_char_p ] self.smart.exp_getFieldFloat.restype = ct.c_double return self.smart.exp_getFieldFloat(target, obj, Sh.string_to_char_p(path))
def is_path_valid(self, target, obj, path): self.smart.exp_isPathValid.argtypes = [ ct.POINTER(Sh.SMARTClient), ct.c_void_p, ct.c_char_p ] self.smart.exp_isPathValid.restype = ct.c_bool return self.smart.exp_isPathValid(target, obj, Sh.string_to_char_p(path))
def send_keys(self, target, text, keywait, keymodwait): self.smart.exp_sendKeys.argtypes = [ ct.POINTER(Sh.SMARTClient), ct.c_char_p, ct.c_int, ct.c_int ] self.smart.exp_sendKeys.restype = None self.smart.exp_sendKeys(target, Sh.string_to_char_p(text), keywait, keymodwait)
def get_field_array_char(self, target, obj, path, index): self.smart.exp_getFieldArrayChar.argtypes = [ ct.POINTER(Sh.SMARTClient), ct.c_void_p, ct.c_void_p, ct.c_int ] self.smart.exp_getFieldArrayChar.restype = ct.c_int return self.smart.exp_getFieldArrayChar(target, obj, Sh.string_to_char_p(path), index)
def get_field_array_size(self, target, obj, path, dimension): self.smart.exp_getFieldArraySize.argtypes = [ ct.POINTER(Sh.SMARTClient), ct.c_void_p, ct.c_void_p, ct.c_int ] self.smart.exp_getFieldArraySize.restype = ct.c_int return self.smart.exp_getFieldArraySize(target, obj, Sh.string_to_char_p(path), dimension)
def get_field_array_2d_short(self, target, obj, path, x, y): self.smart.exp_getFieldArray2DShort.argtypes = [ ct.POINTER(Sh.SMARTClient), ct.c_void_p, ct.c_void_p, ct.c_int, ct.c_int ] self.smart.exp_getFieldArray2DShort.restype = ct.c_int return self.smart.exp_getFieldArray2DShort(target, obj, Sh.string_to_char_p(path), x, y)
def get_field_array_3d_long_l(self, target, obj, path, x, y, z): self.smart.exp_getFieldArray3DLongL.argtypes = [ ct.POINTER(Sh.SMARTClient), ct.c_void_p, ct.c_void_p, ct.c_int, ct.c_int, ct.c_int ] self.smart.exp_getFieldArray3DLongL.restype = ct.c_int return self.smart.exp_getFieldArray3DLongL(target, obj, Sh.string_to_char_p(path), x, y, z)
def spawn_client(self, java_exec, remote_path, root, params, width, height, initseq, useragent, javaargs, plugins): self.smart.exp_spawnClient.argtypes = [ ct.c_char_p, ct.c_char_p, ct.c_char_p, ct.c_char_p, ct.c_int, ct.c_int, ct.c_char_p, ct.c_char_p, ct.c_char_p, ct.c_char_p ] self.smart.exp_spawnClient.restype = ct.POINTER(Sh.SMARTClient) return self.smart.exp_spawnClient(Sh.string_to_char_p(java_exec), Sh.string_to_char_p(remote_path), Sh.string_to_char_p(root), Sh.string_to_char_p(params), width, height, Sh.string_to_char_p(initseq), Sh.string_to_char_p(useragent), Sh.string_to_char_p(javaargs), Sh.string_to_char_p(plugins))
def string_from_bytes(reference, strng): return Smart.smart_instance.smart.exp_stringFromBytes( Smart.smart_instance.target, reference, Sh.string_to_char_p(strng))
def get_array_2d_bool(reference, hook, x, y): return Smart.smart_instance.smart.exp_getFieldArray2DBool( Smart.smart_instance.target, reference, Sh.string_to_char_p(hook[0]), x, y)