怎样用python调用dll?

tg_zqh 发布于 2016/05/19 17:12
阅读 890
收藏 0

有一个dll文件TCaptureX.dll,已经用regsvr32注册。

用makepy.py生成python文件,内容如下:

# -*- coding: mbcs -*-
# Created by makepy.py version 0.5.01
# By python version 2.7.11 (v2.7.11:6d1b6a68f775, Dec  5 2015, 20:32:19) [MSC v.1500 32 bit (Intel)]
# From type library 'TCaptureX.dll'
# On Thu May 19 15:39:42 2016
'TCaptureX 1.0 Type Library'
makepy_version = '0.5.01'
python_version = 0x2070bf0

import win32com.client.CLSIDToClass, pythoncom, pywintypes
import win32com.client.util
from pywintypes import IID
from win32com.client import Dispatch

# The following 3 lines may need tweaking for the particular server
# Candidates are pythoncom.Missing, .Empty and .ArgNotFound
defaultNamedOptArg=pythoncom.Empty
defaultNamedNotOptArg=pythoncom.Empty
defaultUnnamedArg=pythoncom.Empty

CLSID = IID('{92657C70-D31B-4930-9014-379E3F6FB91A}')
MajorVersion = 1
MinorVersion = 1
LibraryFlags = 8
LCID = 0x0

class constants:
	tsMouseLeft                   =1          # from enum TS_MOUSE
	tsMouseLeftRight              =3          # from enum TS_MOUSE
	tsMouseMiddle                 =4          # from enum TS_MOUSE
	tsMouseNone                   =0          # from enum TS_MOUSE
	tsMouseRight                  =2          # from enum TS_MOUSE
	tsSelectionColorPick          =256        # from enum TS_SELECTION
	tsSelectionEllipse            =128        # from enum TS_SELECTION
	tsSelectionFixedRegion        =512        # from enum TS_SELECTION
	tsSelectionFreeFrom           =4          # from enum TS_SELECTION
	tsSelectionNone               =0          # from enum TS_SELECTION
	tsSelectionObject             =16         # from enum TS_SELECTION
	tsSelectionPoint              =1          # from enum TS_SELECTION
	tsSelectionPointFreeFrom      =5          # from enum TS_SELECTION
	tsSelectionPointRectangle     =3          # from enum TS_SELECTION
	tsSelectionRectangle          =2          # from enum TS_SELECTION
	tsSelectionRoundRectangle     =64         # from enum TS_SELECTION
	tsSelectionScrollingWindow    =32         # from enum TS_SELECTION
	tsSelectionWindow             =8          # from enum TS_SELECTION
	tsSelFlagDefault              =12         # from enum TS_SELECTION_OPTIONS
	tsSelFlagDefaultGraphic       =19         # from enum TS_SELECTION_OPTIONS
	tsSelFlagDefaultText          =12         # from enum TS_SELECTION_OPTIONS
	tsSelFlagHighlight            =4          # from enum TS_SELECTION_OPTIONS
	tsSelFlagLockScreen           =2          # from enum TS_SELECTION_OPTIONS
	tsSelFlagNone                 =0          # from enum TS_SELECTION_OPTIONS
	tsSelFlagShowPreview          =1          # from enum TS_SELECTION_OPTIONS
	tsSelSchemeBlue               =8          # from enum TS_SELECTION_OPTIONS
	tsSelSchemeRed                =16         # from enum TS_SELECTION_OPTIONS
	tsSelResultCancelled          =1          # from enum TS_SELECTION_RESULT
	tsSelResultError              =2          # from enum TS_SELECTION_RESULT
	tsSelResultSuccess            =0          # from enum TS_SELECTION_RESULT

from win32com.client import DispatchBaseClass
class IGetAAText(DispatchBaseClass):
	'IGetAAText Interface'
	CLSID = IID('{4652E117-CDF0-4B10-B3C9-4FE74FD0FA5B}')
	coclass_clsid = IID('{924699E8-66EF-4EB9-AB6E-3CA9660B31EC}')

	def GetFullTextAA(self, hwnd=defaultNamedNotOptArg):
		'method GetFullTextAA'
		# Result is a Unicode object
		return self._oleobj_.InvokeTypes(1, LCID, 1, (8, 0), ((3, 1),),hwnd
			)

	_prop_map_get_ = {
	}
	_prop_map_put_ = {
	}
	def __iter__(self):
		"Return a Python iterator for this object"
		try:
			ob = self._oleobj_.InvokeTypes(-4,LCID,3,(13, 10),())
		except pythoncom.error:
			raise TypeError("This object does not support enumeration")
		return win32com.client.util.Iterator(ob, None)

class IGetAAText2(DispatchBaseClass):
	'IGetAAText2 Interface'
	CLSID = IID('{71EA4E83-A80C-435B-8B77-76D2E45D02A6}')
	coclass_clsid = IID('{924699E8-66EF-4EB9-AB6E-3CA9660B31EC}')

	def GetFullTextAA(self, hwnd=defaultNamedNotOptArg):
		'method GetFullTextAA'
		# Result is a Unicode object
		return self._oleobj_.InvokeTypes(1, LCID, 1, (8, 0), ((3, 1),),hwnd
			)

	_prop_map_get_ = {
		"ExtractHighlightInfo": (3, 2, (11, 0), (), "ExtractHighlightInfo", None),
		# Method 'HighlightInfo' returns object of type 'ITHighlightInfo'
		"HighlightInfo": (2, 2, (9, 0), (), "HighlightInfo", '{FF7B48D0-4615-49FA-970B-56A95EDA143A}'),
	}
	_prop_map_put_ = {
		"ExtractHighlightInfo": ((3, LCID, 4, 0),()),
		"HighlightInfo": ((2, LCID, 4, 0),()),
	}
	def __iter__(self):
		"Return a Python iterator for this object"
		try:
			ob = self._oleobj_.InvokeTypes(-4,LCID,3,(13, 10),())
		except pythoncom.error:
			raise TypeError("This object does not support enumeration")
		return win32com.client.util.Iterator(ob, None)

class ITHighlightInfo(DispatchBaseClass):
	'ITHighlightInfo Interface'
	CLSID = IID('{FF7B48D0-4615-49FA-970B-56A95EDA143A}')
	coclass_clsid = IID('{B13501DF-12B3-4A6A-9A5B-8FA1EBCF8699}')

	def Add(self, text=defaultNamedNotOptArg, left=defaultNamedNotOptArg, top=defaultNamedNotOptArg, right=defaultNamedNotOptArg
			, bottom=defaultNamedNotOptArg):
		'method Add'
		return self._oleobj_.InvokeTypes(3, LCID, 1, (24, 0), ((8, 1), (3, 1), (3, 1), (3, 1), (3, 1)),text
			, left, top, right, bottom)

	def Get(self, index=defaultNamedNotOptArg, text=pythoncom.Missing, left=pythoncom.Missing, top=pythoncom.Missing
			, right=pythoncom.Missing, bottom=pythoncom.Missing):
		'method Get'
		return self._ApplyTypes_(5, 1, (24, 0), ((3, 1), (16392, 2), (16387, 2), (16387, 2), (16387, 2), (16387, 2)), u'Get', None,index
			, text, left, top, right, bottom
			)

	def PerformHighlight(self, delay=defaultNamedNotOptArg):
		'method PerformHighlight'
		return self._oleobj_.InvokeTypes(6, LCID, 1, (24, 0), ((3, 1),),delay
			)

	def PerformHighlightFull(self, delay=defaultNamedNotOptArg):
		'method PerformHighlightFull'
		return self._oleobj_.InvokeTypes(7, LCID, 1, (24, 0), ((3, 1),),delay
			)

	def Remove(self, index=defaultNamedNotOptArg):
		'method Remove'
		return self._oleobj_.InvokeTypes(4, LCID, 1, (24, 0), ((3, 1),),index
			)

	_prop_map_get_ = {
		"Count": (2, 2, (3, 0), (), "Count", None),
		"hwnd": (1, 2, (3, 0), (), "hwnd", None),
	}
	_prop_map_put_ = {
		"hwnd": ((1, LCID, 4, 0),()),
	}
	def __iter__(self):
		"Return a Python iterator for this object"
		try:
			ob = self._oleobj_.InvokeTypes(-4,LCID,3,(13, 10),())
		except pythoncom.error:
			raise TypeError("This object does not support enumeration")
		return win32com.client.util.Iterator(ob, None)
	#This class has Count() property - allow len(ob) to provide this
	def __len__(self):
		return self._ApplyTypes_(*(2, 2, (3, 0), (), "Count", None))
	#This class has a __len__ - this is needed so 'if object:' always returns TRUE.
	def __nonzero__(self):
		return True

class ITSelection(DispatchBaseClass):
	'ITSelection Interface'
	CLSID = IID('{24455CC7-C5E2-4D5B-A37C-47C76CFE1905}')
	coclass_clsid = IID('{BF616448-1D65-4559-9293-0F6B607BA892}')

	def Start(self, selection_type=defaultNamedNotOptArg, options=defaultNamedNotOptArg, selection_result=pythoncom.Missing, result=pythoncom.Missing):
		'method Start'
		return self._ApplyTypes_(1, 1, (24, 0), ((3, 1), (3, 1), (16393, 2), (16387, 2)), u'Start', None,selection_type
			, options, selection_result, result)

	_prop_map_get_ = {
		"FixedRegionHeight": (4, 2, (3, 0), (), "FixedRegionHeight", None),
		"FixedRegionWidth": (3, 2, (3, 0), (), "FixedRegionWidth", None),
	}
	_prop_map_put_ = {
		"FixedRegionHeight": ((4, LCID, 4, 0),()),
		"FixedRegionWidth": ((3, LCID, 4, 0),()),
	}
	def __iter__(self):
		"Return a Python iterator for this object"
		try:
			ob = self._oleobj_.InvokeTypes(-4,LCID,3,(13, 10),())
		except pythoncom.error:
			raise TypeError("This object does not support enumeration")
		return win32com.client.util.Iterator(ob, None)

class ITSelectionInfo(DispatchBaseClass):
	'ITSelectionInfo Interface'
	CLSID = IID('{12E679EC-86BF-4AA2-AA94-1B8D16E30EAF}')
	coclass_clsid = IID('{AD58B105-E00C-4F3F-81A5-54F741853E5C}')

	_prop_map_get_ = {
		# Method 'Image' returns object of type 'Picture'
		"Image": (4, 2, (9, 0), (), "Image", '{7BF80981-BF32-101A-8BBB-00AA00300CAB}'),
		"Points": (3, 2, (12, 0), (), "Points", None),
		"Type": (1, 2, (3, 0), (), "Type", None),
		"WindowHandle": (2, 2, (3, 0), (), "WindowHandle", None),
	}
	_prop_map_put_ = {
		"Image": ((4, LCID, 4, 0),()),
		"Points": ((3, LCID, 4, 0),()),
		"Type": ((1, LCID, 4, 0),()),
		"WindowHandle": ((2, LCID, 4, 0),()),
	}
	def __iter__(self):
		"Return a Python iterator for this object"
		try:
			ob = self._oleobj_.InvokeTypes(-4,LCID,3,(13, 10),())
		except pythoncom.error:
			raise TypeError("This object does not support enumeration")
		return win32com.client.util.Iterator(ob, None)

class ITextCaptureX(DispatchBaseClass):
	'ITextCaptureX Interface'
	CLSID = IID('{EEA5ABD9-2C89-4CDD-9C07-C3DDDF162A37}')
	coclass_clsid = IID('{13FE2FA1-EE8B-45B9-BBB4-08E5F2F43AC3}')

	def CaptureActiveWindow(self):
		'method CaptureActiveWindow'
		# Result is a Unicode object
		return self._oleobj_.InvokeTypes(4, LCID, 1, (8, 0), (),)

	def CaptureInteractive(self, hwnd=pythoncom.Missing, left=pythoncom.Missing, top=pythoncom.Missing, width=pythoncom.Missing
			, height=pythoncom.Missing):
		'method CaptureInteractive'
		return self._ApplyTypes_(3, 1, (3, 0), ((16387, 2), (16387, 2), (16387, 2), (16387, 2), (16387, 2)), u'CaptureInteractive', None,hwnd
			, left, top, width, height)

	def CaptureInteractiveFreeHand(self, hwnd=pythoncom.Missing, arPoints=pythoncom.Missing):
		'method CaptureInteractiveFreeHand'
		return self._ApplyTypes_(6, 1, (3, 0), ((16387, 2), (16396, 2)), u'CaptureInteractiveFreeHand', None,hwnd
			, arPoints)

	def GetActiveWindowHwnd(self):
		'method GetActiveWindowHwnd'
		return self._oleobj_.InvokeTypes(5, LCID, 1, (3, 0), (),)

	def GetTextFromPoint(self, hwnd=defaultNamedNotOptArg, x=defaultNamedNotOptArg, y=defaultNamedNotOptArg):
		'method GetTextFromPoint'
		# Result is a Unicode object
		return self._oleobj_.InvokeTypes(1, LCID, 1, (8, 0), ((3, 1), (3, 1), (3, 1)),hwnd
			, x, y)

	def GetTextFromRect(self, hwnd=defaultNamedNotOptArg, left=defaultNamedNotOptArg, top=defaultNamedNotOptArg, width=defaultNamedNotOptArg
			, height=defaultNamedNotOptArg):
		'method GetTextFromRect'
		# Result is a Unicode object
		return self._oleobj_.InvokeTypes(2, LCID, 1, (8, 0), ((3, 1), (3, 1), (3, 1), (3, 1), (3, 1)),hwnd
			, left, top, width, height)

	_prop_map_get_ = {
	}
	_prop_map_put_ = {
	}
	def __iter__(self):
		"Return a Python iterator for this object"
		try:
			ob = self._oleobj_.InvokeTypes(-4,LCID,3,(13, 10),())
		except pythoncom.error:
			raise TypeError("This object does not support enumeration")
		return win32com.client.util.Iterator(ob, None)

class ITextCaptureX2(DispatchBaseClass):
	'ITextCaptureX2 Interface'
	CLSID = IID('{E2500574-7215-4028-A567-3A7D77A4B2B1}')
	coclass_clsid = IID('{13FE2FA1-EE8B-45B9-BBB4-08E5F2F43AC3}')

	def CaptureActiveWindow(self):
		'method CaptureActiveWindow'
		# Result is a Unicode object
		return self._oleobj_.InvokeTypes(4, LCID, 1, (8, 0), (),)

	def CaptureInteractive(self, hwnd=pythoncom.Missing, left=pythoncom.Missing, top=pythoncom.Missing, width=pythoncom.Missing
			, height=pythoncom.Missing):
		'method CaptureInteractive'
		return self._ApplyTypes_(3, 1, (3, 0), ((16387, 2), (16387, 2), (16387, 2), (16387, 2), (16387, 2)), u'CaptureInteractive', None,hwnd
			, left, top, width, height)

	def CaptureInteractiveFreeHand(self, hwnd=pythoncom.Missing, arPoints=pythoncom.Missing):
		'method CaptureInteractiveFreeHand'
		return self._ApplyTypes_(6, 1, (3, 0), ((16387, 2), (16396, 2)), u'CaptureInteractiveFreeHand', None,hwnd
			, arPoints)

	def GetActiveWindowHwnd(self):
		'method GetActiveWindowHwnd'
		return self._oleobj_.InvokeTypes(5, LCID, 1, (3, 0), (),)

	def GetTextFromPoint(self, hwnd=defaultNamedNotOptArg, x=defaultNamedNotOptArg, y=defaultNamedNotOptArg):
		'method GetTextFromPoint'
		# Result is a Unicode object
		return self._oleobj_.InvokeTypes(1, LCID, 1, (8, 0), ((3, 1), (3, 1), (3, 1)),hwnd
			, x, y)

	def GetTextFromPoint2(self, hwnd=defaultNamedNotOptArg, x=defaultNamedNotOptArg, y=defaultNamedNotOptArg, separators=defaultNamedNotOptArg):
		'method GetTextFromPoint2'
		# Result is a Unicode object
		return self._oleobj_.InvokeTypes(7, LCID, 1, (8, 0), ((3, 1), (3, 1), (3, 1), (8, 1)),hwnd
			, x, y, separators)

	def GetTextFromRect(self, hwnd=defaultNamedNotOptArg, left=defaultNamedNotOptArg, top=defaultNamedNotOptArg, width=defaultNamedNotOptArg
			, height=defaultNamedNotOptArg):
		'method GetTextFromRect'
		# Result is a Unicode object
		return self._oleobj_.InvokeTypes(2, LCID, 1, (8, 0), ((3, 1), (3, 1), (3, 1), (3, 1), (3, 1)),hwnd
			, left, top, width, height)

	_prop_map_get_ = {
	}
	_prop_map_put_ = {
	}
	def __iter__(self):
		"Return a Python iterator for this object"
		try:
			ob = self._oleobj_.InvokeTypes(-4,LCID,3,(13, 10),())
		except pythoncom.error:
			raise TypeError("This object does not support enumeration")
		return win32com.client.util.Iterator(ob, None)

class ITextCaptureX3(DispatchBaseClass):
	'ITextCaptureX3 Interface'
	CLSID = IID('{C9D57541-BAD7-46B4-82D8-2041546133BF}')
	coclass_clsid = IID('{13FE2FA1-EE8B-45B9-BBB4-08E5F2F43AC3}')

	def CaptureActiveWindow(self):
		'method CaptureActiveWindow'
		# Result is a Unicode object
		return self._oleobj_.InvokeTypes(4, LCID, 1, (8, 0), (),)

	def CaptureActiveWindow2(self, pid=defaultNamedNotOptArg):
		'method CaptureActiveWindow2'
		# Result is a Unicode object
		return self._oleobj_.InvokeTypes(8, LCID, 1, (8, 0), ((3, 1),),pid
			)

	def CaptureInteractive(self, hwnd=pythoncom.Missing, left=pythoncom.Missing, top=pythoncom.Missing, width=pythoncom.Missing
			, height=pythoncom.Missing):
		'method CaptureInteractive'
		return self._ApplyTypes_(3, 1, (3, 0), ((16387, 2), (16387, 2), (16387, 2), (16387, 2), (16387, 2)), u'CaptureInteractive', None,hwnd
			, left, top, width, height)

	def CaptureInteractiveFreeHand(self, hwnd=pythoncom.Missing, arPoints=pythoncom.Missing):
		'method CaptureInteractiveFreeHand'
		return self._ApplyTypes_(6, 1, (3, 0), ((16387, 2), (16396, 2)), u'CaptureInteractiveFreeHand', None,hwnd
			, arPoints)

	def GetActiveWindowHwnd(self):
		'method GetActiveWindowHwnd'
		return self._oleobj_.InvokeTypes(5, LCID, 1, (3, 0), (),)

	def GetActiveWindowHwnd2(self, pid=defaultNamedNotOptArg):
		'method GetActiveWindowHwnd2'
		return self._oleobj_.InvokeTypes(9, LCID, 1, (3, 0), ((3, 1),),pid
			)

	def GetTextFromPoint(self, hwnd=defaultNamedNotOptArg, x=defaultNamedNotOptArg, y=defaultNamedNotOptArg):
		'method GetTextFromPoint'
		# Result is a Unicode object
		return self._oleobj_.InvokeTypes(1, LCID, 1, (8, 0), ((3, 1), (3, 1), (3, 1)),hwnd
			, x, y)

	def GetTextFromPoint2(self, hwnd=defaultNamedNotOptArg, x=defaultNamedNotOptArg, y=defaultNamedNotOptArg, separators=defaultNamedNotOptArg):
		'method GetTextFromPoint2'
		# Result is a Unicode object
		return self._oleobj_.InvokeTypes(7, LCID, 1, (8, 0), ((3, 1), (3, 1), (3, 1), (8, 1)),hwnd
			, x, y, separators)

	def GetTextFromRect(self, hwnd=defaultNamedNotOptArg, left=defaultNamedNotOptArg, top=defaultNamedNotOptArg, width=defaultNamedNotOptArg
			, height=defaultNamedNotOptArg):
		'method GetTextFromRect'
		# Result is a Unicode object
		return self._oleobj_.InvokeTypes(2, LCID, 1, (8, 0), ((3, 1), (3, 1), (3, 1), (3, 1), (3, 1)),hwnd
			, left, top, width, height)

	_prop_map_get_ = {
	}
	_prop_map_put_ = {
	}
	def __iter__(self):
		"Return a Python iterator for this object"
		try:
			ob = self._oleobj_.InvokeTypes(-4,LCID,3,(13, 10),())
		except pythoncom.error:
			raise TypeError("This object does not support enumeration")
		return win32com.client.util.Iterator(ob, None)

class ITextCaptureX4(DispatchBaseClass):
	'ITextCaptureX4 Interface'
	CLSID = IID('{ACFD5F3E-946F-4A6A-8B76-450F94120D4C}')
	coclass_clsid = IID('{13FE2FA1-EE8B-45B9-BBB4-08E5F2F43AC3}')

	def CaptureActiveWindow(self):
		'method CaptureActiveWindow'
		# Result is a Unicode object
		return self._oleobj_.InvokeTypes(4, LCID, 1, (8, 0), (),)

	def CaptureActiveWindow2(self, pid=defaultNamedNotOptArg):
		'method CaptureActiveWindow2'
		# Result is a Unicode object
		return self._oleobj_.InvokeTypes(8, LCID, 1, (8, 0), ((3, 1),),pid
			)

	def CaptureInteractive(self, hwnd=pythoncom.Missing, left=pythoncom.Missing, top=pythoncom.Missing, width=pythoncom.Missing
			, height=pythoncom.Missing):
		'method CaptureInteractive'
		return self._ApplyTypes_(3, 1, (3, 0), ((16387, 2), (16387, 2), (16387, 2), (16387, 2), (16387, 2)), u'CaptureInteractive', None,hwnd
			, left, top, width, height)

	def CaptureInteractiveFreeHand(self, hwnd=pythoncom.Missing, arPoints=pythoncom.Missing):
		'method CaptureInteractiveFreeHand'
		return self._ApplyTypes_(6, 1, (3, 0), ((16387, 2), (16396, 2)), u'CaptureInteractiveFreeHand', None,hwnd
			, arPoints)

	def GetActiveWindowHwnd(self):
		'method GetActiveWindowHwnd'
		return self._oleobj_.InvokeTypes(5, LCID, 1, (3, 0), (),)

	def GetActiveWindowHwnd2(self, pid=defaultNamedNotOptArg):
		'method GetActiveWindowHwnd2'
		return self._oleobj_.InvokeTypes(9, LCID, 1, (3, 0), ((3, 1),),pid
			)

	def GetCaret(self, hwnd=defaultNamedNotOptArg, x=pythoncom.Missing, y=pythoncom.Missing):
		'method GetCaret'
		return self._ApplyTypes_(10, 1, (24, 0), ((3, 1), (16387, 2), (16387, 2)), u'GetCaret', None,hwnd
			, x, y)

	def GetCaret2(self, hwnd=pythoncom.Missing, x=pythoncom.Missing, y=pythoncom.Missing):
		'method GetCaret'
		return self._ApplyTypes_(11, 1, (24, 0), ((16387, 2), (16387, 2), (16387, 2)), u'GetCaret2', None,hwnd
			, x, y)

	def GetTextFromPoint(self, hwnd=defaultNamedNotOptArg, x=defaultNamedNotOptArg, y=defaultNamedNotOptArg):
		'method GetTextFromPoint'
		# Result is a Unicode object
		return self._oleobj_.InvokeTypes(1, LCID, 1, (8, 0), ((3, 1), (3, 1), (3, 1)),hwnd
			, x, y)

	def GetTextFromPoint2(self, hwnd=defaultNamedNotOptArg, x=defaultNamedNotOptArg, y=defaultNamedNotOptArg, separators=defaultNamedNotOptArg):
		'method GetTextFromPoint2'
		# Result is a Unicode object
		return self._oleobj_.InvokeTypes(7, LCID, 1, (8, 0), ((3, 1), (3, 1), (3, 1), (8, 1)),hwnd
			, x, y, separators)

	def GetTextFromRect(self, hwnd=defaultNamedNotOptArg, left=defaultNamedNotOptArg, top=defaultNamedNotOptArg, width=defaultNamedNotOptArg
			, height=defaultNamedNotOptArg):
		'method GetTextFromRect'
		# Result is a Unicode object
		return self._oleobj_.InvokeTypes(2, LCID, 1, (8, 0), ((3, 1), (3, 1), (3, 1), (3, 1), (3, 1)),hwnd
			, left, top, width, height)

	_prop_map_get_ = {
	}
	_prop_map_put_ = {
	}
	def __iter__(self):
		"Return a Python iterator for this object"
		try:
			ob = self._oleobj_.InvokeTypes(-4,LCID,3,(13, 10),())
		except pythoncom.error:
			raise TypeError("This object does not support enumeration")
		return win32com.client.util.Iterator(ob, None)

class ITextCaptureX5(DispatchBaseClass):
	'ITextCaptureX5 Interface'
	CLSID = IID('{D460C8E0-B0EA-4F9B-8E2E-5042A191FA79}')
	coclass_clsid = IID('{13FE2FA1-EE8B-45B9-BBB4-08E5F2F43AC3}')

	def CaptureActiveWindow(self):
		'method CaptureActiveWindow'
		# Result is a Unicode object
		return self._oleobj_.InvokeTypes(4, LCID, 1, (8, 0), (),)

	def CaptureActiveWindow2(self, pid=defaultNamedNotOptArg):
		'method CaptureActiveWindow2'
		# Result is a Unicode object
		return self._oleobj_.InvokeTypes(8, LCID, 1, (8, 0), ((3, 1),),pid
			)

	def CaptureActiveWindow2WithFont(self, pid=defaultNamedNotOptArg, font=pythoncom.Missing):
		'method CaptureActiveWindow2WithFont'
		return self._ApplyTypes_(16, 1, (8, 0), ((3, 1), (16393, 2)), u'CaptureActiveWindow2WithFont', None,pid
			, font)

	def CaptureActiveWindowWithFont(self, font=pythoncom.Missing):
		'method CaptureActiveWindowWithFont'
		return self._ApplyTypes_(14, 1, (8, 0), ((16393, 2),), u'CaptureActiveWindowWithFont', None,font
			)

	def CaptureInteractive(self, hwnd=pythoncom.Missing, left=pythoncom.Missing, top=pythoncom.Missing, width=pythoncom.Missing
			, height=pythoncom.Missing):
		'method CaptureInteractive'
		return self._ApplyTypes_(3, 1, (3, 0), ((16387, 2), (16387, 2), (16387, 2), (16387, 2), (16387, 2)), u'CaptureInteractive', None,hwnd
			, left, top, width, height)

	def CaptureInteractiveFreeHand(self, hwnd=pythoncom.Missing, arPoints=pythoncom.Missing):
		'method CaptureInteractiveFreeHand'
		return self._ApplyTypes_(6, 1, (3, 0), ((16387, 2), (16396, 2)), u'CaptureInteractiveFreeHand', None,hwnd
			, arPoints)

	def CaptureWindow(self, hwnd=defaultNamedNotOptArg):
		'method CaptureWindow'
		# Result is a Unicode object
		return self._oleobj_.InvokeTypes(17, LCID, 1, (8, 0), ((3, 1),),hwnd
			)

	def CaptureWindowWithFont(self, hwnd=defaultNamedNotOptArg, font=pythoncom.Missing):
		'method CaptureWindowWithFont'
		return self._ApplyTypes_(18, 1, (8, 0), ((3, 1), (16393, 2)), u'CaptureWindowWithFont', None,hwnd
			, font)

	def GetActiveWindowHwnd(self):
		'method GetActiveWindowHwnd'
		return self._oleobj_.InvokeTypes(5, LCID, 1, (3, 0), (),)

	def GetActiveWindowHwnd2(self, pid=defaultNamedNotOptArg):
		'method GetActiveWindowHwnd2'
		return self._oleobj_.InvokeTypes(9, LCID, 1, (3, 0), ((3, 1),),pid
			)

	def GetCaret(self, hwnd=defaultNamedNotOptArg, x=pythoncom.Missing, y=pythoncom.Missing):
		'method GetCaret'
		return self._ApplyTypes_(10, 1, (24, 0), ((3, 1), (16387, 2), (16387, 2)), u'GetCaret', None,hwnd
			, x, y)

	def GetCaret2(self, hwnd=pythoncom.Missing, x=pythoncom.Missing, y=pythoncom.Missing):
		'method GetCaret'
		return self._ApplyTypes_(11, 1, (24, 0), ((16387, 2), (16387, 2), (16387, 2)), u'GetCaret2', None,hwnd
			, x, y)

	def GetFullTextAA(self, hwnd=defaultNamedNotOptArg):
		'method GetFullTextAA'
		# Result is a Unicode object
		return self._oleobj_.InvokeTypes(21, LCID, 1, (8, 0), ((3, 1),),hwnd
			)

	def GetTextFromPoint(self, hwnd=defaultNamedNotOptArg, x=defaultNamedNotOptArg, y=defaultNamedNotOptArg):
		'method GetTextFromPoint'
		# Result is a Unicode object
		return self._oleobj_.InvokeTypes(1, LCID, 1, (8, 0), ((3, 1), (3, 1), (3, 1)),hwnd
			, x, y)

	def GetTextFromPoint2(self, hwnd=defaultNamedNotOptArg, x=defaultNamedNotOptArg, y=defaultNamedNotOptArg, separators=defaultNamedNotOptArg):
		'method GetTextFromPoint2'
		# Result is a Unicode object
		return self._oleobj_.InvokeTypes(7, LCID, 1, (8, 0), ((3, 1), (3, 1), (3, 1), (8, 1)),hwnd
			, x, y, separators)

	def GetTextFromPoint2WithFont(self, hwnd=defaultNamedNotOptArg, x=defaultNamedNotOptArg, y=defaultNamedNotOptArg, separators=defaultNamedNotOptArg
			, font=pythoncom.Missing):
		'method GetTextFromPoint2WithFont'
		return self._ApplyTypes_(15, 1, (8, 0), ((3, 1), (3, 1), (3, 1), (8, 1), (16393, 2)), u'GetTextFromPoint2WithFont', None,hwnd
			, x, y, separators, font)

	def GetTextFromPointWithFont(self, hwnd=defaultNamedNotOptArg, x=defaultNamedNotOptArg, y=defaultNamedNotOptArg, font=pythoncom.Missing):
		'method GetTextFromPointWithFont'
		return self._ApplyTypes_(12, 1, (8, 0), ((3, 1), (3, 1), (3, 1), (16393, 2)), u'GetTextFromPointWithFont', None,hwnd
			, x, y, font)

	def GetTextFromRect(self, hwnd=defaultNamedNotOptArg, left=defaultNamedNotOptArg, top=defaultNamedNotOptArg, width=defaultNamedNotOptArg
			, height=defaultNamedNotOptArg):
		'method GetTextFromRect'
		# Result is a Unicode object
		return self._oleobj_.InvokeTypes(2, LCID, 1, (8, 0), ((3, 1), (3, 1), (3, 1), (3, 1), (3, 1)),hwnd
			, left, top, width, height)

	def GetTextFromRectWithFont(self, hwnd=defaultNamedNotOptArg, left=defaultNamedNotOptArg, top=defaultNamedNotOptArg, width=defaultNamedNotOptArg
			, height=defaultNamedNotOptArg, font=pythoncom.Missing):
		'method GetTextFromRectWithFont'
		return self._ApplyTypes_(13, 1, (8, 0), ((3, 1), (3, 1), (3, 1), (3, 1), (3, 1), (16393, 2)), u'GetTextFromRectWithFont', None,hwnd
			, left, top, width, height, font
			)

	_prop_map_get_ = {
		"BringWindowToTop": (20, 2, (11, 0), (), "BringWindowToTop", None),
		"UseClientCoordinates": (19, 2, (11, 0), (), "UseClientCoordinates", None),
	}
	_prop_map_put_ = {
		"BringWindowToTop": ((20, LCID, 4, 0),()),
		"UseClientCoordinates": ((19, LCID, 4, 0),()),
	}
	def __iter__(self):
		"Return a Python iterator for this object"
		try:
			ob = self._oleobj_.InvokeTypes(-4,LCID,3,(13, 10),())
		except pythoncom.error:
			raise TypeError("This object does not support enumeration")
		return win32com.client.util.Iterator(ob, None)

class ITextCaptureX6(DispatchBaseClass):
	'ITextCaptureX6 Interface'
	CLSID = IID('{419BE681-BCA8-49D0-9BAD-8A088B1C043B}')
	coclass_clsid = IID('{13FE2FA1-EE8B-45B9-BBB4-08E5F2F43AC3}')

	def CaptureActiveWindow(self):
		'method CaptureActiveWindow'
		# Result is a Unicode object
		return self._oleobj_.InvokeTypes(4, LCID, 1, (8, 0), (),)

	def CaptureActiveWindow2(self, pid=defaultNamedNotOptArg):
		'method CaptureActiveWindow2'
		# Result is a Unicode object
		return self._oleobj_.InvokeTypes(8, LCID, 1, (8, 0), ((3, 1),),pid
			)

	def CaptureActiveWindow2WithFont(self, pid=defaultNamedNotOptArg, font=pythoncom.Missing):
		'method CaptureActiveWindow2WithFont'
		return self._ApplyTypes_(16, 1, (8, 0), ((3, 1), (16393, 2)), u'CaptureActiveWindow2WithFont', None,pid
			, font)

	def CaptureActiveWindowWithFont(self, font=pythoncom.Missing):
		'method CaptureActiveWindowWithFont'
		return self._ApplyTypes_(14, 1, (8, 0), ((16393, 2),), u'CaptureActiveWindowWithFont', None,font
			)

	def CaptureInteractive(self, hwnd=pythoncom.Missing, left=pythoncom.Missing, top=pythoncom.Missing, width=pythoncom.Missing
			, height=pythoncom.Missing):
		'method CaptureInteractive'
		return self._ApplyTypes_(3, 1, (3, 0), ((16387, 2), (16387, 2), (16387, 2), (16387, 2), (16387, 2)), u'CaptureInteractive', None,hwnd
			, left, top, width, height)

	def CaptureInteractiveFreeHand(self, hwnd=pythoncom.Missing, arPoints=pythoncom.Missing):
		'method CaptureInteractiveFreeHand'
		return self._ApplyTypes_(6, 1, (3, 0), ((16387, 2), (16396, 2)), u'CaptureInteractiveFreeHand', None,hwnd
			, arPoints)

	def CaptureWindow(self, hwnd=defaultNamedNotOptArg):
		'method CaptureWindow'
		# Result is a Unicode object
		return self._oleobj_.InvokeTypes(17, LCID, 1, (8, 0), ((3, 1),),hwnd
			)

	def CaptureWindowWithFont(self, hwnd=defaultNamedNotOptArg, font=pythoncom.Missing):
		'method CaptureWindowWithFont'
		return self._ApplyTypes_(18, 1, (8, 0), ((3, 1), (16393, 2)), u'CaptureWindowWithFont', None,hwnd
			, font)

	def GetActiveWindowHwnd(self):
		'method GetActiveWindowHwnd'
		return self._oleobj_.InvokeTypes(5, LCID, 1, (3, 0), (),)

	def GetActiveWindowHwnd2(self, pid=defaultNamedNotOptArg):
		'method GetActiveWindowHwnd2'
		return self._oleobj_.InvokeTypes(9, LCID, 1, (3, 0), ((3, 1),),pid
			)

	def GetCaret(self, hwnd=defaultNamedNotOptArg, x=pythoncom.Missing, y=pythoncom.Missing):
		'method GetCaret'
		return self._ApplyTypes_(10, 1, (24, 0), ((3, 1), (16387, 2), (16387, 2)), u'GetCaret', None,hwnd
			, x, y)

	def GetCaret2(self, hwnd=pythoncom.Missing, x=pythoncom.Missing, y=pythoncom.Missing):
		'method GetCaret'
		return self._ApplyTypes_(11, 1, (24, 0), ((16387, 2), (16387, 2), (16387, 2)), u'GetCaret2', None,hwnd
			, x, y)

	def GetFullTextAA(self, hwnd=defaultNamedNotOptArg):
		'method GetFullTextAA'
		# Result is a Unicode object
		return self._oleobj_.InvokeTypes(21, LCID, 1, (8, 0), ((3, 1),),hwnd
			)

	def GetTextFromPoint(self, hwnd=defaultNamedNotOptArg, x=defaultNamedNotOptArg, y=defaultNamedNotOptArg):
		'method GetTextFromPoint'
		# Result is a Unicode object
		return self._oleobj_.InvokeTypes(1, LCID, 1, (8, 0), ((3, 1), (3, 1), (3, 1)),hwnd
			, x, y)

	def GetTextFromPoint2(self, hwnd=defaultNamedNotOptArg, x=defaultNamedNotOptArg, y=defaultNamedNotOptArg, separators=defaultNamedNotOptArg):
		'method GetTextFromPoint2'
		# Result is a Unicode object
		return self._oleobj_.InvokeTypes(7, LCID, 1, (8, 0), ((3, 1), (3, 1), (3, 1), (8, 1)),hwnd
			, x, y, separators)

	def GetTextFromPoint2WithFont(self, hwnd=defaultNamedNotOptArg, x=defaultNamedNotOptArg, y=defaultNamedNotOptArg, separators=defaultNamedNotOptArg
			, font=pythoncom.Missing):
		'method GetTextFromPoint2WithFont'
		return self._ApplyTypes_(15, 1, (8, 0), ((3, 1), (3, 1), (3, 1), (8, 1), (16393, 2)), u'GetTextFromPoint2WithFont', None,hwnd
			, x, y, separators, font)

	def GetTextFromPointWithFont(self, hwnd=defaultNamedNotOptArg, x=defaultNamedNotOptArg, y=defaultNamedNotOptArg, font=pythoncom.Missing):
		'method GetTextFromPointWithFont'
		return self._ApplyTypes_(12, 1, (8, 0), ((3, 1), (3, 1), (3, 1), (16393, 2)), u'GetTextFromPointWithFont', None,hwnd
			, x, y, font)

	def GetTextFromRect(self, hwnd=defaultNamedNotOptArg, left=defaultNamedNotOptArg, top=defaultNamedNotOptArg, width=defaultNamedNotOptArg
			, height=defaultNamedNotOptArg):
		'method GetTextFromRect'
		# Result is a Unicode object
		return self._oleobj_.InvokeTypes(2, LCID, 1, (8, 0), ((3, 1), (3, 1), (3, 1), (3, 1), (3, 1)),hwnd
			, left, top, width, height)

	def GetTextFromRectWithFont(self, hwnd=defaultNamedNotOptArg, left=defaultNamedNotOptArg, top=defaultNamedNotOptArg, width=defaultNamedNotOptArg
			, height=defaultNamedNotOptArg, font=pythoncom.Missing):
		'method GetTextFromRectWithFont'
		return self._ApplyTypes_(13, 1, (8, 0), ((3, 1), (3, 1), (3, 1), (3, 1), (3, 1), (16393, 2)), u'GetTextFromRectWithFont', None,hwnd
			, left, top, width, height, font
			)

	_prop_map_get_ = {
		"BringWindowToTop": (20, 2, (11, 0), (), "BringWindowToTop", None),
		"FormattedText": (22, 2, (11, 0), (), "FormattedText", None),
		"UseClientCoordinates": (19, 2, (11, 0), (), "UseClientCoordinates", None),
	}
	_prop_map_put_ = {
		"BringWindowToTop": ((20, LCID, 4, 0),()),
		"FormattedText": ((22, LCID, 4, 0),()),
		"UseClientCoordinates": ((19, LCID, 4, 0),()),
	}
	def __iter__(self):
		"Return a Python iterator for this object"
		try:
			ob = self._oleobj_.InvokeTypes(-4,LCID,3,(13, 10),())
		except pythoncom.error:
			raise TypeError("This object does not support enumeration")
		return win32com.client.util.Iterator(ob, None)

class ITextCaptureX7(DispatchBaseClass):
	'ITextCaptureX7 Interface'
	CLSID = IID('{88CCC373-72B2-4AFD-AD2A-8C39956ECBFE}')
	coclass_clsid = IID('{13FE2FA1-EE8B-45B9-BBB4-08E5F2F43AC3}')

	def CaptureActiveWindow(self):
		'method CaptureActiveWindow'
		# Result is a Unicode object
		return self._oleobj_.InvokeTypes(4, LCID, 1, (8, 0), (),)

	def CaptureActiveWindow2(self, pid=defaultNamedNotOptArg):
		'method CaptureActiveWindow2'
		# Result is a Unicode object
		return self._oleobj_.InvokeTypes(8, LCID, 1, (8, 0), ((3, 1),),pid
			)

	def CaptureActiveWindow2WithFont(self, pid=defaultNamedNotOptArg, font=pythoncom.Missing):
		'method CaptureActiveWindow2WithFont'
		return self._ApplyTypes_(16, 1, (8, 0), ((3, 1), (16393, 2)), u'CaptureActiveWindow2WithFont', None,pid
			, font)

	def CaptureActiveWindowWithFont(self, font=pythoncom.Missing):
		'method CaptureActiveWindowWithFont'
		return self._ApplyTypes_(14, 1, (8, 0), ((16393, 2),), u'CaptureActiveWindowWithFont', None,font
			)

	def CaptureInteractive(self, hwnd=pythoncom.Missing, left=pythoncom.Missing, top=pythoncom.Missing, width=pythoncom.Missing
			, height=pythoncom.Missing):
		'method CaptureInteractive'
		return self._ApplyTypes_(3, 1, (3, 0), ((16387, 2), (16387, 2), (16387, 2), (16387, 2), (16387, 2)), u'CaptureInteractive', None,hwnd
			, left, top, width, height)

	def CaptureInteractiveFreeHand(self, hwnd=pythoncom.Missing, arPoints=pythoncom.Missing):
		'method CaptureInteractiveFreeHand'
		return self._ApplyTypes_(6, 1, (3, 0), ((16387, 2), (16396, 2)), u'CaptureInteractiveFreeHand', None,hwnd
			, arPoints)

	def CaptureWindow(self, hwnd=defaultNamedNotOptArg):
		'method CaptureWindow'
		# Result is a Unicode object
		return self._oleobj_.InvokeTypes(17, LCID, 1, (8, 0), ((3, 1),),hwnd
			)

	def CaptureWindowWithFont(self, hwnd=defaultNamedNotOptArg, font=pythoncom.Missing):
		'method CaptureWindowWithFont'
		return self._ApplyTypes_(18, 1, (8, 0), ((3, 1), (16393, 2)), u'CaptureWindowWithFont', None,hwnd
			, font)

	def EndCaptureSession(self):
		'method EndCaptureSession'
		return self._oleobj_.InvokeTypes(25, LCID, 1, (24, 0), (),)

	def GetActiveWindowHwnd(self):
		'method GetActiveWindowHwnd'
		return self._oleobj_.InvokeTypes(5, LCID, 1, (3, 0), (),)

	def GetActiveWindowHwnd2(self, pid=defaultNamedNotOptArg):
		'method GetActiveWindowHwnd2'
		return self._oleobj_.InvokeTypes(9, LCID, 1, (3, 0), ((3, 1),),pid
			)

	def GetCaret(self, hwnd=defaultNamedNotOptArg, x=pythoncom.Missing, y=pythoncom.Missing):
		'method GetCaret'
		return self._ApplyTypes_(10, 1, (24, 0), ((3, 1), (16387, 2), (16387, 2)), u'GetCaret', None,hwnd
			, x, y)

	def GetCaret2(self, hwnd=pythoncom.Missing, x=pythoncom.Missing, y=pythoncom.Missing):
		'method GetCaret'
		return self._ApplyTypes_(11, 1, (24, 0), ((16387, 2), (16387, 2), (16387, 2)), u'GetCaret2', None,hwnd
			, x, y)

	def GetFullTextAA(self, hwnd=defaultNamedNotOptArg):
		'method GetFullTextAA'
		# Result is a Unicode object
		return self._oleobj_.InvokeTypes(21, LCID, 1, (8, 0), ((3, 1),),hwnd
			)

	def GetTextFromPoint(self, hwnd=defaultNamedNotOptArg, x=defaultNamedNotOptArg, y=defaultNamedNotOptArg):
		'method GetTextFromPoint'
		# Result is a Unicode object
		return self._oleobj_.InvokeTypes(1, LCID, 1, (8, 0), ((3, 1), (3, 1), (3, 1)),hwnd
			, x, y)

	def GetTextFromPoint2(self, hwnd=defaultNamedNotOptArg, x=defaultNamedNotOptArg, y=defaultNamedNotOptArg, separators=defaultNamedNotOptArg):
		'method GetTextFromPoint2'
		# Result is a Unicode object
		return self._oleobj_.InvokeTypes(7, LCID, 1, (8, 0), ((3, 1), (3, 1), (3, 1), (8, 1)),hwnd
			, x, y, separators)

	def GetTextFromPoint2WithFont(self, hwnd=defaultNamedNotOptArg, x=defaultNamedNotOptArg, y=defaultNamedNotOptArg, separators=defaultNamedNotOptArg
			, font=pythoncom.Missing):
		'method GetTextFromPoint2WithFont'
		return self._ApplyTypes_(15, 1, (8, 0), ((3, 1), (3, 1), (3, 1), (8, 1), (16393, 2)), u'GetTextFromPoint2WithFont', None,hwnd
			, x, y, separators, font)

	def GetTextFromPointWithFont(self, hwnd=defaultNamedNotOptArg, x=defaultNamedNotOptArg, y=defaultNamedNotOptArg, font=pythoncom.Missing):
		'method GetTextFromPointWithFont'
		return self._ApplyTypes_(12, 1, (8, 0), ((3, 1), (3, 1), (3, 1), (16393, 2)), u'GetTextFromPointWithFont', None,hwnd
			, x, y, font)

	def GetTextFromRect(self, hwnd=defaultNamedNotOptArg, left=defaultNamedNotOptArg, top=defaultNamedNotOptArg, width=defaultNamedNotOptArg
			, height=defaultNamedNotOptArg):
		'method GetTextFromRect'
		# Result is a Unicode object
		return self._oleobj_.InvokeTypes(2, LCID, 1, (8, 0), ((3, 1), (3, 1), (3, 1), (3, 1), (3, 1)),hwnd
			, left, top, width, height)

	def GetTextFromRectWithFont(self, hwnd=defaultNamedNotOptArg, left=defaultNamedNotOptArg, top=defaultNamedNotOptArg, width=defaultNamedNotOptArg
			, height=defaultNamedNotOptArg, font=pythoncom.Missing):
		'method GetTextFromRectWithFont'
		return self._ApplyTypes_(13, 1, (8, 0), ((3, 1), (3, 1), (3, 1), (3, 1), (3, 1), (16393, 2)), u'GetTextFromRectWithFont', None,hwnd
			, left, top, width, height, font
			)

	_prop_map_get_ = {
		"BringWindowToTop": (20, 2, (11, 0), (), "BringWindowToTop", None),
		"Context": (24, 2, (8, 0), (), "Context", None),
		"FormattedText": (22, 2, (11, 0), (), "FormattedText", None),
		"UseClientCoordinates": (19, 2, (11, 0), (), "UseClientCoordinates", None),
	}
	_prop_map_put_ = {
		"BringWindowToTop": ((20, LCID, 4, 0),()),
		"FormattedText": ((22, LCID, 4, 0),()),
		"NoWordsInContext": ((23, LCID, 4, 0),()),
		"UseClientCoordinates": ((19, LCID, 4, 0),()),
	}
	def __iter__(self):
		"Return a Python iterator for this object"
		try:
			ob = self._oleobj_.InvokeTypes(-4,LCID,3,(13, 10),())
		except pythoncom.error:
			raise TypeError("This object does not support enumeration")
		return win32com.client.util.Iterator(ob, None)

from win32com.client import CoClassBaseClass
# This CoClass is known by the name 'TCaptureX.GetAAText.1'
class GetAAText(CoClassBaseClass): # A CoClass
	# GetAAText
	CLSID = IID('{924699E8-66EF-4EB9-AB6E-3CA9660B31EC}')
	coclass_sources = [
	]
	coclass_interfaces = [
		IGetAAText,
		IGetAAText2,
	]
	default_interface = IGetAAText

# This CoClass is known by the name 'TCaptureXProduct.THighlightInfo.1'
class THighlightInfo(CoClassBaseClass): # A CoClass
	# THighlightInfo
	CLSID = IID('{B13501DF-12B3-4A6A-9A5B-8FA1EBCF8699}')
	coclass_sources = [
	]
	coclass_interfaces = [
		ITHighlightInfo,
	]
	default_interface = ITHighlightInfo

# This CoClass is known by the name 'TCaptureXProduct.TSelection.1'
class TSelection(CoClassBaseClass): # A CoClass
	# TSelection
	CLSID = IID('{BF616448-1D65-4559-9293-0F6B607BA892}')
	coclass_sources = [
	]
	coclass_interfaces = [
		ITSelection,
	]
	default_interface = ITSelection

# This CoClass is known by the name 'TCaptureXProduct.TSelectionInfo.1'
class TSelectionInfo(CoClassBaseClass): # A CoClass
	# TSelectionInfo
	CLSID = IID('{AD58B105-E00C-4F3F-81A5-54F741853E5C}')
	coclass_sources = [
	]
	coclass_interfaces = [
		ITSelectionInfo,
	]
	default_interface = ITSelectionInfo

# This CoClass is known by the name 'TCaptureX.TextCaptureX.1'
class TextCaptureX(CoClassBaseClass): # A CoClass
	# TextCaptureX Class
	CLSID = IID('{13FE2FA1-EE8B-45B9-BBB4-08E5F2F43AC3}')
	coclass_sources = [
	]
	coclass_interfaces = [
		ITextCaptureX2,
		ITextCaptureX7,
		ITextCaptureX4,
		ITextCaptureX3,
		ITextCaptureX6,
		ITextCaptureX5,
		ITextCaptureX,
	]
	default_interface = ITextCaptureX

IGetAAText_vtables_dispatch_ = 1
IGetAAText_vtables_ = [
	(( u'GetFullTextAA' , u'hwnd' , u'result' , ), 1, (1, (), [ (3, 1, None, None) , 
			(16392, 10, None, None) , ], 1 , 1 , 4 , 0 , 28 , (3, 0, None, None) , 0 , )),
]

IGetAAText2_vtables_dispatch_ = 1
IGetAAText2_vtables_ = [
	(( u'HighlightInfo' , u'pVal' , ), 2, (2, (), [ (16393, 10, None, "IID('{FF7B48D0-4615-49FA-970B-56A95EDA143A}')") , ], 1 , 2 , 4 , 0 , 32 , (3, 0, None, None) , 0 , )),
	(( u'HighlightInfo' , u'pVal' , ), 2, (2, (), [ (9, 1, None, "IID('{FF7B48D0-4615-49FA-970B-56A95EDA143A}')") , ], 1 , 4 , 4 , 0 , 36 , (3, 0, None, None) , 0 , )),
	(( u'ExtractHighlightInfo' , u'pVal' , ), 3, (3, (), [ (16395, 10, None, None) , ], 1 , 2 , 4 , 0 , 40 , (3, 0, None, None) , 0 , )),
	(( u'ExtractHighlightInfo' , u'pVal' , ), 3, (3, (), [ (11, 1, None, None) , ], 1 , 4 , 4 , 0 , 44 , (3, 0, None, None) , 0 , )),
]

ITHighlightInfo_vtables_dispatch_ = 1
ITHighlightInfo_vtables_ = [
	(( u'hwnd' , u'pVal' , ), 1, (1, (), [ (16387, 10, None, None) , ], 1 , 2 , 4 , 0 , 28 , (3, 0, None, None) , 0 , )),
	(( u'hwnd' , u'pVal' , ), 1, (1, (), [ (3, 1, None, None) , ], 1 , 4 , 4 , 0 , 32 , (3, 0, None, None) , 0 , )),
	(( u'Count' , u'pVal' , ), 2, (2, (), [ (16387, 10, None, None) , ], 1 , 2 , 4 , 0 , 36 , (3, 0, None, None) , 0 , )),
	(( u'Add' , u'text' , u'left' , u'top' , u'right' , 
			u'bottom' , ), 3, (3, (), [ (8, 1, None, None) , (3, 1, None, None) , (3, 1, None, None) , 
			(3, 1, None, None) , (3, 1, None, None) , ], 1 , 1 , 4 , 0 , 40 , (3, 0, None, None) , 0 , )),
	(( u'Remove' , u'index' , ), 4, (4, (), [ (3, 1, None, None) , ], 1 , 1 , 4 , 0 , 44 , (3, 0, None, None) , 0 , )),
	(( u'Get' , u'index' , u'text' , u'left' , u'top' , 
			u'right' , u'bottom' , ), 5, (5, (), [ (3, 1, None, None) , (16392, 2, None, None) , 
			(16387, 2, None, None) , (16387, 2, None, None) , (16387, 2, None, None) , (16387, 2, None, None) , ], 1 , 1 , 4 , 0 , 48 , (3, 0, None, None) , 0 , )),
	(( u'PerformHighlight' , u'delay' , ), 6, (6, (), [ (3, 1, None, None) , ], 1 , 1 , 4 , 0 , 52 , (3, 0, None, None) , 0 , )),
	(( u'PerformHighlightFull' , u'delay' , ), 7, (7, (), [ (3, 1, None, None) , ], 1 , 1 , 4 , 0 , 56 , (3, 0, None, None) , 0 , )),
]

ITSelection_vtables_dispatch_ = 1
ITSelection_vtables_ = [
	(( u'Start' , u'selection_type' , u'options' , u'selection_result' , u'result' , 
			), 1, (1, (), [ (3, 1, None, None) , (3, 1, None, None) , (16393, 2, None, "IID('{12E679EC-86BF-4AA2-AA94-1B8D16E30EAF}')") , (16387, 2, None, None) , ], 1 , 1 , 4 , 0 , 28 , (3, 0, None, None) , 0 , )),
	(( u'FixedRegionWidth' , u'pVal' , ), 3, (3, (), [ (16387, 10, None, None) , ], 1 , 2 , 4 , 0 , 32 , (3, 0, None, None) , 0 , )),
	(( u'FixedRegionWidth' , u'pVal' , ), 3, (3, (), [ (3, 1, None, None) , ], 1 , 4 , 4 , 0 , 36 , (3, 0, None, None) , 0 , )),
	(( u'FixedRegionHeight' , u'pVal' , ), 4, (4, (), [ (16387, 10, None, None) , ], 1 , 2 , 4 , 0 , 40 , (3, 0, None, None) , 0 , )),
	(( u'FixedRegionHeight' , u'pVal' , ), 4, (4, (), [ (3, 1, None, None) , ], 1 , 4 , 4 , 0 , 44 , (3, 0, None, None) , 0 , )),
]

ITSelectionInfo_vtables_dispatch_ = 1
ITSelectionInfo_vtables_ = [
	(( u'Type' , u'pVal' , ), 1, (1, (), [ (16387, 10, None, None) , ], 1 , 2 , 4 , 0 , 28 , (3, 0, None, None) , 0 , )),
	(( u'Type' , u'pVal' , ), 1, (1, (), [ (3, 1, None, None) , ], 1 , 4 , 4 , 0 , 32 , (3, 0, None, None) , 0 , )),
	(( u'WindowHandle' , u'pVal' , ), 2, (2, (), [ (16387, 10, None, None) , ], 1 , 2 , 4 , 0 , 36 , (3, 0, None, None) , 0 , )),
	(( u'WindowHandle' , u'pVal' , ), 2, (2, (), [ (3, 1, None, None) , ], 1 , 4 , 4 , 0 , 40 , (3, 0, None, None) , 0 , )),
	(( u'Points' , u'pVal' , ), 3, (3, (), [ (16396, 10, None, None) , ], 1 , 2 , 4 , 0 , 44 , (3, 0, None, None) , 0 , )),
	(( u'Points' , u'pVal' , ), 3, (3, (), [ (12, 1, None, None) , ], 1 , 4 , 4 , 0 , 48 , (3, 0, None, None) , 0 , )),
	(( u'Image' , u'pVal' , ), 4, (4, (), [ (16393, 10, None, "IID('{7BF80981-BF32-101A-8BBB-00AA00300CAB}')") , ], 1 , 2 , 4 , 0 , 52 , (3, 0, None, None) , 0 , )),
	(( u'Image' , u'pVal' , ), 4, (4, (), [ (9, 1, None, "IID('{7BF80981-BF32-101A-8BBB-00AA00300CAB}')") , ], 1 , 4 , 4 , 0 , 56 , (3, 0, None, None) , 0 , )),
]

ITextCaptureX_vtables_dispatch_ = 1
ITextCaptureX_vtables_ = [
	(( u'GetTextFromPoint' , u'hwnd' , u'x' , u'y' , u'result' , 
			), 1, (1, (), [ (3, 1, None, None) , (3, 1, None, None) , (3, 1, None, None) , (16392, 10, None, None) , ], 1 , 1 , 4 , 0 , 28 , (3, 0, None, None) , 0 , )),
	(( u'GetTextFromRect' , u'hwnd' , u'left' , u'top' , u'width' , 
			u'height' , u'result' , ), 2, (2, (), [ (3, 1, None, None) , (3, 1, None, None) , 
			(3, 1, None, None) , (3, 1, None, None) , (3, 1, None, None) , (16392, 10, None, None) , ], 1 , 1 , 4 , 0 , 32 , (3, 0, None, None) , 0 , )),
	(( u'CaptureInteractive' , u'hwnd' , u'left' , u'top' , u'width' , 
			u'height' , u'selection' , ), 3, (3, (), [ (16387, 2, None, None) , (16387, 2, None, None) , 
			(16387, 2, None, None) , (16387, 2, None, None) , (16387, 2, None, None) , (16387, 10, None, None) , ], 1 , 1 , 4 , 0 , 36 , (3, 0, None, None) , 0 , )),
	(( u'CaptureActiveWindow' , u'result' , ), 4, (4, (), [ (16392, 10, None, None) , ], 1 , 1 , 4 , 0 , 40 , (3, 0, None, None) , 0 , )),
	(( u'GetActiveWindowHwnd' , u'hwnd' , ), 5, (5, (), [ (16387, 10, None, None) , ], 1 , 1 , 4 , 0 , 44 , (3, 0, None, None) , 0 , )),
	(( u'CaptureInteractiveFreeHand' , u'hwnd' , u'arPoints' , u'selection' , ), 6, (6, (), [ 
			(16387, 2, None, None) , (16396, 2, None, None) , (16387, 10, None, None) , ], 1 , 1 , 4 , 0 , 48 , (3, 0, None, None) , 0 , )),
]

ITextCaptureX2_vtables_dispatch_ = 1
ITextCaptureX2_vtables_ = [
	(( u'GetTextFromPoint2' , u'hwnd' , u'x' , u'y' , u'separators' , 
			u'result' , ), 7, (7, (), [ (3, 1, None, None) , (3, 1, None, None) , (3, 1, None, None) , 
			(8, 1, None, None) , (16392, 10, None, None) , ], 1 , 1 , 4 , 0 , 52 , (3, 0, None, None) , 0 , )),
]

ITextCaptureX3_vtables_dispatch_ = 1
ITextCaptureX3_vtables_ = [
	(( u'CaptureActiveWindow2' , u'pid' , u'result' , ), 8, (8, (), [ (3, 1, None, None) , 
			(16392, 10, None, None) , ], 1 , 1 , 4 , 0 , 56 , (3, 0, None, None) , 0 , )),
	(( u'GetActiveWindowHwnd2' , u'pid' , u'hwnd' , ), 9, (9, (), [ (3, 1, None, None) , 
			(16387, 10, None, None) , ], 1 , 1 , 4 , 0 , 60 , (3, 0, None, None) , 0 , )),
]

ITextCaptureX4_vtables_dispatch_ = 1
ITextCaptureX4_vtables_ = [
	(( u'GetCaret' , u'hwnd' , u'x' , u'y' , ), 10, (10, (), [ 
			(3, 1, None, None) , (16387, 2, None, None) , (16387, 2, None, None) , ], 1 , 1 , 4 , 0 , 64 , (3, 0, None, None) , 0 , )),
	(( u'GetCaret2' , u'hwnd' , u'x' , u'y' , ), 11, (11, (), [ 
			(16387, 2, None, None) , (16387, 2, None, None) , (16387, 2, None, None) , ], 1 , 1 , 4 , 0 , 68 , (3, 0, None, None) , 0 , )),
]

ITextCaptureX5_vtables_dispatch_ = 1
ITextCaptureX5_vtables_ = [
	(( u'GetTextFromPointWithFont' , u'hwnd' , u'x' , u'y' , u'font' , 
			u'result' , ), 12, (12, (), [ (3, 1, None, None) , (3, 1, None, None) , (3, 1, None, None) , 
			(16393, 2, None, "IID('{BEF6E003-A874-101A-8BBA-00AA00300CAB}')") , (16392, 10, None, None) , ], 1 , 1 , 4 , 0 , 72 , (3, 0, None, None) , 0 , )),
	(( u'GetTextFromRectWithFont' , u'hwnd' , u'left' , u'top' , u'width' , 
			u'height' , u'font' , u'result' , ), 13, (13, (), [ (3, 1, None, None) , 
			(3, 1, None, None) , (3, 1, None, None) , (3, 1, None, None) , (3, 1, None, None) , (16393, 2, None, "IID('{BEF6E003-A874-101A-8BBA-00AA00300CAB}')") , 
			(16392, 10, None, None) , ], 1 , 1 , 4 , 0 , 76 , (3, 0, None, None) , 0 , )),
	(( u'CaptureActiveWindowWithFont' , u'font' , u'result' , ), 14, (14, (), [ (16393, 2, None, "IID('{BEF6E003-A874-101A-8BBA-00AA00300CAB}')") , 
			(16392, 10, None, None) , ], 1 , 1 , 4 , 0 , 80 , (3, 0, None, None) , 0 , )),
	(( u'GetTextFromPoint2WithFont' , u'hwnd' , u'x' , u'y' , u'separators' , 
			u'font' , u'result' , ), 15, (15, (), [ (3, 1, None, None) , (3, 1, None, None) , 
			(3, 1, None, None) , (8, 1, None, None) , (16393, 2, None, "IID('{BEF6E003-A874-101A-8BBA-00AA00300CAB}')") , (16392, 10, None, None) , ], 1 , 1 , 4 , 0 , 84 , (3, 0, None, None) , 0 , )),
	(( u'CaptureActiveWindow2WithFont' , u'pid' , u'font' , u'result' , ), 16, (16, (), [ 
			(3, 1, None, None) , (16393, 2, None, "IID('{BEF6E003-A874-101A-8BBA-00AA00300CAB}')") , (16392, 10, None, None) , ], 1 , 1 , 4 , 0 , 88 , (3, 0, None, None) , 0 , )),
	(( u'CaptureWindow' , u'hwnd' , u'result' , ), 17, (17, (), [ (3, 1, None, None) , 
			(16392, 10, None, None) , ], 1 , 1 , 4 , 0 , 92 , (3, 0, None, None) , 0 , )),
	(( u'CaptureWindowWithFont' , u'hwnd' , u'font' , u'result' , ), 18, (18, (), [ 
			(3, 1, None, None) , (16393, 2, None, "IID('{BEF6E003-A874-101A-8BBA-00AA00300CAB}')") , (16392, 10, None, None) , ], 1 , 1 , 4 , 0 , 96 , (3, 0, None, None) , 0 , )),
	(( u'UseClientCoordinates' , u'pVal' , ), 19, (19, (), [ (16395, 10, None, None) , ], 1 , 2 , 4 , 0 , 100 , (3, 0, None, None) , 0 , )),
	(( u'UseClientCoordinates' , u'pVal' , ), 19, (19, (), [ (11, 1, None, None) , ], 1 , 4 , 4 , 0 , 104 , (3, 0, None, None) , 0 , )),
	(( u'BringWindowToTop' , u'pVal' , ), 20, (20, (), [ (16395, 10, None, None) , ], 1 , 2 , 4 , 0 , 108 , (3, 0, None, None) , 0 , )),
	(( u'BringWindowToTop' , u'pVal' , ), 20, (20, (), [ (11, 1, None, None) , ], 1 , 4 , 4 , 0 , 112 , (3, 0, None, None) , 0 , )),
	(( u'GetFullTextAA' , u'hwnd' , u'result' , ), 21, (21, (), [ (3, 1, None, None) , 
			(16392, 10, None, None) , ], 1 , 1 , 4 , 0 , 116 , (3, 0, None, None) , 0 , )),
]

ITextCaptureX6_vtables_dispatch_ = 1
ITextCaptureX6_vtables_ = [
	(( u'FormattedText' , u'pVal' , ), 22, (22, (), [ (16395, 10, None, None) , ], 1 , 2 , 4 , 0 , 120 , (3, 0, None, None) , 0 , )),
	(( u'FormattedText' , u'pVal' , ), 22, (22, (), [ (11, 1, None, None) , ], 1 , 4 , 4 , 0 , 124 , (3, 0, None, None) , 0 , )),
]

ITextCaptureX7_vtables_dispatch_ = 1
ITextCaptureX7_vtables_ = [
	(( u'NoWordsInContext' , ), 23, (23, (), [ (3, 1, None, None) , ], 1 , 4 , 4 , 0 , 128 , (3, 0, None, None) , 0 , )),
	(( u'Context' , u'pVal' , ), 24, (24, (), [ (16392, 10, None, None) , ], 1 , 2 , 4 , 0 , 132 , (3, 0, None, None) , 0 , )),
	(( u'EndCaptureSession' , ), 25, (25, (), [ ], 1 , 1 , 4 , 0 , 136 , (3, 0, None, None) , 0 , )),
]

RecordMap = {
}

CLSIDToClassMap = {
	'{B13501DF-12B3-4A6A-9A5B-8FA1EBCF8699}' : THighlightInfo,
	'{E2500574-7215-4028-A567-3A7D77A4B2B1}' : ITextCaptureX2,
	'{88CCC373-72B2-4AFD-AD2A-8C39956ECBFE}' : ITextCaptureX7,
	'{924699E8-66EF-4EB9-AB6E-3CA9660B31EC}' : GetAAText,
	'{4652E117-CDF0-4B10-B3C9-4FE74FD0FA5B}' : IGetAAText,
	'{12E679EC-86BF-4AA2-AA94-1B8D16E30EAF}' : ITSelectionInfo,
	'{ACFD5F3E-946F-4A6A-8B76-450F94120D4C}' : ITextCaptureX4,
	'{C9D57541-BAD7-46B4-82D8-2041546133BF}' : ITextCaptureX3,
	'{419BE681-BCA8-49D0-9BAD-8A088B1C043B}' : ITextCaptureX6,
	'{AD58B105-E00C-4F3F-81A5-54F741853E5C}' : TSelectionInfo,
	'{13FE2FA1-EE8B-45B9-BBB4-08E5F2F43AC3}' : TextCaptureX,
	'{24455CC7-C5E2-4D5B-A37C-47C76CFE1905}' : ITSelection,
	'{D460C8E0-B0EA-4F9B-8E2E-5042A191FA79}' : ITextCaptureX5,
	'{FF7B48D0-4615-49FA-970B-56A95EDA143A}' : ITHighlightInfo,
	'{EEA5ABD9-2C89-4CDD-9C07-C3DDDF162A37}' : ITextCaptureX,
	'{71EA4E83-A80C-435B-8B77-76D2E45D02A6}' : IGetAAText2,
	'{BF616448-1D65-4559-9293-0F6B607BA892}' : TSelection,
}
CLSIDToPackageMap = {}
win32com.client.CLSIDToClass.RegisterCLSIDsFromDict( CLSIDToClassMap )
VTablesToPackageMap = {}
VTablesToClassMap = {
	'{E2500574-7215-4028-A567-3A7D77A4B2B1}' : 'ITextCaptureX2',
	'{88CCC373-72B2-4AFD-AD2A-8C39956ECBFE}' : 'ITextCaptureX7',
	'{4652E117-CDF0-4B10-B3C9-4FE74FD0FA5B}' : 'IGetAAText',
	'{12E679EC-86BF-4AA2-AA94-1B8D16E30EAF}' : 'ITSelectionInfo',
	'{ACFD5F3E-946F-4A6A-8B76-450F94120D4C}' : 'ITextCaptureX4',
	'{C9D57541-BAD7-46B4-82D8-2041546133BF}' : 'ITextCaptureX3',
	'{419BE681-BCA8-49D0-9BAD-8A088B1C043B}' : 'ITextCaptureX6',
	'{24455CC7-C5E2-4D5B-A37C-47C76CFE1905}' : 'ITSelection',
	'{D460C8E0-B0EA-4F9B-8E2E-5042A191FA79}' : 'ITextCaptureX5',
	'{FF7B48D0-4615-49FA-970B-56A95EDA143A}' : 'ITHighlightInfo',
	'{EEA5ABD9-2C89-4CDD-9C07-C3DDDF162A37}' : 'ITextCaptureX',
	'{71EA4E83-A80C-435B-8B77-76D2E45D02A6}' : 'IGetAAText2',
}


NamesToIIDMap = {
	'ITSelectionInfo' : '{12E679EC-86BF-4AA2-AA94-1B8D16E30EAF}',
	'ITextCaptureX' : '{EEA5ABD9-2C89-4CDD-9C07-C3DDDF162A37}',
	'ITSelection' : '{24455CC7-C5E2-4D5B-A37C-47C76CFE1905}',
	'ITextCaptureX4' : '{ACFD5F3E-946F-4A6A-8B76-450F94120D4C}',
	'ITextCaptureX5' : '{D460C8E0-B0EA-4F9B-8E2E-5042A191FA79}',
	'IGetAAText' : '{4652E117-CDF0-4B10-B3C9-4FE74FD0FA5B}',
	'ITextCaptureX7' : '{88CCC373-72B2-4AFD-AD2A-8C39956ECBFE}',
	'ITextCaptureX2' : '{E2500574-7215-4028-A567-3A7D77A4B2B1}',
	'ITextCaptureX3' : '{C9D57541-BAD7-46B4-82D8-2041546133BF}',
	'ITHighlightInfo' : '{FF7B48D0-4615-49FA-970B-56A95EDA143A}',
	'IGetAAText2' : '{71EA4E83-A80C-435B-8B77-76D2E45D02A6}',
	'ITextCaptureX6' : '{419BE681-BCA8-49D0-9BAD-8A088B1C043B}',
}

win32com.client.constants.__dicts__.append(constants.__dict__)



想使用如下的方式调用:

text = ??????.GetTextFromRect(hwnd,200,200,400,400)

print text

请问这个程序该如何写?(因本人是小白,因此想请各位高手帮忙写下,tks)



加载中
返回顶部
顶部