partition stringclasses 3
values | func_name stringlengths 1 134 | docstring stringlengths 1 46.9k | path stringlengths 4 223 | original_string stringlengths 75 104k | code stringlengths 75 104k | docstring_tokens listlengths 1 1.97k | repo stringlengths 7 55 | language stringclasses 1
value | url stringlengths 87 315 | code_tokens listlengths 19 28.4k | sha stringlengths 40 40 |
|---|---|---|---|---|---|---|---|---|---|---|---|
valid | Bitmap.GetPixelColorsHorizontally | x: int.
y: int.
count: int.
Return `ctypes.Array`, an iterable array of int values in argb form point x,y horizontally. | uiautomation/uiautomation.py | def GetPixelColorsHorizontally(self, x: int, y: int, count: int) -> ctypes.Array:
"""
x: int.
y: int.
count: int.
Return `ctypes.Array`, an iterable array of int values in argb form point x,y horizontally.
"""
arrayType = ctypes.c_uint32 * count
values = a... | def GetPixelColorsHorizontally(self, x: int, y: int, count: int) -> ctypes.Array:
"""
x: int.
y: int.
count: int.
Return `ctypes.Array`, an iterable array of int values in argb form point x,y horizontally.
"""
arrayType = ctypes.c_uint32 * count
values = a... | [
"x",
":",
"int",
".",
"y",
":",
"int",
".",
"count",
":",
"int",
".",
"Return",
"ctypes",
".",
"Array",
"an",
"iterable",
"array",
"of",
"int",
"values",
"in",
"argb",
"form",
"point",
"x",
"y",
"horizontally",
"."
] | yinkaisheng/Python-UIAutomation-for-Windows | python | https://github.com/yinkaisheng/Python-UIAutomation-for-Windows/blob/2cc91060982cc8b777152e698d677cc2989bf263/uiautomation/uiautomation.py#L3056-L3066 | [
"def",
"GetPixelColorsHorizontally",
"(",
"self",
",",
"x",
":",
"int",
",",
"y",
":",
"int",
",",
"count",
":",
"int",
")",
"->",
"ctypes",
".",
"Array",
":",
"arrayType",
"=",
"ctypes",
".",
"c_uint32",
"*",
"count",
"values",
"=",
"arrayType",
"(",
... | 2cc91060982cc8b777152e698d677cc2989bf263 |
valid | Bitmap.SetPixelColorsHorizontally | Set pixel colors form x,y horizontally.
x: int.
y: int.
colors: Iterable, an iterable list of int color values in argb.
Return bool, True if succeed otherwise False. | uiautomation/uiautomation.py | def SetPixelColorsHorizontally(self, x: int, y: int, colors: Iterable) -> bool:
"""
Set pixel colors form x,y horizontally.
x: int.
y: int.
colors: Iterable, an iterable list of int color values in argb.
Return bool, True if succeed otherwise False.
"""
co... | def SetPixelColorsHorizontally(self, x: int, y: int, colors: Iterable) -> bool:
"""
Set pixel colors form x,y horizontally.
x: int.
y: int.
colors: Iterable, an iterable list of int color values in argb.
Return bool, True if succeed otherwise False.
"""
co... | [
"Set",
"pixel",
"colors",
"form",
"x",
"y",
"horizontally",
".",
"x",
":",
"int",
".",
"y",
":",
"int",
".",
"colors",
":",
"Iterable",
"an",
"iterable",
"list",
"of",
"int",
"color",
"values",
"in",
"argb",
".",
"Return",
"bool",
"True",
"if",
"succ... | yinkaisheng/Python-UIAutomation-for-Windows | python | https://github.com/yinkaisheng/Python-UIAutomation-for-Windows/blob/2cc91060982cc8b777152e698d677cc2989bf263/uiautomation/uiautomation.py#L3068-L3079 | [
"def",
"SetPixelColorsHorizontally",
"(",
"self",
",",
"x",
":",
"int",
",",
"y",
":",
"int",
",",
"colors",
":",
"Iterable",
")",
"->",
"bool",
":",
"count",
"=",
"len",
"(",
"colors",
")",
"arrayType",
"=",
"ctypes",
".",
"c_uint32",
"*",
"count",
... | 2cc91060982cc8b777152e698d677cc2989bf263 |
valid | Bitmap.GetPixelColorsVertically | x: int.
y: int.
count: int.
Return `ctypes.Array`, an iterable array of int values in argb form point x,y vertically. | uiautomation/uiautomation.py | def GetPixelColorsVertically(self, x: int, y: int, count: int) -> ctypes.Array:
"""
x: int.
y: int.
count: int.
Return `ctypes.Array`, an iterable array of int values in argb form point x,y vertically.
"""
arrayType = ctypes.c_uint32 * count
values = array... | def GetPixelColorsVertically(self, x: int, y: int, count: int) -> ctypes.Array:
"""
x: int.
y: int.
count: int.
Return `ctypes.Array`, an iterable array of int values in argb form point x,y vertically.
"""
arrayType = ctypes.c_uint32 * count
values = array... | [
"x",
":",
"int",
".",
"y",
":",
"int",
".",
"count",
":",
"int",
".",
"Return",
"ctypes",
".",
"Array",
"an",
"iterable",
"array",
"of",
"int",
"values",
"in",
"argb",
"form",
"point",
"x",
"y",
"vertically",
"."
] | yinkaisheng/Python-UIAutomation-for-Windows | python | https://github.com/yinkaisheng/Python-UIAutomation-for-Windows/blob/2cc91060982cc8b777152e698d677cc2989bf263/uiautomation/uiautomation.py#L3081-L3091 | [
"def",
"GetPixelColorsVertically",
"(",
"self",
",",
"x",
":",
"int",
",",
"y",
":",
"int",
",",
"count",
":",
"int",
")",
"->",
"ctypes",
".",
"Array",
":",
"arrayType",
"=",
"ctypes",
".",
"c_uint32",
"*",
"count",
"values",
"=",
"arrayType",
"(",
... | 2cc91060982cc8b777152e698d677cc2989bf263 |
valid | Bitmap.GetPixelColorsOfRow | y: int, row index.
Return `ctypes.Array`, an iterable array of int values in argb of y row. | uiautomation/uiautomation.py | def GetPixelColorsOfRow(self, y: int) -> ctypes.Array:
"""
y: int, row index.
Return `ctypes.Array`, an iterable array of int values in argb of y row.
"""
return self.GetPixelColorsOfRect(0, y, self.Width, 1) | def GetPixelColorsOfRow(self, y: int) -> ctypes.Array:
"""
y: int, row index.
Return `ctypes.Array`, an iterable array of int values in argb of y row.
"""
return self.GetPixelColorsOfRect(0, y, self.Width, 1) | [
"y",
":",
"int",
"row",
"index",
".",
"Return",
"ctypes",
".",
"Array",
"an",
"iterable",
"array",
"of",
"int",
"values",
"in",
"argb",
"of",
"y",
"row",
"."
] | yinkaisheng/Python-UIAutomation-for-Windows | python | https://github.com/yinkaisheng/Python-UIAutomation-for-Windows/blob/2cc91060982cc8b777152e698d677cc2989bf263/uiautomation/uiautomation.py#L3106-L3111 | [
"def",
"GetPixelColorsOfRow",
"(",
"self",
",",
"y",
":",
"int",
")",
"->",
"ctypes",
".",
"Array",
":",
"return",
"self",
".",
"GetPixelColorsOfRect",
"(",
"0",
",",
"y",
",",
"self",
".",
"Width",
",",
"1",
")"
] | 2cc91060982cc8b777152e698d677cc2989bf263 |
valid | Bitmap.GetPixelColorsOfColumn | x: int, column index.
Return `ctypes.Array`, an iterable array of int values in argb of x column. | uiautomation/uiautomation.py | def GetPixelColorsOfColumn(self, x: int) -> ctypes.Array:
"""
x: int, column index.
Return `ctypes.Array`, an iterable array of int values in argb of x column.
"""
return self.GetPixelColorsOfRect(x, 0, 1, self.Height) | def GetPixelColorsOfColumn(self, x: int) -> ctypes.Array:
"""
x: int, column index.
Return `ctypes.Array`, an iterable array of int values in argb of x column.
"""
return self.GetPixelColorsOfRect(x, 0, 1, self.Height) | [
"x",
":",
"int",
"column",
"index",
".",
"Return",
"ctypes",
".",
"Array",
"an",
"iterable",
"array",
"of",
"int",
"values",
"in",
"argb",
"of",
"x",
"column",
"."
] | yinkaisheng/Python-UIAutomation-for-Windows | python | https://github.com/yinkaisheng/Python-UIAutomation-for-Windows/blob/2cc91060982cc8b777152e698d677cc2989bf263/uiautomation/uiautomation.py#L3113-L3118 | [
"def",
"GetPixelColorsOfColumn",
"(",
"self",
",",
"x",
":",
"int",
")",
"->",
"ctypes",
".",
"Array",
":",
"return",
"self",
".",
"GetPixelColorsOfRect",
"(",
"x",
",",
"0",
",",
"1",
",",
"self",
".",
"Height",
")"
] | 2cc91060982cc8b777152e698d677cc2989bf263 |
valid | Bitmap.GetPixelColorsOfRect | x: int.
y: int.
width: int.
height: int.
Return `ctypes.Array`, an iterable array of int values in argb of the input rect. | uiautomation/uiautomation.py | def GetPixelColorsOfRect(self, x: int, y: int, width: int, height: int) -> ctypes.Array:
"""
x: int.
y: int.
width: int.
height: int.
Return `ctypes.Array`, an iterable array of int values in argb of the input rect.
"""
arrayType = ctypes.c_uint32 * (width... | def GetPixelColorsOfRect(self, x: int, y: int, width: int, height: int) -> ctypes.Array:
"""
x: int.
y: int.
width: int.
height: int.
Return `ctypes.Array`, an iterable array of int values in argb of the input rect.
"""
arrayType = ctypes.c_uint32 * (width... | [
"x",
":",
"int",
".",
"y",
":",
"int",
".",
"width",
":",
"int",
".",
"height",
":",
"int",
".",
"Return",
"ctypes",
".",
"Array",
"an",
"iterable",
"array",
"of",
"int",
"values",
"in",
"argb",
"of",
"the",
"input",
"rect",
"."
] | yinkaisheng/Python-UIAutomation-for-Windows | python | https://github.com/yinkaisheng/Python-UIAutomation-for-Windows/blob/2cc91060982cc8b777152e698d677cc2989bf263/uiautomation/uiautomation.py#L3120-L3131 | [
"def",
"GetPixelColorsOfRect",
"(",
"self",
",",
"x",
":",
"int",
",",
"y",
":",
"int",
",",
"width",
":",
"int",
",",
"height",
":",
"int",
")",
"->",
"ctypes",
".",
"Array",
":",
"arrayType",
"=",
"ctypes",
".",
"c_uint32",
"*",
"(",
"width",
"*"... | 2cc91060982cc8b777152e698d677cc2989bf263 |
valid | Bitmap.SetPixelColorsOfRect | x: int.
y: int.
width: int.
height: int.
colors: Iterable, an iterable list of int values, it's length must equal to width*height.
Return `ctypes.Array`, an iterable array of int values in argb of the input rect. | uiautomation/uiautomation.py | def SetPixelColorsOfRect(self, x: int, y: int, width: int, height: int, colors: Iterable) -> bool:
"""
x: int.
y: int.
width: int.
height: int.
colors: Iterable, an iterable list of int values, it's length must equal to width*height.
Return `ctypes.Array`, an iter... | def SetPixelColorsOfRect(self, x: int, y: int, width: int, height: int, colors: Iterable) -> bool:
"""
x: int.
y: int.
width: int.
height: int.
colors: Iterable, an iterable list of int values, it's length must equal to width*height.
Return `ctypes.Array`, an iter... | [
"x",
":",
"int",
".",
"y",
":",
"int",
".",
"width",
":",
"int",
".",
"height",
":",
"int",
".",
"colors",
":",
"Iterable",
"an",
"iterable",
"list",
"of",
"int",
"values",
"it",
"s",
"length",
"must",
"equal",
"to",
"width",
"*",
"height",
".",
... | yinkaisheng/Python-UIAutomation-for-Windows | python | https://github.com/yinkaisheng/Python-UIAutomation-for-Windows/blob/2cc91060982cc8b777152e698d677cc2989bf263/uiautomation/uiautomation.py#L3133-L3144 | [
"def",
"SetPixelColorsOfRect",
"(",
"self",
",",
"x",
":",
"int",
",",
"y",
":",
"int",
",",
"width",
":",
"int",
",",
"height",
":",
"int",
",",
"colors",
":",
"Iterable",
")",
"->",
"bool",
":",
"arrayType",
"=",
"ctypes",
".",
"c_uint32",
"*",
"... | 2cc91060982cc8b777152e698d677cc2989bf263 |
valid | Bitmap.GetPixelColorsOfRects | rects: a list of rects, such as [(0,0,10,10), (10,10,20,20),(x,y,width,height)].
Return list, a list whose elements are ctypes.Array which is an iterable array of int values in argb. | uiautomation/uiautomation.py | def GetPixelColorsOfRects(self, rects: list) -> list:
"""
rects: a list of rects, such as [(0,0,10,10), (10,10,20,20),(x,y,width,height)].
Return list, a list whose elements are ctypes.Array which is an iterable array of int values in argb.
"""
rects2 = [(x, y, x + width, y + hei... | def GetPixelColorsOfRects(self, rects: list) -> list:
"""
rects: a list of rects, such as [(0,0,10,10), (10,10,20,20),(x,y,width,height)].
Return list, a list whose elements are ctypes.Array which is an iterable array of int values in argb.
"""
rects2 = [(x, y, x + width, y + hei... | [
"rects",
":",
"a",
"list",
"of",
"rects",
"such",
"as",
"[",
"(",
"0",
"0",
"10",
"10",
")",
"(",
"10",
"10",
"20",
"20",
")",
"(",
"x",
"y",
"width",
"height",
")",
"]",
".",
"Return",
"list",
"a",
"list",
"whose",
"elements",
"are",
"ctypes",... | yinkaisheng/Python-UIAutomation-for-Windows | python | https://github.com/yinkaisheng/Python-UIAutomation-for-Windows/blob/2cc91060982cc8b777152e698d677cc2989bf263/uiautomation/uiautomation.py#L3146-L3164 | [
"def",
"GetPixelColorsOfRects",
"(",
"self",
",",
"rects",
":",
"list",
")",
"->",
"list",
":",
"rects2",
"=",
"[",
"(",
"x",
",",
"y",
",",
"x",
"+",
"width",
",",
"y",
"+",
"height",
")",
"for",
"x",
",",
"y",
",",
"width",
",",
"height",
"in... | 2cc91060982cc8b777152e698d677cc2989bf263 |
valid | Bitmap.GetAllPixelColors | Return `ctypes.Array`, an iterable array of int values in argb. | uiautomation/uiautomation.py | def GetAllPixelColors(self) -> ctypes.Array:
"""
Return `ctypes.Array`, an iterable array of int values in argb.
"""
return self.GetPixelColorsOfRect(0, 0, self.Width, self.Height) | def GetAllPixelColors(self) -> ctypes.Array:
"""
Return `ctypes.Array`, an iterable array of int values in argb.
"""
return self.GetPixelColorsOfRect(0, 0, self.Width, self.Height) | [
"Return",
"ctypes",
".",
"Array",
"an",
"iterable",
"array",
"of",
"int",
"values",
"in",
"argb",
"."
] | yinkaisheng/Python-UIAutomation-for-Windows | python | https://github.com/yinkaisheng/Python-UIAutomation-for-Windows/blob/2cc91060982cc8b777152e698d677cc2989bf263/uiautomation/uiautomation.py#L3166-L3170 | [
"def",
"GetAllPixelColors",
"(",
"self",
")",
"->",
"ctypes",
".",
"Array",
":",
"return",
"self",
".",
"GetPixelColorsOfRect",
"(",
"0",
",",
"0",
",",
"self",
".",
"Width",
",",
"self",
".",
"Height",
")"
] | 2cc91060982cc8b777152e698d677cc2989bf263 |
valid | Bitmap.GetSubBitmap | x: int.
y: int.
width: int.
height: int.
Return `Bitmap`, a sub bitmap of the input rect. | uiautomation/uiautomation.py | def GetSubBitmap(self, x: int, y: int, width: int, height: int) -> 'Bitmap':
"""
x: int.
y: int.
width: int.
height: int.
Return `Bitmap`, a sub bitmap of the input rect.
"""
colors = self.GetPixelColorsOfRect(x, y, width, height)
bitmap = Bitmap(w... | def GetSubBitmap(self, x: int, y: int, width: int, height: int) -> 'Bitmap':
"""
x: int.
y: int.
width: int.
height: int.
Return `Bitmap`, a sub bitmap of the input rect.
"""
colors = self.GetPixelColorsOfRect(x, y, width, height)
bitmap = Bitmap(w... | [
"x",
":",
"int",
".",
"y",
":",
"int",
".",
"width",
":",
"int",
".",
"height",
":",
"int",
".",
"Return",
"Bitmap",
"a",
"sub",
"bitmap",
"of",
"the",
"input",
"rect",
"."
] | yinkaisheng/Python-UIAutomation-for-Windows | python | https://github.com/yinkaisheng/Python-UIAutomation-for-Windows/blob/2cc91060982cc8b777152e698d677cc2989bf263/uiautomation/uiautomation.py#L3172-L3183 | [
"def",
"GetSubBitmap",
"(",
"self",
",",
"x",
":",
"int",
",",
"y",
":",
"int",
",",
"width",
":",
"int",
",",
"height",
":",
"int",
")",
"->",
"'Bitmap'",
":",
"colors",
"=",
"self",
".",
"GetPixelColorsOfRect",
"(",
"x",
",",
"y",
",",
"width",
... | 2cc91060982cc8b777152e698d677cc2989bf263 |
valid | CustomNavigationPattern.Navigate | Call IUIAutomationCustomNavigationPattern::Navigate.
Get the next control in the specified direction within the logical UI tree.
direction: int, a value in class `NavigateDirection`.
Return `Control` subclass or None.
Refer https://docs.microsoft.com/en-us/windows/desktop/api/uiautomatio... | uiautomation/uiautomation.py | def Navigate(self, direction: int) -> 'Control':
"""
Call IUIAutomationCustomNavigationPattern::Navigate.
Get the next control in the specified direction within the logical UI tree.
direction: int, a value in class `NavigateDirection`.
Return `Control` subclass or None.
R... | def Navigate(self, direction: int) -> 'Control':
"""
Call IUIAutomationCustomNavigationPattern::Navigate.
Get the next control in the specified direction within the logical UI tree.
direction: int, a value in class `NavigateDirection`.
Return `Control` subclass or None.
R... | [
"Call",
"IUIAutomationCustomNavigationPattern",
"::",
"Navigate",
".",
"Get",
"the",
"next",
"control",
"in",
"the",
"specified",
"direction",
"within",
"the",
"logical",
"UI",
"tree",
".",
"direction",
":",
"int",
"a",
"value",
"in",
"class",
"NavigateDirection",... | yinkaisheng/Python-UIAutomation-for-Windows | python | https://github.com/yinkaisheng/Python-UIAutomation-for-Windows/blob/2cc91060982cc8b777152e698d677cc2989bf263/uiautomation/uiautomation.py#L3349-L3358 | [
"def",
"Navigate",
"(",
"self",
",",
"direction",
":",
"int",
")",
"->",
"'Control'",
":",
"ele",
"=",
"self",
".",
"pattern",
".",
"Navigate",
"(",
"direction",
")",
"return",
"Control",
".",
"CreateControlFromElement",
"(",
"ele",
")"
] | 2cc91060982cc8b777152e698d677cc2989bf263 |
valid | DockPattern.SetDockPosition | Call IUIAutomationDockPattern::SetDockPosition.
dockPosition: int, a value in class `DockPosition`.
waitTime: float.
Refer https://docs.microsoft.com/en-us/windows/desktop/api/uiautomationclient/nf-uiautomationclient-iuiautomationdockpattern-setdockposition | uiautomation/uiautomation.py | def SetDockPosition(self, dockPosition: int, waitTime: float = OPERATION_WAIT_TIME) -> int:
"""
Call IUIAutomationDockPattern::SetDockPosition.
dockPosition: int, a value in class `DockPosition`.
waitTime: float.
Refer https://docs.microsoft.com/en-us/windows/desktop/api/uiautoma... | def SetDockPosition(self, dockPosition: int, waitTime: float = OPERATION_WAIT_TIME) -> int:
"""
Call IUIAutomationDockPattern::SetDockPosition.
dockPosition: int, a value in class `DockPosition`.
waitTime: float.
Refer https://docs.microsoft.com/en-us/windows/desktop/api/uiautoma... | [
"Call",
"IUIAutomationDockPattern",
"::",
"SetDockPosition",
".",
"dockPosition",
":",
"int",
"a",
"value",
"in",
"class",
"DockPosition",
".",
"waitTime",
":",
"float",
".",
"Refer",
"https",
":",
"//",
"docs",
".",
"microsoft",
".",
"com",
"/",
"en",
"-",
... | yinkaisheng/Python-UIAutomation-for-Windows | python | https://github.com/yinkaisheng/Python-UIAutomation-for-Windows/blob/2cc91060982cc8b777152e698d677cc2989bf263/uiautomation/uiautomation.py#L3376-L3385 | [
"def",
"SetDockPosition",
"(",
"self",
",",
"dockPosition",
":",
"int",
",",
"waitTime",
":",
"float",
"=",
"OPERATION_WAIT_TIME",
")",
"->",
"int",
":",
"ret",
"=",
"self",
".",
"pattern",
".",
"SetDockPosition",
"(",
"dockPosition",
")",
"time",
".",
"sl... | 2cc91060982cc8b777152e698d677cc2989bf263 |
valid | DragPattern.GetGrabbedItems | Call IUIAutomationDragPattern::GetCurrentGrabbedItems.
Return list, a list of `Control` subclasses that represent the full set of items
that the user is dragging as part of a drag operation.
Refer https://docs.microsoft.com/en-us/windows/desktop/api/uiautomationclient/nf-uiautomatio... | uiautomation/uiautomation.py | def GetGrabbedItems(self) -> list:
"""
Call IUIAutomationDragPattern::GetCurrentGrabbedItems.
Return list, a list of `Control` subclasses that represent the full set of items
that the user is dragging as part of a drag operation.
Refer https://docs.microsoft.com/en-u... | def GetGrabbedItems(self) -> list:
"""
Call IUIAutomationDragPattern::GetCurrentGrabbedItems.
Return list, a list of `Control` subclasses that represent the full set of items
that the user is dragging as part of a drag operation.
Refer https://docs.microsoft.com/en-u... | [
"Call",
"IUIAutomationDragPattern",
"::",
"GetCurrentGrabbedItems",
".",
"Return",
"list",
"a",
"list",
"of",
"Control",
"subclasses",
"that",
"represent",
"the",
"full",
"set",
"of",
"items",
"that",
"the",
"user",
"is",
"dragging",
"as",
"part",
"of",
"a",
"... | yinkaisheng/Python-UIAutomation-for-Windows | python | https://github.com/yinkaisheng/Python-UIAutomation-for-Windows/blob/2cc91060982cc8b777152e698d677cc2989bf263/uiautomation/uiautomation.py#L3425-L3441 | [
"def",
"GetGrabbedItems",
"(",
"self",
")",
"->",
"list",
":",
"eleArray",
"=",
"self",
".",
"pattern",
".",
"GetCurrentGrabbedItems",
"(",
")",
"if",
"eleArray",
":",
"controls",
"=",
"[",
"]",
"for",
"i",
"in",
"range",
"(",
"eleArray",
".",
"Length",
... | 2cc91060982cc8b777152e698d677cc2989bf263 |
valid | ExpandCollapsePattern.Expand | Call IUIAutomationExpandCollapsePattern::Expand.
waitTime: float.
Return bool, True if succeed otherwise False.
Refer https://docs.microsoft.com/en-us/windows/desktop/api/uiautomationclient/nf-uiautomationclient-iuiautomationexpandcollapsepattern-collapse | uiautomation/uiautomation.py | def Expand(self, waitTime: float = OPERATION_WAIT_TIME) -> bool:
"""
Call IUIAutomationExpandCollapsePattern::Expand.
waitTime: float.
Return bool, True if succeed otherwise False.
Refer https://docs.microsoft.com/en-us/windows/desktop/api/uiautomationclient/nf-uiautomationclient... | def Expand(self, waitTime: float = OPERATION_WAIT_TIME) -> bool:
"""
Call IUIAutomationExpandCollapsePattern::Expand.
waitTime: float.
Return bool, True if succeed otherwise False.
Refer https://docs.microsoft.com/en-us/windows/desktop/api/uiautomationclient/nf-uiautomationclient... | [
"Call",
"IUIAutomationExpandCollapsePattern",
"::",
"Expand",
".",
"waitTime",
":",
"float",
".",
"Return",
"bool",
"True",
"if",
"succeed",
"otherwise",
"False",
".",
"Refer",
"https",
":",
"//",
"docs",
".",
"microsoft",
".",
"com",
"/",
"en",
"-",
"us",
... | yinkaisheng/Python-UIAutomation-for-Windows | python | https://github.com/yinkaisheng/Python-UIAutomation-for-Windows/blob/2cc91060982cc8b777152e698d677cc2989bf263/uiautomation/uiautomation.py#L3499-L3508 | [
"def",
"Expand",
"(",
"self",
",",
"waitTime",
":",
"float",
"=",
"OPERATION_WAIT_TIME",
")",
"->",
"bool",
":",
"ret",
"=",
"self",
".",
"pattern",
".",
"Expand",
"(",
")",
"==",
"S_OK",
"time",
".",
"sleep",
"(",
"waitTime",
")",
"return",
"ret"
] | 2cc91060982cc8b777152e698d677cc2989bf263 |
valid | ItemContainerPattern.FindItemByProperty | Call IUIAutomationItemContainerPattern::FindItemByProperty.
control: `Control` or its subclass.
propertyValue: COM VARIANT according to propertyId? todo.
propertyId: int, a value in class `PropertyId`.
Return `Control` subclass, a control within a containing element, based on a specified... | uiautomation/uiautomation.py | def FindItemByProperty(control: 'Control', propertyId: int, propertyValue) -> 'Control':
"""
Call IUIAutomationItemContainerPattern::FindItemByProperty.
control: `Control` or its subclass.
propertyValue: COM VARIANT according to propertyId? todo.
propertyId: int, a value in class... | def FindItemByProperty(control: 'Control', propertyId: int, propertyValue) -> 'Control':
"""
Call IUIAutomationItemContainerPattern::FindItemByProperty.
control: `Control` or its subclass.
propertyValue: COM VARIANT according to propertyId? todo.
propertyId: int, a value in class... | [
"Call",
"IUIAutomationItemContainerPattern",
"::",
"FindItemByProperty",
".",
"control",
":",
"Control",
"or",
"its",
"subclass",
".",
"propertyValue",
":",
"COM",
"VARIANT",
"according",
"to",
"propertyId?",
"todo",
".",
"propertyId",
":",
"int",
"a",
"value",
"i... | yinkaisheng/Python-UIAutomation-for-Windows | python | https://github.com/yinkaisheng/Python-UIAutomation-for-Windows/blob/2cc91060982cc8b777152e698d677cc2989bf263/uiautomation/uiautomation.py#L3623-L3633 | [
"def",
"FindItemByProperty",
"(",
"control",
":",
"'Control'",
",",
"propertyId",
":",
"int",
",",
"propertyValue",
")",
"->",
"'Control'",
":",
"ele",
"=",
"self",
".",
"pattern",
".",
"FindItemByProperty",
"(",
"control",
".",
"Element",
",",
"propertyId",
... | 2cc91060982cc8b777152e698d677cc2989bf263 |
valid | LegacyIAccessiblePattern.GetSelection | Call IUIAutomationLegacyIAccessiblePattern::GetCurrentSelection.
Return list, a list of `Control` subclasses,
the Microsoft Active Accessibility property that identifies the selected children of this element.
Refer https://docs.microsoft.com/en-us/windows/desktop/api/uiautomationcli... | uiautomation/uiautomation.py | def GetSelection(self) -> list:
"""
Call IUIAutomationLegacyIAccessiblePattern::GetCurrentSelection.
Return list, a list of `Control` subclasses,
the Microsoft Active Accessibility property that identifies the selected children of this element.
Refer https://docs.mic... | def GetSelection(self) -> list:
"""
Call IUIAutomationLegacyIAccessiblePattern::GetCurrentSelection.
Return list, a list of `Control` subclasses,
the Microsoft Active Accessibility property that identifies the selected children of this element.
Refer https://docs.mic... | [
"Call",
"IUIAutomationLegacyIAccessiblePattern",
"::",
"GetCurrentSelection",
".",
"Return",
"list",
"a",
"list",
"of",
"Control",
"subclasses",
"the",
"Microsoft",
"Active",
"Accessibility",
"property",
"that",
"identifies",
"the",
"selected",
"children",
"of",
"this",... | yinkaisheng/Python-UIAutomation-for-Windows | python | https://github.com/yinkaisheng/Python-UIAutomation-for-Windows/blob/2cc91060982cc8b777152e698d677cc2989bf263/uiautomation/uiautomation.py#L3743-L3759 | [
"def",
"GetSelection",
"(",
"self",
")",
"->",
"list",
":",
"eleArray",
"=",
"self",
".",
"pattern",
".",
"GetCurrentSelection",
"(",
")",
"if",
"eleArray",
":",
"controls",
"=",
"[",
"]",
"for",
"i",
"in",
"range",
"(",
"eleArray",
".",
"Length",
")",... | 2cc91060982cc8b777152e698d677cc2989bf263 |
valid | LegacyIAccessiblePattern.SetValue | Call IUIAutomationLegacyIAccessiblePattern::SetValue.
Set the Microsoft Active Accessibility value property for the element.
value: str.
waitTime: float.
Return bool, True if succeed otherwise False.
Refer https://docs.microsoft.com/en-us/windows/desktop/api/uiautomationclient/nf... | uiautomation/uiautomation.py | def SetValue(self, value: str, waitTime: float = OPERATION_WAIT_TIME) -> bool:
"""
Call IUIAutomationLegacyIAccessiblePattern::SetValue.
Set the Microsoft Active Accessibility value property for the element.
value: str.
waitTime: float.
Return bool, True if succeed otherw... | def SetValue(self, value: str, waitTime: float = OPERATION_WAIT_TIME) -> bool:
"""
Call IUIAutomationLegacyIAccessiblePattern::SetValue.
Set the Microsoft Active Accessibility value property for the element.
value: str.
waitTime: float.
Return bool, True if succeed otherw... | [
"Call",
"IUIAutomationLegacyIAccessiblePattern",
"::",
"SetValue",
".",
"Set",
"the",
"Microsoft",
"Active",
"Accessibility",
"value",
"property",
"for",
"the",
"element",
".",
"value",
":",
"str",
".",
"waitTime",
":",
"float",
".",
"Return",
"bool",
"True",
"i... | yinkaisheng/Python-UIAutomation-for-Windows | python | https://github.com/yinkaisheng/Python-UIAutomation-for-Windows/blob/2cc91060982cc8b777152e698d677cc2989bf263/uiautomation/uiautomation.py#L3783-L3794 | [
"def",
"SetValue",
"(",
"self",
",",
"value",
":",
"str",
",",
"waitTime",
":",
"float",
"=",
"OPERATION_WAIT_TIME",
")",
"->",
"bool",
":",
"ret",
"=",
"self",
".",
"pattern",
".",
"SetValue",
"(",
"value",
")",
"==",
"S_OK",
"time",
".",
"sleep",
"... | 2cc91060982cc8b777152e698d677cc2989bf263 |
valid | MultipleViewPattern.SetView | Call IUIAutomationMultipleViewPattern::SetCurrentView.
Set the view of the control.
view: int, the control-specific view identifier.
Return bool, True if succeed otherwise False.
Refer https://docs.microsoft.com/en-us/windows/desktop/api/uiautomationclient/nf-uiautomationclient-iuiautoma... | uiautomation/uiautomation.py | def SetView(self, view: int) -> bool:
"""
Call IUIAutomationMultipleViewPattern::SetCurrentView.
Set the view of the control.
view: int, the control-specific view identifier.
Return bool, True if succeed otherwise False.
Refer https://docs.microsoft.com/en-us/windows/desk... | def SetView(self, view: int) -> bool:
"""
Call IUIAutomationMultipleViewPattern::SetCurrentView.
Set the view of the control.
view: int, the control-specific view identifier.
Return bool, True if succeed otherwise False.
Refer https://docs.microsoft.com/en-us/windows/desk... | [
"Call",
"IUIAutomationMultipleViewPattern",
"::",
"SetCurrentView",
".",
"Set",
"the",
"view",
"of",
"the",
"control",
".",
"view",
":",
"int",
"the",
"control",
"-",
"specific",
"view",
"identifier",
".",
"Return",
"bool",
"True",
"if",
"succeed",
"otherwise",
... | yinkaisheng/Python-UIAutomation-for-Windows | python | https://github.com/yinkaisheng/Python-UIAutomation-for-Windows/blob/2cc91060982cc8b777152e698d677cc2989bf263/uiautomation/uiautomation.py#L3829-L3837 | [
"def",
"SetView",
"(",
"self",
",",
"view",
":",
"int",
")",
"->",
"bool",
":",
"return",
"self",
".",
"pattern",
".",
"SetCurrentView",
"(",
"view",
")",
"==",
"S_OK"
] | 2cc91060982cc8b777152e698d677cc2989bf263 |
valid | ScrollPattern.Scroll | Call IUIAutomationScrollPattern::Scroll.
Scroll the visible region of the content area horizontally and vertically.
horizontalAmount: int, a value in ScrollAmount.
verticalAmount: int, a value in ScrollAmount.
waitTime: float.
Return bool, True if succeed otherwise False.
... | uiautomation/uiautomation.py | def Scroll(self, horizontalAmount: int, verticalAmount: int, waitTime: float = OPERATION_WAIT_TIME) -> bool:
"""
Call IUIAutomationScrollPattern::Scroll.
Scroll the visible region of the content area horizontally and vertically.
horizontalAmount: int, a value in ScrollAmount.
ver... | def Scroll(self, horizontalAmount: int, verticalAmount: int, waitTime: float = OPERATION_WAIT_TIME) -> bool:
"""
Call IUIAutomationScrollPattern::Scroll.
Scroll the visible region of the content area horizontally and vertically.
horizontalAmount: int, a value in ScrollAmount.
ver... | [
"Call",
"IUIAutomationScrollPattern",
"::",
"Scroll",
".",
"Scroll",
"the",
"visible",
"region",
"of",
"the",
"content",
"area",
"horizontally",
"and",
"vertically",
".",
"horizontalAmount",
":",
"int",
"a",
"value",
"in",
"ScrollAmount",
".",
"verticalAmount",
":... | yinkaisheng/Python-UIAutomation-for-Windows | python | https://github.com/yinkaisheng/Python-UIAutomation-for-Windows/blob/2cc91060982cc8b777152e698d677cc2989bf263/uiautomation/uiautomation.py#L4018-L4030 | [
"def",
"Scroll",
"(",
"self",
",",
"horizontalAmount",
":",
"int",
",",
"verticalAmount",
":",
"int",
",",
"waitTime",
":",
"float",
"=",
"OPERATION_WAIT_TIME",
")",
"->",
"bool",
":",
"ret",
"=",
"self",
".",
"pattern",
".",
"Scroll",
"(",
"horizontalAmou... | 2cc91060982cc8b777152e698d677cc2989bf263 |
valid | ScrollPattern.SetScrollPercent | Call IUIAutomationScrollPattern::SetScrollPercent.
Set the horizontal and vertical scroll positions as a percentage of the total content area within the UI Automation element.
horizontalPercent: float or int, a value in [0, 100] or ScrollPattern.NoScrollValue(-1) if no scroll.
verticalPercent: f... | uiautomation/uiautomation.py | def SetScrollPercent(self, horizontalPercent: float, verticalPercent: float, waitTime: float = OPERATION_WAIT_TIME) -> bool:
"""
Call IUIAutomationScrollPattern::SetScrollPercent.
Set the horizontal and vertical scroll positions as a percentage of the total content area within the UI Automation ... | def SetScrollPercent(self, horizontalPercent: float, verticalPercent: float, waitTime: float = OPERATION_WAIT_TIME) -> bool:
"""
Call IUIAutomationScrollPattern::SetScrollPercent.
Set the horizontal and vertical scroll positions as a percentage of the total content area within the UI Automation ... | [
"Call",
"IUIAutomationScrollPattern",
"::",
"SetScrollPercent",
".",
"Set",
"the",
"horizontal",
"and",
"vertical",
"scroll",
"positions",
"as",
"a",
"percentage",
"of",
"the",
"total",
"content",
"area",
"within",
"the",
"UI",
"Automation",
"element",
".",
"horiz... | yinkaisheng/Python-UIAutomation-for-Windows | python | https://github.com/yinkaisheng/Python-UIAutomation-for-Windows/blob/2cc91060982cc8b777152e698d677cc2989bf263/uiautomation/uiautomation.py#L4032-L4044 | [
"def",
"SetScrollPercent",
"(",
"self",
",",
"horizontalPercent",
":",
"float",
",",
"verticalPercent",
":",
"float",
",",
"waitTime",
":",
"float",
"=",
"OPERATION_WAIT_TIME",
")",
"->",
"bool",
":",
"ret",
"=",
"self",
".",
"pattern",
".",
"SetScrollPercent"... | 2cc91060982cc8b777152e698d677cc2989bf263 |
valid | SpreadsheetItemPattern.GetAnnotationObjects | Call IUIAutomationSelectionPattern::GetCurrentAnnotationObjects.
Return list, a list of `Control` subclasses representing the annotations associated with this spreadsheet cell.
Refer https://docs.microsoft.com/en-us/windows/desktop/api/uiautomationclient/nf-uiautomationclient-iuiautomationspreadsheetite... | uiautomation/uiautomation.py | def GetAnnotationObjects(self) -> list:
"""
Call IUIAutomationSelectionPattern::GetCurrentAnnotationObjects.
Return list, a list of `Control` subclasses representing the annotations associated with this spreadsheet cell.
Refer https://docs.microsoft.com/en-us/windows/desktop/api/uiautoma... | def GetAnnotationObjects(self) -> list:
"""
Call IUIAutomationSelectionPattern::GetCurrentAnnotationObjects.
Return list, a list of `Control` subclasses representing the annotations associated with this spreadsheet cell.
Refer https://docs.microsoft.com/en-us/windows/desktop/api/uiautoma... | [
"Call",
"IUIAutomationSelectionPattern",
"::",
"GetCurrentAnnotationObjects",
".",
"Return",
"list",
"a",
"list",
"of",
"Control",
"subclasses",
"representing",
"the",
"annotations",
"associated",
"with",
"this",
"spreadsheet",
"cell",
".",
"Refer",
"https",
":",
"//"... | yinkaisheng/Python-UIAutomation-for-Windows | python | https://github.com/yinkaisheng/Python-UIAutomation-for-Windows/blob/2cc91060982cc8b777152e698d677cc2989bf263/uiautomation/uiautomation.py#L4168-L4183 | [
"def",
"GetAnnotationObjects",
"(",
"self",
")",
"->",
"list",
":",
"eleArray",
"=",
"self",
".",
"pattern",
".",
"GetCurrentAnnotationObjects",
"(",
")",
"if",
"eleArray",
":",
"controls",
"=",
"[",
"]",
"for",
"i",
"in",
"range",
"(",
"eleArray",
".",
... | 2cc91060982cc8b777152e698d677cc2989bf263 |
valid | SpreadsheetPattern.GetItemByName | Call IUIAutomationSpreadsheetPattern::GetItemByName.
name: str.
Return `Control` subclass or None, represents the spreadsheet cell that has the specified name..
Refer https://docs.microsoft.com/en-us/windows/desktop/api/uiautomationclient/nf-uiautomationclient-iuiautomationspreadsheetpattern-get... | uiautomation/uiautomation.py | def GetItemByName(self, name: str) -> 'Control':
"""
Call IUIAutomationSpreadsheetPattern::GetItemByName.
name: str.
Return `Control` subclass or None, represents the spreadsheet cell that has the specified name..
Refer https://docs.microsoft.com/en-us/windows/desktop/api/uiautom... | def GetItemByName(self, name: str) -> 'Control':
"""
Call IUIAutomationSpreadsheetPattern::GetItemByName.
name: str.
Return `Control` subclass or None, represents the spreadsheet cell that has the specified name..
Refer https://docs.microsoft.com/en-us/windows/desktop/api/uiautom... | [
"Call",
"IUIAutomationSpreadsheetPattern",
"::",
"GetItemByName",
".",
"name",
":",
"str",
".",
"Return",
"Control",
"subclass",
"or",
"None",
"represents",
"the",
"spreadsheet",
"cell",
"that",
"has",
"the",
"specified",
"name",
"..",
"Refer",
"https",
":",
"//... | yinkaisheng/Python-UIAutomation-for-Windows | python | https://github.com/yinkaisheng/Python-UIAutomation-for-Windows/blob/2cc91060982cc8b777152e698d677cc2989bf263/uiautomation/uiautomation.py#L4200-L4208 | [
"def",
"GetItemByName",
"(",
"self",
",",
"name",
":",
"str",
")",
"->",
"'Control'",
":",
"ele",
"=",
"self",
".",
"pattern",
".",
"GetItemByName",
"(",
"name",
")",
"return",
"Control",
".",
"CreateControlFromElement",
"(",
"element",
"=",
"ele",
")"
] | 2cc91060982cc8b777152e698d677cc2989bf263 |
valid | TableItemPattern.GetColumnHeaderItems | Call IUIAutomationTableItemPattern::GetCurrentColumnHeaderItems.
Return list, a list of `Control` subclasses, the column headers associated with a table item or cell.
Refer https://docs.microsoft.com/en-us/windows/desktop/api/uiautomationclient/nf-uiautomationclient-iuiautomationtableitempattern-getcurr... | uiautomation/uiautomation.py | def GetColumnHeaderItems(self) -> list:
"""
Call IUIAutomationTableItemPattern::GetCurrentColumnHeaderItems.
Return list, a list of `Control` subclasses, the column headers associated with a table item or cell.
Refer https://docs.microsoft.com/en-us/windows/desktop/api/uiautomationclient... | def GetColumnHeaderItems(self) -> list:
"""
Call IUIAutomationTableItemPattern::GetCurrentColumnHeaderItems.
Return list, a list of `Control` subclasses, the column headers associated with a table item or cell.
Refer https://docs.microsoft.com/en-us/windows/desktop/api/uiautomationclient... | [
"Call",
"IUIAutomationTableItemPattern",
"::",
"GetCurrentColumnHeaderItems",
".",
"Return",
"list",
"a",
"list",
"of",
"Control",
"subclasses",
"the",
"column",
"headers",
"associated",
"with",
"a",
"table",
"item",
"or",
"cell",
".",
"Refer",
"https",
":",
"//",... | yinkaisheng/Python-UIAutomation-for-Windows | python | https://github.com/yinkaisheng/Python-UIAutomation-for-Windows/blob/2cc91060982cc8b777152e698d677cc2989bf263/uiautomation/uiautomation.py#L4306-L4321 | [
"def",
"GetColumnHeaderItems",
"(",
"self",
")",
"->",
"list",
":",
"eleArray",
"=",
"self",
".",
"pattern",
".",
"GetCurrentColumnHeaderItems",
"(",
")",
"if",
"eleArray",
":",
"controls",
"=",
"[",
"]",
"for",
"i",
"in",
"range",
"(",
"eleArray",
".",
... | 2cc91060982cc8b777152e698d677cc2989bf263 |
valid | TableItemPattern.GetRowHeaderItems | Call IUIAutomationTableItemPattern::GetCurrentRowHeaderItems.
Return list, a list of `Control` subclasses, the row headers associated with a table item or cell.
Refer https://docs.microsoft.com/en-us/windows/desktop/api/uiautomationclient/nf-uiautomationclient-iuiautomationtableitempattern-getcurrentrow... | uiautomation/uiautomation.py | def GetRowHeaderItems(self) -> list:
"""
Call IUIAutomationTableItemPattern::GetCurrentRowHeaderItems.
Return list, a list of `Control` subclasses, the row headers associated with a table item or cell.
Refer https://docs.microsoft.com/en-us/windows/desktop/api/uiautomationclient/nf-uiaut... | def GetRowHeaderItems(self) -> list:
"""
Call IUIAutomationTableItemPattern::GetCurrentRowHeaderItems.
Return list, a list of `Control` subclasses, the row headers associated with a table item or cell.
Refer https://docs.microsoft.com/en-us/windows/desktop/api/uiautomationclient/nf-uiaut... | [
"Call",
"IUIAutomationTableItemPattern",
"::",
"GetCurrentRowHeaderItems",
".",
"Return",
"list",
"a",
"list",
"of",
"Control",
"subclasses",
"the",
"row",
"headers",
"associated",
"with",
"a",
"table",
"item",
"or",
"cell",
".",
"Refer",
"https",
":",
"//",
"do... | yinkaisheng/Python-UIAutomation-for-Windows | python | https://github.com/yinkaisheng/Python-UIAutomation-for-Windows/blob/2cc91060982cc8b777152e698d677cc2989bf263/uiautomation/uiautomation.py#L4323-L4338 | [
"def",
"GetRowHeaderItems",
"(",
"self",
")",
"->",
"list",
":",
"eleArray",
"=",
"self",
".",
"pattern",
".",
"GetCurrentRowHeaderItems",
"(",
")",
"if",
"eleArray",
":",
"controls",
"=",
"[",
"]",
"for",
"i",
"in",
"range",
"(",
"eleArray",
".",
"Lengt... | 2cc91060982cc8b777152e698d677cc2989bf263 |
valid | TablePattern.GetColumnHeaders | Call IUIAutomationTablePattern::GetCurrentColumnHeaders.
Return list, a list of `Control` subclasses, representing all the column headers in a table..
Refer https://docs.microsoft.com/en-us/windows/desktop/api/uiautomationclient/nf-uiautomationclient-iuiautomationtablepattern-getcurrentcolumnheaders | uiautomation/uiautomation.py | def GetColumnHeaders(self) -> list:
"""
Call IUIAutomationTablePattern::GetCurrentColumnHeaders.
Return list, a list of `Control` subclasses, representing all the column headers in a table..
Refer https://docs.microsoft.com/en-us/windows/desktop/api/uiautomationclient/nf-uiautomationclie... | def GetColumnHeaders(self) -> list:
"""
Call IUIAutomationTablePattern::GetCurrentColumnHeaders.
Return list, a list of `Control` subclasses, representing all the column headers in a table..
Refer https://docs.microsoft.com/en-us/windows/desktop/api/uiautomationclient/nf-uiautomationclie... | [
"Call",
"IUIAutomationTablePattern",
"::",
"GetCurrentColumnHeaders",
".",
"Return",
"list",
"a",
"list",
"of",
"Control",
"subclasses",
"representing",
"all",
"the",
"column",
"headers",
"in",
"a",
"table",
"..",
"Refer",
"https",
":",
"//",
"docs",
".",
"micro... | yinkaisheng/Python-UIAutomation-for-Windows | python | https://github.com/yinkaisheng/Python-UIAutomation-for-Windows/blob/2cc91060982cc8b777152e698d677cc2989bf263/uiautomation/uiautomation.py#L4356-L4371 | [
"def",
"GetColumnHeaders",
"(",
"self",
")",
"->",
"list",
":",
"eleArray",
"=",
"self",
".",
"pattern",
".",
"GetCurrentColumnHeaders",
"(",
")",
"if",
"eleArray",
":",
"controls",
"=",
"[",
"]",
"for",
"i",
"in",
"range",
"(",
"eleArray",
".",
"Length"... | 2cc91060982cc8b777152e698d677cc2989bf263 |
valid | TablePattern.GetRowHeaders | Call IUIAutomationTablePattern::GetCurrentRowHeaders.
Return list, a list of `Control` subclasses, representing all the row headers in a table.
Refer https://docs.microsoft.com/en-us/windows/desktop/api/uiautomationclient/nf-uiautomationclient-iuiautomationtablepattern-getcurrentrowheaders | uiautomation/uiautomation.py | def GetRowHeaders(self) -> list:
"""
Call IUIAutomationTablePattern::GetCurrentRowHeaders.
Return list, a list of `Control` subclasses, representing all the row headers in a table.
Refer https://docs.microsoft.com/en-us/windows/desktop/api/uiautomationclient/nf-uiautomationclient-iuiauto... | def GetRowHeaders(self) -> list:
"""
Call IUIAutomationTablePattern::GetCurrentRowHeaders.
Return list, a list of `Control` subclasses, representing all the row headers in a table.
Refer https://docs.microsoft.com/en-us/windows/desktop/api/uiautomationclient/nf-uiautomationclient-iuiauto... | [
"Call",
"IUIAutomationTablePattern",
"::",
"GetCurrentRowHeaders",
".",
"Return",
"list",
"a",
"list",
"of",
"Control",
"subclasses",
"representing",
"all",
"the",
"row",
"headers",
"in",
"a",
"table",
".",
"Refer",
"https",
":",
"//",
"docs",
".",
"microsoft",
... | yinkaisheng/Python-UIAutomation-for-Windows | python | https://github.com/yinkaisheng/Python-UIAutomation-for-Windows/blob/2cc91060982cc8b777152e698d677cc2989bf263/uiautomation/uiautomation.py#L4373-L4388 | [
"def",
"GetRowHeaders",
"(",
"self",
")",
"->",
"list",
":",
"eleArray",
"=",
"self",
".",
"pattern",
".",
"GetCurrentRowHeaders",
"(",
")",
"if",
"eleArray",
":",
"controls",
"=",
"[",
"]",
"for",
"i",
"in",
"range",
"(",
"eleArray",
".",
"Length",
")... | 2cc91060982cc8b777152e698d677cc2989bf263 |
valid | TextRange.Compare | Call IUIAutomationTextRange::Compare.
textRange: `TextRange`.
Return bool, specifies whether this text range has the same endpoints as another text range.
Refer https://docs.microsoft.com/en-us/windows/desktop/api/uiautomationclient/nf-uiautomationclient-iuiautomationtextrange-compare | uiautomation/uiautomation.py | def Compare(self, textRange: 'TextRange') -> bool:
"""
Call IUIAutomationTextRange::Compare.
textRange: `TextRange`.
Return bool, specifies whether this text range has the same endpoints as another text range.
Refer https://docs.microsoft.com/en-us/windows/desktop/api/uiautomatio... | def Compare(self, textRange: 'TextRange') -> bool:
"""
Call IUIAutomationTextRange::Compare.
textRange: `TextRange`.
Return bool, specifies whether this text range has the same endpoints as another text range.
Refer https://docs.microsoft.com/en-us/windows/desktop/api/uiautomatio... | [
"Call",
"IUIAutomationTextRange",
"::",
"Compare",
".",
"textRange",
":",
"TextRange",
".",
"Return",
"bool",
"specifies",
"whether",
"this",
"text",
"range",
"has",
"the",
"same",
"endpoints",
"as",
"another",
"text",
"range",
".",
"Refer",
"https",
":",
"//"... | yinkaisheng/Python-UIAutomation-for-Windows | python | https://github.com/yinkaisheng/Python-UIAutomation-for-Windows/blob/2cc91060982cc8b777152e698d677cc2989bf263/uiautomation/uiautomation.py#L4418-L4425 | [
"def",
"Compare",
"(",
"self",
",",
"textRange",
":",
"'TextRange'",
")",
"->",
"bool",
":",
"return",
"bool",
"(",
"self",
".",
"textRange",
".",
"Compare",
"(",
"textRange",
".",
"textRange",
")",
")"
] | 2cc91060982cc8b777152e698d677cc2989bf263 |
valid | TextRange.CompareEndpoints | Call IUIAutomationTextRange::CompareEndpoints.
srcEndPoint: int, a value in class `TextPatternRangeEndpoint`.
textRange: `TextRange`.
targetEndPoint: int, a value in class `TextPatternRangeEndpoint`.
Return int, a negative value if the caller's endpoint occurs earlier in the text than th... | uiautomation/uiautomation.py | def CompareEndpoints(self, srcEndPoint: int, textRange: 'TextRange', targetEndPoint: int) -> int:
"""
Call IUIAutomationTextRange::CompareEndpoints.
srcEndPoint: int, a value in class `TextPatternRangeEndpoint`.
textRange: `TextRange`.
targetEndPoint: int, a value in class `TextP... | def CompareEndpoints(self, srcEndPoint: int, textRange: 'TextRange', targetEndPoint: int) -> int:
"""
Call IUIAutomationTextRange::CompareEndpoints.
srcEndPoint: int, a value in class `TextPatternRangeEndpoint`.
textRange: `TextRange`.
targetEndPoint: int, a value in class `TextP... | [
"Call",
"IUIAutomationTextRange",
"::",
"CompareEndpoints",
".",
"srcEndPoint",
":",
"int",
"a",
"value",
"in",
"class",
"TextPatternRangeEndpoint",
".",
"textRange",
":",
"TextRange",
".",
"targetEndPoint",
":",
"int",
"a",
"value",
"in",
"class",
"TextPatternRange... | yinkaisheng/Python-UIAutomation-for-Windows | python | https://github.com/yinkaisheng/Python-UIAutomation-for-Windows/blob/2cc91060982cc8b777152e698d677cc2989bf263/uiautomation/uiautomation.py#L4427-L4438 | [
"def",
"CompareEndpoints",
"(",
"self",
",",
"srcEndPoint",
":",
"int",
",",
"textRange",
":",
"'TextRange'",
",",
"targetEndPoint",
":",
"int",
")",
"->",
"int",
":",
"return",
"self",
".",
"textRange",
".",
"CompareEndpoints",
"(",
"srcEndPoint",
",",
"tex... | 2cc91060982cc8b777152e698d677cc2989bf263 |
valid | TextRange.FindAttribute | Call IUIAutomationTextRange::FindAttribute.
textAttributeID: int, a value in class `TextAttributeId`.
val: COM VARIANT according to textAttributeId? todo.
backward: bool, True if the last occurring text range should be returned instead of the first; otherwise False.
return `TextRange` or... | uiautomation/uiautomation.py | def FindAttribute(self, textAttributeId: int, val, backward: bool) -> 'TextRange':
"""
Call IUIAutomationTextRange::FindAttribute.
textAttributeID: int, a value in class `TextAttributeId`.
val: COM VARIANT according to textAttributeId? todo.
backward: bool, True if the last occur... | def FindAttribute(self, textAttributeId: int, val, backward: bool) -> 'TextRange':
"""
Call IUIAutomationTextRange::FindAttribute.
textAttributeID: int, a value in class `TextAttributeId`.
val: COM VARIANT according to textAttributeId? todo.
backward: bool, True if the last occur... | [
"Call",
"IUIAutomationTextRange",
"::",
"FindAttribute",
".",
"textAttributeID",
":",
"int",
"a",
"value",
"in",
"class",
"TextAttributeId",
".",
"val",
":",
"COM",
"VARIANT",
"according",
"to",
"textAttributeId?",
"todo",
".",
"backward",
":",
"bool",
"True",
"... | yinkaisheng/Python-UIAutomation-for-Windows | python | https://github.com/yinkaisheng/Python-UIAutomation-for-Windows/blob/2cc91060982cc8b777152e698d677cc2989bf263/uiautomation/uiautomation.py#L4454-L4465 | [
"def",
"FindAttribute",
"(",
"self",
",",
"textAttributeId",
":",
"int",
",",
"val",
",",
"backward",
":",
"bool",
")",
"->",
"'TextRange'",
":",
"textRange",
"=",
"self",
".",
"textRange",
".",
"FindAttribute",
"(",
"textAttributeId",
",",
"val",
",",
"in... | 2cc91060982cc8b777152e698d677cc2989bf263 |
valid | TextRange.FindText | Call IUIAutomationTextRange::FindText.
text: str,
backward: bool, True if the last occurring text range should be returned instead of the first; otherwise False.
ignoreCase: bool, True if case should be ignored; otherwise False.
return `TextRange` or None, a text range subset that contai... | uiautomation/uiautomation.py | def FindText(self, text: str, backward: bool, ignoreCase: bool) -> 'TextRange':
"""
Call IUIAutomationTextRange::FindText.
text: str,
backward: bool, True if the last occurring text range should be returned instead of the first; otherwise False.
ignoreCase: bool, True if case sho... | def FindText(self, text: str, backward: bool, ignoreCase: bool) -> 'TextRange':
"""
Call IUIAutomationTextRange::FindText.
text: str,
backward: bool, True if the last occurring text range should be returned instead of the first; otherwise False.
ignoreCase: bool, True if case sho... | [
"Call",
"IUIAutomationTextRange",
"::",
"FindText",
".",
"text",
":",
"str",
"backward",
":",
"bool",
"True",
"if",
"the",
"last",
"occurring",
"text",
"range",
"should",
"be",
"returned",
"instead",
"of",
"the",
"first",
";",
"otherwise",
"False",
".",
"ign... | yinkaisheng/Python-UIAutomation-for-Windows | python | https://github.com/yinkaisheng/Python-UIAutomation-for-Windows/blob/2cc91060982cc8b777152e698d677cc2989bf263/uiautomation/uiautomation.py#L4467-L4478 | [
"def",
"FindText",
"(",
"self",
",",
"text",
":",
"str",
",",
"backward",
":",
"bool",
",",
"ignoreCase",
":",
"bool",
")",
"->",
"'TextRange'",
":",
"textRange",
"=",
"self",
".",
"textRange",
".",
"FindText",
"(",
"text",
",",
"int",
"(",
"backward",... | 2cc91060982cc8b777152e698d677cc2989bf263 |
valid | TextRange.GetAttributeValue | Call IUIAutomationTextRange::GetAttributeValue.
textAttributeId: int, a value in class `TextAttributeId`.
Return `ctypes.POINTER(comtypes.IUnknown)` or None, the value of the specified text attribute across the entire text range, todo.
Refer https://docs.microsoft.com/en-us/windows/desktop/api/u... | uiautomation/uiautomation.py | def GetAttributeValue(self, textAttributeId: int) -> ctypes.POINTER(comtypes.IUnknown):
"""
Call IUIAutomationTextRange::GetAttributeValue.
textAttributeId: int, a value in class `TextAttributeId`.
Return `ctypes.POINTER(comtypes.IUnknown)` or None, the value of the specified text attrib... | def GetAttributeValue(self, textAttributeId: int) -> ctypes.POINTER(comtypes.IUnknown):
"""
Call IUIAutomationTextRange::GetAttributeValue.
textAttributeId: int, a value in class `TextAttributeId`.
Return `ctypes.POINTER(comtypes.IUnknown)` or None, the value of the specified text attrib... | [
"Call",
"IUIAutomationTextRange",
"::",
"GetAttributeValue",
".",
"textAttributeId",
":",
"int",
"a",
"value",
"in",
"class",
"TextAttributeId",
".",
"Return",
"ctypes",
".",
"POINTER",
"(",
"comtypes",
".",
"IUnknown",
")",
"or",
"None",
"the",
"value",
"of",
... | yinkaisheng/Python-UIAutomation-for-Windows | python | https://github.com/yinkaisheng/Python-UIAutomation-for-Windows/blob/2cc91060982cc8b777152e698d677cc2989bf263/uiautomation/uiautomation.py#L4480-L4487 | [
"def",
"GetAttributeValue",
"(",
"self",
",",
"textAttributeId",
":",
"int",
")",
"->",
"ctypes",
".",
"POINTER",
"(",
"comtypes",
".",
"IUnknown",
")",
":",
"return",
"self",
".",
"textRange",
".",
"GetAttributeValue",
"(",
"textAttributeId",
")"
] | 2cc91060982cc8b777152e698d677cc2989bf263 |
valid | TextRange.GetBoundingRectangles | Call IUIAutomationTextRange::GetBoundingRectangles.
textAttributeId: int, a value in class `TextAttributeId`.
Return list, a list of `Rect`.
bounding rectangles for each fully or partially visible line of text in a text range..
Refer https://docs.microsoft.com/en-us/windows/desktop/a... | uiautomation/uiautomation.py | def GetBoundingRectangles(self) -> list:
"""
Call IUIAutomationTextRange::GetBoundingRectangles.
textAttributeId: int, a value in class `TextAttributeId`.
Return list, a list of `Rect`.
bounding rectangles for each fully or partially visible line of text in a text range..
... | def GetBoundingRectangles(self) -> list:
"""
Call IUIAutomationTextRange::GetBoundingRectangles.
textAttributeId: int, a value in class `TextAttributeId`.
Return list, a list of `Rect`.
bounding rectangles for each fully or partially visible line of text in a text range..
... | [
"Call",
"IUIAutomationTextRange",
"::",
"GetBoundingRectangles",
".",
"textAttributeId",
":",
"int",
"a",
"value",
"in",
"class",
"TextAttributeId",
".",
"Return",
"list",
"a",
"list",
"of",
"Rect",
".",
"bounding",
"rectangles",
"for",
"each",
"fully",
"or",
"p... | yinkaisheng/Python-UIAutomation-for-Windows | python | https://github.com/yinkaisheng/Python-UIAutomation-for-Windows/blob/2cc91060982cc8b777152e698d677cc2989bf263/uiautomation/uiautomation.py#L4489-L4506 | [
"def",
"GetBoundingRectangles",
"(",
"self",
")",
"->",
"list",
":",
"floats",
"=",
"self",
".",
"textRange",
".",
"GetBoundingRectangles",
"(",
")",
"rects",
"=",
"[",
"]",
"for",
"i",
"in",
"range",
"(",
"len",
"(",
"floats",
")",
"//",
"4",
")",
"... | 2cc91060982cc8b777152e698d677cc2989bf263 |
valid | TextRange.GetChildren | Call IUIAutomationTextRange::GetChildren.
textAttributeId: int, a value in class `TextAttributeId`.
Return list, a list of `Control` subclasses, embedded objects that fall within the text range..
Refer https://docs.microsoft.com/en-us/windows/desktop/api/uiautomationclient/nf-uiautomationclient-... | uiautomation/uiautomation.py | def GetChildren(self) -> list:
"""
Call IUIAutomationTextRange::GetChildren.
textAttributeId: int, a value in class `TextAttributeId`.
Return list, a list of `Control` subclasses, embedded objects that fall within the text range..
Refer https://docs.microsoft.com/en-us/windows/de... | def GetChildren(self) -> list:
"""
Call IUIAutomationTextRange::GetChildren.
textAttributeId: int, a value in class `TextAttributeId`.
Return list, a list of `Control` subclasses, embedded objects that fall within the text range..
Refer https://docs.microsoft.com/en-us/windows/de... | [
"Call",
"IUIAutomationTextRange",
"::",
"GetChildren",
".",
"textAttributeId",
":",
"int",
"a",
"value",
"in",
"class",
"TextAttributeId",
".",
"Return",
"list",
"a",
"list",
"of",
"Control",
"subclasses",
"embedded",
"objects",
"that",
"fall",
"within",
"the",
... | yinkaisheng/Python-UIAutomation-for-Windows | python | https://github.com/yinkaisheng/Python-UIAutomation-for-Windows/blob/2cc91060982cc8b777152e698d677cc2989bf263/uiautomation/uiautomation.py#L4508-L4524 | [
"def",
"GetChildren",
"(",
"self",
")",
"->",
"list",
":",
"eleArray",
"=",
"self",
".",
"textRange",
".",
"GetChildren",
"(",
")",
"if",
"eleArray",
":",
"controls",
"=",
"[",
"]",
"for",
"i",
"in",
"range",
"(",
"eleArray",
".",
"Length",
")",
":",... | 2cc91060982cc8b777152e698d677cc2989bf263 |
valid | TextRange.Move | Call IUIAutomationTextRange::Move.
Move the text range forward or backward by the specified number of text units.
unit: int, a value in class `TextUnit`.
count: int, the number of text units to move.
A positive value moves the text range forward.
A negative value mo... | uiautomation/uiautomation.py | def Move(self, unit: int, count: int, waitTime: float = OPERATION_WAIT_TIME) -> int:
"""
Call IUIAutomationTextRange::Move.
Move the text range forward or backward by the specified number of text units.
unit: int, a value in class `TextUnit`.
count: int, the number of text units ... | def Move(self, unit: int, count: int, waitTime: float = OPERATION_WAIT_TIME) -> int:
"""
Call IUIAutomationTextRange::Move.
Move the text range forward or backward by the specified number of text units.
unit: int, a value in class `TextUnit`.
count: int, the number of text units ... | [
"Call",
"IUIAutomationTextRange",
"::",
"Move",
".",
"Move",
"the",
"text",
"range",
"forward",
"or",
"backward",
"by",
"the",
"specified",
"number",
"of",
"text",
"units",
".",
"unit",
":",
"int",
"a",
"value",
"in",
"class",
"TextUnit",
".",
"count",
":"... | yinkaisheng/Python-UIAutomation-for-Windows | python | https://github.com/yinkaisheng/Python-UIAutomation-for-Windows/blob/2cc91060982cc8b777152e698d677cc2989bf263/uiautomation/uiautomation.py#L4543-L4557 | [
"def",
"Move",
"(",
"self",
",",
"unit",
":",
"int",
",",
"count",
":",
"int",
",",
"waitTime",
":",
"float",
"=",
"OPERATION_WAIT_TIME",
")",
"->",
"int",
":",
"ret",
"=",
"self",
".",
"textRange",
".",
"Move",
"(",
"unit",
",",
"count",
")",
"tim... | 2cc91060982cc8b777152e698d677cc2989bf263 |
valid | TextRange.MoveEndpointByRange | Call IUIAutomationTextRange::MoveEndpointByRange.
Move one endpoint of the current text range to the specified endpoint of a second text range.
srcEndPoint: int, a value in class `TextPatternRangeEndpoint`.
textRange: `TextRange`.
targetEndPoint: int, a value in class `TextPatternRangeEn... | uiautomation/uiautomation.py | def MoveEndpointByRange(self, srcEndPoint: int, textRange: 'TextRange', targetEndPoint: int, waitTime: float = OPERATION_WAIT_TIME) -> bool:
"""
Call IUIAutomationTextRange::MoveEndpointByRange.
Move one endpoint of the current text range to the specified endpoint of a second text range.
... | def MoveEndpointByRange(self, srcEndPoint: int, textRange: 'TextRange', targetEndPoint: int, waitTime: float = OPERATION_WAIT_TIME) -> bool:
"""
Call IUIAutomationTextRange::MoveEndpointByRange.
Move one endpoint of the current text range to the specified endpoint of a second text range.
... | [
"Call",
"IUIAutomationTextRange",
"::",
"MoveEndpointByRange",
".",
"Move",
"one",
"endpoint",
"of",
"the",
"current",
"text",
"range",
"to",
"the",
"specified",
"endpoint",
"of",
"a",
"second",
"text",
"range",
".",
"srcEndPoint",
":",
"int",
"a",
"value",
"i... | yinkaisheng/Python-UIAutomation-for-Windows | python | https://github.com/yinkaisheng/Python-UIAutomation-for-Windows/blob/2cc91060982cc8b777152e698d677cc2989bf263/uiautomation/uiautomation.py#L4559-L4572 | [
"def",
"MoveEndpointByRange",
"(",
"self",
",",
"srcEndPoint",
":",
"int",
",",
"textRange",
":",
"'TextRange'",
",",
"targetEndPoint",
":",
"int",
",",
"waitTime",
":",
"float",
"=",
"OPERATION_WAIT_TIME",
")",
"->",
"bool",
":",
"ret",
"=",
"self",
".",
... | 2cc91060982cc8b777152e698d677cc2989bf263 |
valid | TextRange.MoveEndpointByUnit | Call IUIAutomationTextRange::MoveEndpointByUnit.
Move one endpoint of the text range the specified number of text units within the document range.
endPoint: int, a value in class `TextPatternRangeEndpoint`.
unit: int, a value in class `TextUnit`.
count: int, the number of units to move.
... | uiautomation/uiautomation.py | def MoveEndpointByUnit(self, endPoint: int, unit: int, count: int, waitTime: float = OPERATION_WAIT_TIME) -> int:
"""
Call IUIAutomationTextRange::MoveEndpointByUnit.
Move one endpoint of the text range the specified number of text units within the document range.
endPoint: int, a value ... | def MoveEndpointByUnit(self, endPoint: int, unit: int, count: int, waitTime: float = OPERATION_WAIT_TIME) -> int:
"""
Call IUIAutomationTextRange::MoveEndpointByUnit.
Move one endpoint of the text range the specified number of text units within the document range.
endPoint: int, a value ... | [
"Call",
"IUIAutomationTextRange",
"::",
"MoveEndpointByUnit",
".",
"Move",
"one",
"endpoint",
"of",
"the",
"text",
"range",
"the",
"specified",
"number",
"of",
"text",
"units",
"within",
"the",
"document",
"range",
".",
"endPoint",
":",
"int",
"a",
"value",
"i... | yinkaisheng/Python-UIAutomation-for-Windows | python | https://github.com/yinkaisheng/Python-UIAutomation-for-Windows/blob/2cc91060982cc8b777152e698d677cc2989bf263/uiautomation/uiautomation.py#L4574-L4590 | [
"def",
"MoveEndpointByUnit",
"(",
"self",
",",
"endPoint",
":",
"int",
",",
"unit",
":",
"int",
",",
"count",
":",
"int",
",",
"waitTime",
":",
"float",
"=",
"OPERATION_WAIT_TIME",
")",
"->",
"int",
":",
"ret",
"=",
"self",
".",
"textRange",
".",
"Move... | 2cc91060982cc8b777152e698d677cc2989bf263 |
valid | TextRange.ScrollIntoView | Call IUIAutomationTextRange::ScrollIntoView.
Cause the text control to scroll until the text range is visible in the viewport.
alignTop: bool, True if the text control should be scrolled so that the text range is flush with the top of the viewport;
False if it should be flush wit... | uiautomation/uiautomation.py | def ScrollIntoView(self, alignTop: bool = True, waitTime: float = OPERATION_WAIT_TIME) -> bool:
"""
Call IUIAutomationTextRange::ScrollIntoView.
Cause the text control to scroll until the text range is visible in the viewport.
alignTop: bool, True if the text control should be scrolled s... | def ScrollIntoView(self, alignTop: bool = True, waitTime: float = OPERATION_WAIT_TIME) -> bool:
"""
Call IUIAutomationTextRange::ScrollIntoView.
Cause the text control to scroll until the text range is visible in the viewport.
alignTop: bool, True if the text control should be scrolled s... | [
"Call",
"IUIAutomationTextRange",
"::",
"ScrollIntoView",
".",
"Cause",
"the",
"text",
"control",
"to",
"scroll",
"until",
"the",
"text",
"range",
"is",
"visible",
"in",
"the",
"viewport",
".",
"alignTop",
":",
"bool",
"True",
"if",
"the",
"text",
"control",
... | yinkaisheng/Python-UIAutomation-for-Windows | python | https://github.com/yinkaisheng/Python-UIAutomation-for-Windows/blob/2cc91060982cc8b777152e698d677cc2989bf263/uiautomation/uiautomation.py#L4604-L4616 | [
"def",
"ScrollIntoView",
"(",
"self",
",",
"alignTop",
":",
"bool",
"=",
"True",
",",
"waitTime",
":",
"float",
"=",
"OPERATION_WAIT_TIME",
")",
"->",
"bool",
":",
"ret",
"=",
"self",
".",
"textRange",
".",
"ScrollIntoView",
"(",
"int",
"(",
"alignTop",
... | 2cc91060982cc8b777152e698d677cc2989bf263 |
valid | TextEditPattern.GetActiveComposition | Call IUIAutomationTextEditPattern::GetActiveComposition.
Return `TextRange` or None, the active composition.
Refer https://docs.microsoft.com/en-us/windows/desktop/api/uiautomationclient/nf-uiautomationclient-iuiautomationtexteditpattern-getactivecomposition | uiautomation/uiautomation.py | def GetActiveComposition(self) -> TextRange:
"""
Call IUIAutomationTextEditPattern::GetActiveComposition.
Return `TextRange` or None, the active composition.
Refer https://docs.microsoft.com/en-us/windows/desktop/api/uiautomationclient/nf-uiautomationclient-iuiautomationtexteditpattern-g... | def GetActiveComposition(self) -> TextRange:
"""
Call IUIAutomationTextEditPattern::GetActiveComposition.
Return `TextRange` or None, the active composition.
Refer https://docs.microsoft.com/en-us/windows/desktop/api/uiautomationclient/nf-uiautomationclient-iuiautomationtexteditpattern-g... | [
"Call",
"IUIAutomationTextEditPattern",
"::",
"GetActiveComposition",
".",
"Return",
"TextRange",
"or",
"None",
"the",
"active",
"composition",
".",
"Refer",
"https",
":",
"//",
"docs",
".",
"microsoft",
".",
"com",
"/",
"en",
"-",
"us",
"/",
"windows",
"/",
... | yinkaisheng/Python-UIAutomation-for-Windows | python | https://github.com/yinkaisheng/Python-UIAutomation-for-Windows/blob/2cc91060982cc8b777152e698d677cc2989bf263/uiautomation/uiautomation.py#L4662-L4670 | [
"def",
"GetActiveComposition",
"(",
"self",
")",
"->",
"TextRange",
":",
"textRange",
"=",
"self",
".",
"pattern",
".",
"GetActiveComposition",
"(",
")",
"if",
"textRange",
":",
"return",
"TextRange",
"(",
"textRange",
"=",
"textRange",
")"
] | 2cc91060982cc8b777152e698d677cc2989bf263 |
valid | TextEditPattern.GetConversionTarget | Call IUIAutomationTextEditPattern::GetConversionTarget.
Return `TextRange` or None, the current conversion target range..
Refer https://docs.microsoft.com/en-us/windows/desktop/api/uiautomationclient/nf-uiautomationclient-iuiautomationtexteditpattern-getconversiontarget | uiautomation/uiautomation.py | def GetConversionTarget(self) -> TextRange:
"""
Call IUIAutomationTextEditPattern::GetConversionTarget.
Return `TextRange` or None, the current conversion target range..
Refer https://docs.microsoft.com/en-us/windows/desktop/api/uiautomationclient/nf-uiautomationclient-iuiautomationtexte... | def GetConversionTarget(self) -> TextRange:
"""
Call IUIAutomationTextEditPattern::GetConversionTarget.
Return `TextRange` or None, the current conversion target range..
Refer https://docs.microsoft.com/en-us/windows/desktop/api/uiautomationclient/nf-uiautomationclient-iuiautomationtexte... | [
"Call",
"IUIAutomationTextEditPattern",
"::",
"GetConversionTarget",
".",
"Return",
"TextRange",
"or",
"None",
"the",
"current",
"conversion",
"target",
"range",
"..",
"Refer",
"https",
":",
"//",
"docs",
".",
"microsoft",
".",
"com",
"/",
"en",
"-",
"us",
"/"... | yinkaisheng/Python-UIAutomation-for-Windows | python | https://github.com/yinkaisheng/Python-UIAutomation-for-Windows/blob/2cc91060982cc8b777152e698d677cc2989bf263/uiautomation/uiautomation.py#L4672-L4680 | [
"def",
"GetConversionTarget",
"(",
"self",
")",
"->",
"TextRange",
":",
"textRange",
"=",
"self",
".",
"pattern",
".",
"GetConversionTarget",
"(",
")",
"if",
"textRange",
":",
"return",
"TextRange",
"(",
"textRange",
"=",
"textRange",
")"
] | 2cc91060982cc8b777152e698d677cc2989bf263 |
valid | TextPattern.GetVisibleRanges | Call IUIAutomationTextPattern::GetVisibleRanges.
Return list, a list of `TextRange`, disjoint text ranges from a text-based control
where each text range represents a contiguous span of visible text.
Refer https://docs.microsoft.com/en-us/windows/desktop/api/uiautomationclient/nf-ui... | uiautomation/uiautomation.py | def GetVisibleRanges(self) -> list:
"""
Call IUIAutomationTextPattern::GetVisibleRanges.
Return list, a list of `TextRange`, disjoint text ranges from a text-based control
where each text range represents a contiguous span of visible text.
Refer https://docs.microsof... | def GetVisibleRanges(self) -> list:
"""
Call IUIAutomationTextPattern::GetVisibleRanges.
Return list, a list of `TextRange`, disjoint text ranges from a text-based control
where each text range represents a contiguous span of visible text.
Refer https://docs.microsof... | [
"Call",
"IUIAutomationTextPattern",
"::",
"GetVisibleRanges",
".",
"Return",
"list",
"a",
"list",
"of",
"TextRange",
"disjoint",
"text",
"ranges",
"from",
"a",
"text",
"-",
"based",
"control",
"where",
"each",
"text",
"range",
"represents",
"a",
"contiguous",
"s... | yinkaisheng/Python-UIAutomation-for-Windows | python | https://github.com/yinkaisheng/Python-UIAutomation-for-Windows/blob/2cc91060982cc8b777152e698d677cc2989bf263/uiautomation/uiautomation.py#L4723-L4737 | [
"def",
"GetVisibleRanges",
"(",
"self",
")",
"->",
"list",
":",
"eleArray",
"=",
"self",
".",
"pattern",
".",
"GetVisibleRanges",
"(",
")",
"if",
"eleArray",
":",
"textRanges",
"=",
"[",
"]",
"for",
"i",
"in",
"range",
"(",
"eleArray",
".",
"Length",
"... | 2cc91060982cc8b777152e698d677cc2989bf263 |
valid | TextPattern.RangeFromChild | Call IUIAutomationTextPattern::RangeFromChild.
child: `Control` or its subclass.
Return `TextRange` or None, a text range enclosing a child element such as an image,
hyperlink, Microsoft Excel spreadsheet, or other embedded object.
Refer https://docs.microsoft.com/en-us/windows/deskt... | uiautomation/uiautomation.py | def RangeFromChild(self, child) -> TextRange:
"""
Call IUIAutomationTextPattern::RangeFromChild.
child: `Control` or its subclass.
Return `TextRange` or None, a text range enclosing a child element such as an image,
hyperlink, Microsoft Excel spreadsheet, or other embedded ob... | def RangeFromChild(self, child) -> TextRange:
"""
Call IUIAutomationTextPattern::RangeFromChild.
child: `Control` or its subclass.
Return `TextRange` or None, a text range enclosing a child element such as an image,
hyperlink, Microsoft Excel spreadsheet, or other embedded ob... | [
"Call",
"IUIAutomationTextPattern",
"::",
"RangeFromChild",
".",
"child",
":",
"Control",
"or",
"its",
"subclass",
".",
"Return",
"TextRange",
"or",
"None",
"a",
"text",
"range",
"enclosing",
"a",
"child",
"element",
"such",
"as",
"an",
"image",
"hyperlink",
"... | yinkaisheng/Python-UIAutomation-for-Windows | python | https://github.com/yinkaisheng/Python-UIAutomation-for-Windows/blob/2cc91060982cc8b777152e698d677cc2989bf263/uiautomation/uiautomation.py#L4739-L4749 | [
"def",
"RangeFromChild",
"(",
"self",
",",
"child",
")",
"->",
"TextRange",
":",
"textRange",
"=",
"self",
".",
"pattern",
".",
"RangeFromChild",
"(",
"Control",
".",
"Element",
")",
"if",
"textRange",
":",
"return",
"TextRange",
"(",
"textRange",
"=",
"te... | 2cc91060982cc8b777152e698d677cc2989bf263 |
valid | TextPattern.RangeFromPoint | Call IUIAutomationTextPattern::RangeFromPoint.
child: `Control` or its subclass.
Return `TextRange` or None, the degenerate (empty) text range nearest to the specified screen coordinates.
Refer https://docs.microsoft.com/en-us/windows/desktop/api/uiautomationclient/nf-uiautomationclient-iuiautom... | uiautomation/uiautomation.py | def RangeFromPoint(self, x: int, y: int) -> TextRange:
"""
Call IUIAutomationTextPattern::RangeFromPoint.
child: `Control` or its subclass.
Return `TextRange` or None, the degenerate (empty) text range nearest to the specified screen coordinates.
Refer https://docs.microsoft.com/... | def RangeFromPoint(self, x: int, y: int) -> TextRange:
"""
Call IUIAutomationTextPattern::RangeFromPoint.
child: `Control` or its subclass.
Return `TextRange` or None, the degenerate (empty) text range nearest to the specified screen coordinates.
Refer https://docs.microsoft.com/... | [
"Call",
"IUIAutomationTextPattern",
"::",
"RangeFromPoint",
".",
"child",
":",
"Control",
"or",
"its",
"subclass",
".",
"Return",
"TextRange",
"or",
"None",
"the",
"degenerate",
"(",
"empty",
")",
"text",
"range",
"nearest",
"to",
"the",
"specified",
"screen",
... | yinkaisheng/Python-UIAutomation-for-Windows | python | https://github.com/yinkaisheng/Python-UIAutomation-for-Windows/blob/2cc91060982cc8b777152e698d677cc2989bf263/uiautomation/uiautomation.py#L4751-L4760 | [
"def",
"RangeFromPoint",
"(",
"self",
",",
"x",
":",
"int",
",",
"y",
":",
"int",
")",
"->",
"TextRange",
":",
"textRange",
"=",
"self",
".",
"pattern",
".",
"RangeFromPoint",
"(",
"ctypes",
".",
"wintypes",
".",
"POINT",
"(",
"x",
",",
"y",
")",
"... | 2cc91060982cc8b777152e698d677cc2989bf263 |
valid | TransformPattern.Move | Call IUIAutomationTransformPattern::Move.
Move the UI Automation element.
x: int.
y: int.
waitTime: float.
Return bool, True if succeed otherwise False.
Refer https://docs.microsoft.com/en-us/windows/desktop/api/uiautomationclient/nf-uiautomationclient-iuiautomationtransf... | uiautomation/uiautomation.py | def Move(self, x: int, y: int, waitTime: float = OPERATION_WAIT_TIME) -> bool:
"""
Call IUIAutomationTransformPattern::Move.
Move the UI Automation element.
x: int.
y: int.
waitTime: float.
Return bool, True if succeed otherwise False.
Refer https://docs.m... | def Move(self, x: int, y: int, waitTime: float = OPERATION_WAIT_TIME) -> bool:
"""
Call IUIAutomationTransformPattern::Move.
Move the UI Automation element.
x: int.
y: int.
waitTime: float.
Return bool, True if succeed otherwise False.
Refer https://docs.m... | [
"Call",
"IUIAutomationTransformPattern",
"::",
"Move",
".",
"Move",
"the",
"UI",
"Automation",
"element",
".",
"x",
":",
"int",
".",
"y",
":",
"int",
".",
"waitTime",
":",
"float",
".",
"Return",
"bool",
"True",
"if",
"succeed",
"otherwise",
"False",
".",
... | yinkaisheng/Python-UIAutomation-for-Windows | python | https://github.com/yinkaisheng/Python-UIAutomation-for-Windows/blob/2cc91060982cc8b777152e698d677cc2989bf263/uiautomation/uiautomation.py#L4832-L4844 | [
"def",
"Move",
"(",
"self",
",",
"x",
":",
"int",
",",
"y",
":",
"int",
",",
"waitTime",
":",
"float",
"=",
"OPERATION_WAIT_TIME",
")",
"->",
"bool",
":",
"ret",
"=",
"self",
".",
"pattern",
".",
"Move",
"(",
"x",
",",
"y",
")",
"==",
"S_OK",
"... | 2cc91060982cc8b777152e698d677cc2989bf263 |
valid | TransformPattern.Resize | Call IUIAutomationTransformPattern::Resize.
Resize the UI Automation element.
width: int.
height: int.
waitTime: float.
Return bool, True if succeed otherwise False.
Refer https://docs.microsoft.com/en-us/windows/desktop/api/uiautomationclient/nf-uiautomationclient-iuiaut... | uiautomation/uiautomation.py | def Resize(self, width: int, height: int, waitTime: float = OPERATION_WAIT_TIME) -> bool:
"""
Call IUIAutomationTransformPattern::Resize.
Resize the UI Automation element.
width: int.
height: int.
waitTime: float.
Return bool, True if succeed otherwise False.
... | def Resize(self, width: int, height: int, waitTime: float = OPERATION_WAIT_TIME) -> bool:
"""
Call IUIAutomationTransformPattern::Resize.
Resize the UI Automation element.
width: int.
height: int.
waitTime: float.
Return bool, True if succeed otherwise False.
... | [
"Call",
"IUIAutomationTransformPattern",
"::",
"Resize",
".",
"Resize",
"the",
"UI",
"Automation",
"element",
".",
"width",
":",
"int",
".",
"height",
":",
"int",
".",
"waitTime",
":",
"float",
".",
"Return",
"bool",
"True",
"if",
"succeed",
"otherwise",
"Fa... | yinkaisheng/Python-UIAutomation-for-Windows | python | https://github.com/yinkaisheng/Python-UIAutomation-for-Windows/blob/2cc91060982cc8b777152e698d677cc2989bf263/uiautomation/uiautomation.py#L4846-L4858 | [
"def",
"Resize",
"(",
"self",
",",
"width",
":",
"int",
",",
"height",
":",
"int",
",",
"waitTime",
":",
"float",
"=",
"OPERATION_WAIT_TIME",
")",
"->",
"bool",
":",
"ret",
"=",
"self",
".",
"pattern",
".",
"Resize",
"(",
"width",
",",
"height",
")",... | 2cc91060982cc8b777152e698d677cc2989bf263 |
valid | TransformPattern.Rotate | Call IUIAutomationTransformPattern::Rotate.
Rotates the UI Automation element.
degrees: int.
waitTime: float.
Return bool, True if succeed otherwise False.
Refer https://docs.microsoft.com/en-us/windows/desktop/api/uiautomationclient/nf-uiautomationclient-iuiautomationtransformpa... | uiautomation/uiautomation.py | def Rotate(self, degrees: int, waitTime: float = OPERATION_WAIT_TIME) -> bool:
"""
Call IUIAutomationTransformPattern::Rotate.
Rotates the UI Automation element.
degrees: int.
waitTime: float.
Return bool, True if succeed otherwise False.
Refer https://docs.micros... | def Rotate(self, degrees: int, waitTime: float = OPERATION_WAIT_TIME) -> bool:
"""
Call IUIAutomationTransformPattern::Rotate.
Rotates the UI Automation element.
degrees: int.
waitTime: float.
Return bool, True if succeed otherwise False.
Refer https://docs.micros... | [
"Call",
"IUIAutomationTransformPattern",
"::",
"Rotate",
".",
"Rotates",
"the",
"UI",
"Automation",
"element",
".",
"degrees",
":",
"int",
".",
"waitTime",
":",
"float",
".",
"Return",
"bool",
"True",
"if",
"succeed",
"otherwise",
"False",
".",
"Refer",
"https... | yinkaisheng/Python-UIAutomation-for-Windows | python | https://github.com/yinkaisheng/Python-UIAutomation-for-Windows/blob/2cc91060982cc8b777152e698d677cc2989bf263/uiautomation/uiautomation.py#L4860-L4871 | [
"def",
"Rotate",
"(",
"self",
",",
"degrees",
":",
"int",
",",
"waitTime",
":",
"float",
"=",
"OPERATION_WAIT_TIME",
")",
"->",
"bool",
":",
"ret",
"=",
"self",
".",
"pattern",
".",
"Rotate",
"(",
"degrees",
")",
"==",
"S_OK",
"time",
".",
"sleep",
"... | 2cc91060982cc8b777152e698d677cc2989bf263 |
valid | TransformPattern2.Zoom | Call IUIAutomationTransformPattern2::Zoom.
Zoom the viewport of the control.
zoomLevel: float for int.
waitTime: float.
Return bool, True if succeed otherwise False.
Refer https://docs.microsoft.com/en-us/windows/desktop/api/uiautomationclient/nf-uiautomationclient-iuiautomationt... | uiautomation/uiautomation.py | def Zoom(self, zoomLevel: float, waitTime: float = OPERATION_WAIT_TIME) -> bool:
"""
Call IUIAutomationTransformPattern2::Zoom.
Zoom the viewport of the control.
zoomLevel: float for int.
waitTime: float.
Return bool, True if succeed otherwise False.
Refer https:/... | def Zoom(self, zoomLevel: float, waitTime: float = OPERATION_WAIT_TIME) -> bool:
"""
Call IUIAutomationTransformPattern2::Zoom.
Zoom the viewport of the control.
zoomLevel: float for int.
waitTime: float.
Return bool, True if succeed otherwise False.
Refer https:/... | [
"Call",
"IUIAutomationTransformPattern2",
"::",
"Zoom",
".",
"Zoom",
"the",
"viewport",
"of",
"the",
"control",
".",
"zoomLevel",
":",
"float",
"for",
"int",
".",
"waitTime",
":",
"float",
".",
"Return",
"bool",
"True",
"if",
"succeed",
"otherwise",
"False",
... | yinkaisheng/Python-UIAutomation-for-Windows | python | https://github.com/yinkaisheng/Python-UIAutomation-for-Windows/blob/2cc91060982cc8b777152e698d677cc2989bf263/uiautomation/uiautomation.py#L4919-L4930 | [
"def",
"Zoom",
"(",
"self",
",",
"zoomLevel",
":",
"float",
",",
"waitTime",
":",
"float",
"=",
"OPERATION_WAIT_TIME",
")",
"->",
"bool",
":",
"ret",
"=",
"self",
".",
"pattern",
".",
"Zoom",
"(",
"zoomLevel",
")",
"==",
"S_OK",
"time",
".",
"sleep",
... | 2cc91060982cc8b777152e698d677cc2989bf263 |
valid | TransformPattern2.ZoomByUnit | Call IUIAutomationTransformPattern2::ZoomByUnit.
Zoom the viewport of the control by the specified unit.
zoomUnit: int, a value in class `ZoomUnit`.
waitTime: float.
Return bool, True if succeed otherwise False.
Refer https://docs.microsoft.com/en-us/windows/desktop/api/uiautomat... | uiautomation/uiautomation.py | def ZoomByUnit(self, zoomUnit: int, waitTime: float = OPERATION_WAIT_TIME) -> bool:
"""
Call IUIAutomationTransformPattern2::ZoomByUnit.
Zoom the viewport of the control by the specified unit.
zoomUnit: int, a value in class `ZoomUnit`.
waitTime: float.
Return bool, True ... | def ZoomByUnit(self, zoomUnit: int, waitTime: float = OPERATION_WAIT_TIME) -> bool:
"""
Call IUIAutomationTransformPattern2::ZoomByUnit.
Zoom the viewport of the control by the specified unit.
zoomUnit: int, a value in class `ZoomUnit`.
waitTime: float.
Return bool, True ... | [
"Call",
"IUIAutomationTransformPattern2",
"::",
"ZoomByUnit",
".",
"Zoom",
"the",
"viewport",
"of",
"the",
"control",
"by",
"the",
"specified",
"unit",
".",
"zoomUnit",
":",
"int",
"a",
"value",
"in",
"class",
"ZoomUnit",
".",
"waitTime",
":",
"float",
".",
... | yinkaisheng/Python-UIAutomation-for-Windows | python | https://github.com/yinkaisheng/Python-UIAutomation-for-Windows/blob/2cc91060982cc8b777152e698d677cc2989bf263/uiautomation/uiautomation.py#L4932-L4943 | [
"def",
"ZoomByUnit",
"(",
"self",
",",
"zoomUnit",
":",
"int",
",",
"waitTime",
":",
"float",
"=",
"OPERATION_WAIT_TIME",
")",
"->",
"bool",
":",
"ret",
"=",
"self",
".",
"pattern",
".",
"ZoomByUnit",
"(",
"zoomUnit",
")",
"==",
"S_OK",
"time",
".",
"s... | 2cc91060982cc8b777152e698d677cc2989bf263 |
valid | WindowPattern.SetWindowVisualState | Call IUIAutomationWindowPattern::SetWindowVisualState.
Minimize, maximize, or restore the window.
state: int, a value in class `WindowVisualState`.
waitTime: float.
Return bool, True if succeed otherwise False.
Refer https://docs.microsoft.com/en-us/windows/desktop/api/uiautomati... | uiautomation/uiautomation.py | def SetWindowVisualState(self, state: int, waitTime: float = OPERATION_WAIT_TIME) -> bool:
"""
Call IUIAutomationWindowPattern::SetWindowVisualState.
Minimize, maximize, or restore the window.
state: int, a value in class `WindowVisualState`.
waitTime: float.
Return bool,... | def SetWindowVisualState(self, state: int, waitTime: float = OPERATION_WAIT_TIME) -> bool:
"""
Call IUIAutomationWindowPattern::SetWindowVisualState.
Minimize, maximize, or restore the window.
state: int, a value in class `WindowVisualState`.
waitTime: float.
Return bool,... | [
"Call",
"IUIAutomationWindowPattern",
"::",
"SetWindowVisualState",
".",
"Minimize",
"maximize",
"or",
"restore",
"the",
"window",
".",
"state",
":",
"int",
"a",
"value",
"in",
"class",
"WindowVisualState",
".",
"waitTime",
":",
"float",
".",
"Return",
"bool",
"... | yinkaisheng/Python-UIAutomation-for-Windows | python | https://github.com/yinkaisheng/Python-UIAutomation-for-Windows/blob/2cc91060982cc8b777152e698d677cc2989bf263/uiautomation/uiautomation.py#L5081-L5092 | [
"def",
"SetWindowVisualState",
"(",
"self",
",",
"state",
":",
"int",
",",
"waitTime",
":",
"float",
"=",
"OPERATION_WAIT_TIME",
")",
"->",
"bool",
":",
"ret",
"=",
"self",
".",
"pattern",
".",
"SetWindowVisualState",
"(",
"state",
")",
"==",
"S_OK",
"time... | 2cc91060982cc8b777152e698d677cc2989bf263 |
valid | WindowPattern.WaitForInputIdle | Call IUIAutomationWindowPattern::WaitForInputIdle.
Cause the calling code to block for the specified time or
until the associated process enters an idle state, whichever completes first.
milliseconds: int.
Return bool, True if succeed otherwise False.
Refer https://docs.micro... | uiautomation/uiautomation.py | def WaitForInputIdle(self, milliseconds: int) -> bool:
'''
Call IUIAutomationWindowPattern::WaitForInputIdle.
Cause the calling code to block for the specified time or
until the associated process enters an idle state, whichever completes first.
milliseconds: int.
Ret... | def WaitForInputIdle(self, milliseconds: int) -> bool:
'''
Call IUIAutomationWindowPattern::WaitForInputIdle.
Cause the calling code to block for the specified time or
until the associated process enters an idle state, whichever completes first.
milliseconds: int.
Ret... | [
"Call",
"IUIAutomationWindowPattern",
"::",
"WaitForInputIdle",
".",
"Cause",
"the",
"calling",
"code",
"to",
"block",
"for",
"the",
"specified",
"time",
"or",
"until",
"the",
"associated",
"process",
"enters",
"an",
"idle",
"state",
"whichever",
"completes",
"fir... | yinkaisheng/Python-UIAutomation-for-Windows | python | https://github.com/yinkaisheng/Python-UIAutomation-for-Windows/blob/2cc91060982cc8b777152e698d677cc2989bf263/uiautomation/uiautomation.py#L5094-L5103 | [
"def",
"WaitForInputIdle",
"(",
"self",
",",
"milliseconds",
":",
"int",
")",
"->",
"bool",
":",
"return",
"self",
".",
"pattern",
".",
"WaitForInputIdle",
"(",
"milliseconds",
")",
"==",
"S_OK"
] | 2cc91060982cc8b777152e698d677cc2989bf263 |
valid | Control.CreateControlFromElement | Create a concreate `Control` from a com type `IUIAutomationElement`.
element: `ctypes.POINTER(IUIAutomationElement)`.
Return a subclass of `Control`, an instance of the control's real type. | uiautomation/uiautomation.py | def CreateControlFromElement(element) -> 'Control':
"""
Create a concreate `Control` from a com type `IUIAutomationElement`.
element: `ctypes.POINTER(IUIAutomationElement)`.
Return a subclass of `Control`, an instance of the control's real type.
"""
if element:
... | def CreateControlFromElement(element) -> 'Control':
"""
Create a concreate `Control` from a com type `IUIAutomationElement`.
element: `ctypes.POINTER(IUIAutomationElement)`.
Return a subclass of `Control`, an instance of the control's real type.
"""
if element:
... | [
"Create",
"a",
"concreate",
"Control",
"from",
"a",
"com",
"type",
"IUIAutomationElement",
".",
"element",
":",
"ctypes",
".",
"POINTER",
"(",
"IUIAutomationElement",
")",
".",
"Return",
"a",
"subclass",
"of",
"Control",
"an",
"instance",
"of",
"the",
"control... | yinkaisheng/Python-UIAutomation-for-Windows | python | https://github.com/yinkaisheng/Python-UIAutomation-for-Windows/blob/2cc91060982cc8b777152e698d677cc2989bf263/uiautomation/uiautomation.py#L5192-L5203 | [
"def",
"CreateControlFromElement",
"(",
"element",
")",
"->",
"'Control'",
":",
"if",
"element",
":",
"controlType",
"=",
"element",
".",
"CurrentControlType",
"if",
"controlType",
"in",
"ControlConstructors",
":",
"return",
"ControlConstructors",
"[",
"controlType",
... | 2cc91060982cc8b777152e698d677cc2989bf263 |
valid | Control.AddSearchProperties | Add search properties using `dict.update`.
searchProperties: dict, same as searchProperties in `Control.__init__`. | uiautomation/uiautomation.py | def AddSearchProperties(self, **searchProperties) -> None:
"""
Add search properties using `dict.update`.
searchProperties: dict, same as searchProperties in `Control.__init__`.
"""
self.searchProperties.update(searchProperties)
if 'Depth' in searchProperties:
... | def AddSearchProperties(self, **searchProperties) -> None:
"""
Add search properties using `dict.update`.
searchProperties: dict, same as searchProperties in `Control.__init__`.
"""
self.searchProperties.update(searchProperties)
if 'Depth' in searchProperties:
... | [
"Add",
"search",
"properties",
"using",
"dict",
".",
"update",
".",
"searchProperties",
":",
"dict",
"same",
"as",
"searchProperties",
"in",
"Control",
".",
"__init__",
"."
] | yinkaisheng/Python-UIAutomation-for-Windows | python | https://github.com/yinkaisheng/Python-UIAutomation-for-Windows/blob/2cc91060982cc8b777152e698d677cc2989bf263/uiautomation/uiautomation.py#L5223-L5233 | [
"def",
"AddSearchProperties",
"(",
"self",
",",
"*",
"*",
"searchProperties",
")",
"->",
"None",
":",
"self",
".",
"searchProperties",
".",
"update",
"(",
"searchProperties",
")",
"if",
"'Depth'",
"in",
"searchProperties",
":",
"self",
".",
"searchDepth",
"=",... | 2cc91060982cc8b777152e698d677cc2989bf263 |
valid | Control.RemoveSearchProperties | searchProperties: dict, same as searchProperties in `Control.__init__`. | uiautomation/uiautomation.py | def RemoveSearchProperties(self, **searchProperties) -> None:
"""
searchProperties: dict, same as searchProperties in `Control.__init__`.
"""
for key in searchProperties:
del self.searchProperties[key]
if key == 'RegexName':
self.regexName = None | def RemoveSearchProperties(self, **searchProperties) -> None:
"""
searchProperties: dict, same as searchProperties in `Control.__init__`.
"""
for key in searchProperties:
del self.searchProperties[key]
if key == 'RegexName':
self.regexName = None | [
"searchProperties",
":",
"dict",
"same",
"as",
"searchProperties",
"in",
"Control",
".",
"__init__",
"."
] | yinkaisheng/Python-UIAutomation-for-Windows | python | https://github.com/yinkaisheng/Python-UIAutomation-for-Windows/blob/2cc91060982cc8b777152e698d677cc2989bf263/uiautomation/uiautomation.py#L5235-L5242 | [
"def",
"RemoveSearchProperties",
"(",
"self",
",",
"*",
"*",
"searchProperties",
")",
"->",
"None",
":",
"for",
"key",
"in",
"searchProperties",
":",
"del",
"self",
".",
"searchProperties",
"[",
"key",
"]",
"if",
"key",
"==",
"'RegexName'",
":",
"self",
".... | 2cc91060982cc8b777152e698d677cc2989bf263 |
valid | Control.GetColorfulSearchPropertiesStr | keyColor, valueColor: str, color name in class ConsoleColor | uiautomation/uiautomation.py | def GetColorfulSearchPropertiesStr(self, keyColor='DarkGreen', valueColor='DarkCyan') -> str:
"""keyColor, valueColor: str, color name in class ConsoleColor"""
strs = ['<Color={}>{}</Color>: <Color={}>{}</Color>'.format(keyColor if k in Control.ValidKeys else 'DarkYellow', k, valueColor,
... | def GetColorfulSearchPropertiesStr(self, keyColor='DarkGreen', valueColor='DarkCyan') -> str:
"""keyColor, valueColor: str, color name in class ConsoleColor"""
strs = ['<Color={}>{}</Color>: <Color={}>{}</Color>'.format(keyColor if k in Control.ValidKeys else 'DarkYellow', k, valueColor,
... | [
"keyColor",
"valueColor",
":",
"str",
"color",
"name",
"in",
"class",
"ConsoleColor"
] | yinkaisheng/Python-UIAutomation-for-Windows | python | https://github.com/yinkaisheng/Python-UIAutomation-for-Windows/blob/2cc91060982cc8b777152e698d677cc2989bf263/uiautomation/uiautomation.py#L5248-L5252 | [
"def",
"GetColorfulSearchPropertiesStr",
"(",
"self",
",",
"keyColor",
"=",
"'DarkGreen'",
",",
"valueColor",
"=",
"'DarkCyan'",
")",
"->",
"str",
":",
"strs",
"=",
"[",
"'<Color={}>{}</Color>: <Color={}>{}</Color>'",
".",
"format",
"(",
"keyColor",
"if",
"k",
"in... | 2cc91060982cc8b777152e698d677cc2989bf263 |
valid | Control.BoundingRectangle | Property BoundingRectangle.
Call IUIAutomationElement::get_CurrentBoundingRectangle.
Return `Rect`.
Refer https://docs.microsoft.com/en-us/windows/desktop/api/uiautomationclient/nf-uiautomationclient-iuiautomationelement-get_currentboundingrectangle
rect = control.BoundingRectangle
... | uiautomation/uiautomation.py | def BoundingRectangle(self) -> Rect:
"""
Property BoundingRectangle.
Call IUIAutomationElement::get_CurrentBoundingRectangle.
Return `Rect`.
Refer https://docs.microsoft.com/en-us/windows/desktop/api/uiautomationclient/nf-uiautomationclient-iuiautomationelement-get_currentboundin... | def BoundingRectangle(self) -> Rect:
"""
Property BoundingRectangle.
Call IUIAutomationElement::get_CurrentBoundingRectangle.
Return `Rect`.
Refer https://docs.microsoft.com/en-us/windows/desktop/api/uiautomationclient/nf-uiautomationclient-iuiautomationelement-get_currentboundin... | [
"Property",
"BoundingRectangle",
".",
"Call",
"IUIAutomationElement",
"::",
"get_CurrentBoundingRectangle",
".",
"Return",
"Rect",
".",
"Refer",
"https",
":",
"//",
"docs",
".",
"microsoft",
".",
"com",
"/",
"en",
"-",
"us",
"/",
"windows",
"/",
"desktop",
"/"... | yinkaisheng/Python-UIAutomation-for-Windows | python | https://github.com/yinkaisheng/Python-UIAutomation-for-Windows/blob/2cc91060982cc8b777152e698d677cc2989bf263/uiautomation/uiautomation.py#L5334-L5345 | [
"def",
"BoundingRectangle",
"(",
"self",
")",
"->",
"Rect",
":",
"rect",
"=",
"self",
".",
"Element",
".",
"CurrentBoundingRectangle",
"return",
"Rect",
"(",
"rect",
".",
"left",
",",
"rect",
".",
"top",
",",
"rect",
".",
"right",
",",
"rect",
".",
"bo... | 2cc91060982cc8b777152e698d677cc2989bf263 |
valid | Control.GetClickablePoint | Call IUIAutomationElement::GetClickablePoint.
Return tuple, (x: int, y: int, gotClickable: bool), like (20, 10, True)
Refer https://docs.microsoft.com/en-us/windows/desktop/api/uiautomationclient/nf-uiautomationclient-iuiautomationelement-getclickablepoint | uiautomation/uiautomation.py | def GetClickablePoint(self) -> tuple:
"""
Call IUIAutomationElement::GetClickablePoint.
Return tuple, (x: int, y: int, gotClickable: bool), like (20, 10, True)
Refer https://docs.microsoft.com/en-us/windows/desktop/api/uiautomationclient/nf-uiautomationclient-iuiautomationelement-getclic... | def GetClickablePoint(self) -> tuple:
"""
Call IUIAutomationElement::GetClickablePoint.
Return tuple, (x: int, y: int, gotClickable: bool), like (20, 10, True)
Refer https://docs.microsoft.com/en-us/windows/desktop/api/uiautomationclient/nf-uiautomationclient-iuiautomationelement-getclic... | [
"Call",
"IUIAutomationElement",
"::",
"GetClickablePoint",
".",
"Return",
"tuple",
"(",
"x",
":",
"int",
"y",
":",
"int",
"gotClickable",
":",
"bool",
")",
"like",
"(",
"20",
"10",
"True",
")",
"Refer",
"https",
":",
"//",
"docs",
".",
"microsoft",
".",
... | yinkaisheng/Python-UIAutomation-for-Windows | python | https://github.com/yinkaisheng/Python-UIAutomation-for-Windows/blob/2cc91060982cc8b777152e698d677cc2989bf263/uiautomation/uiautomation.py#L5576-L5583 | [
"def",
"GetClickablePoint",
"(",
"self",
")",
"->",
"tuple",
":",
"point",
",",
"gotClickable",
"=",
"self",
".",
"Element",
".",
"GetClickablePoint",
"(",
")",
"return",
"(",
"point",
".",
"x",
",",
"point",
".",
"y",
",",
"bool",
"(",
"gotClickable",
... | 2cc91060982cc8b777152e698d677cc2989bf263 |
valid | Control.GetPattern | Call IUIAutomationElement::GetCurrentPattern.
Get a new pattern by pattern id if it supports the pattern.
patternId: int, a value in class `PatternId`.
Refer https://docs.microsoft.com/en-us/windows/desktop/api/uiautomationclient/nf-uiautomationclient-iuiautomationelement-getcurrentpattern | uiautomation/uiautomation.py | def GetPattern(self, patternId: int):
"""
Call IUIAutomationElement::GetCurrentPattern.
Get a new pattern by pattern id if it supports the pattern.
patternId: int, a value in class `PatternId`.
Refer https://docs.microsoft.com/en-us/windows/desktop/api/uiautomationclient/nf-uiaut... | def GetPattern(self, patternId: int):
"""
Call IUIAutomationElement::GetCurrentPattern.
Get a new pattern by pattern id if it supports the pattern.
patternId: int, a value in class `PatternId`.
Refer https://docs.microsoft.com/en-us/windows/desktop/api/uiautomationclient/nf-uiaut... | [
"Call",
"IUIAutomationElement",
"::",
"GetCurrentPattern",
".",
"Get",
"a",
"new",
"pattern",
"by",
"pattern",
"id",
"if",
"it",
"supports",
"the",
"pattern",
".",
"patternId",
":",
"int",
"a",
"value",
"in",
"class",
"PatternId",
".",
"Refer",
"https",
":",... | yinkaisheng/Python-UIAutomation-for-Windows | python | https://github.com/yinkaisheng/Python-UIAutomation-for-Windows/blob/2cc91060982cc8b777152e698d677cc2989bf263/uiautomation/uiautomation.py#L5585-L5599 | [
"def",
"GetPattern",
"(",
"self",
",",
"patternId",
":",
"int",
")",
":",
"try",
":",
"pattern",
"=",
"self",
".",
"Element",
".",
"GetCurrentPattern",
"(",
"patternId",
")",
"if",
"pattern",
":",
"subPattern",
"=",
"CreatePattern",
"(",
"patternId",
",",
... | 2cc91060982cc8b777152e698d677cc2989bf263 |
valid | Control.GetPatternAs | Call IUIAutomationElement::GetCurrentPatternAs.
Get a new pattern by pattern id if it supports the pattern, todo.
patternId: int, a value in class `PatternId`.
riid: GUID.
Refer https://docs.microsoft.com/en-us/windows/desktop/api/uiautomationclient/nf-uiautomationclient-iuiautomationele... | uiautomation/uiautomation.py | def GetPatternAs(self, patternId: int, riid):
"""
Call IUIAutomationElement::GetCurrentPatternAs.
Get a new pattern by pattern id if it supports the pattern, todo.
patternId: int, a value in class `PatternId`.
riid: GUID.
Refer https://docs.microsoft.com/en-us/windows/des... | def GetPatternAs(self, patternId: int, riid):
"""
Call IUIAutomationElement::GetCurrentPatternAs.
Get a new pattern by pattern id if it supports the pattern, todo.
patternId: int, a value in class `PatternId`.
riid: GUID.
Refer https://docs.microsoft.com/en-us/windows/des... | [
"Call",
"IUIAutomationElement",
"::",
"GetCurrentPatternAs",
".",
"Get",
"a",
"new",
"pattern",
"by",
"pattern",
"id",
"if",
"it",
"supports",
"the",
"pattern",
"todo",
".",
"patternId",
":",
"int",
"a",
"value",
"in",
"class",
"PatternId",
".",
"riid",
":",... | yinkaisheng/Python-UIAutomation-for-Windows | python | https://github.com/yinkaisheng/Python-UIAutomation-for-Windows/blob/2cc91060982cc8b777152e698d677cc2989bf263/uiautomation/uiautomation.py#L5601-L5609 | [
"def",
"GetPatternAs",
"(",
"self",
",",
"patternId",
":",
"int",
",",
"riid",
")",
":",
"return",
"self",
".",
"Element",
".",
"GetCurrentPatternAs",
"(",
"patternId",
",",
"riid",
")"
] | 2cc91060982cc8b777152e698d677cc2989bf263 |
valid | Control.GetPropertyValueEx | Call IUIAutomationElement::GetCurrentPropertyValueEx.
propertyId: int, a value in class `PropertyId`.
ignoreDefaultValue: int, 0 or 1.
Return Any, corresponding type according to propertyId.
Refer https://docs.microsoft.com/en-us/windows/desktop/api/uiautomationclient/nf-uiautomationclie... | uiautomation/uiautomation.py | def GetPropertyValueEx(self, propertyId: int, ignoreDefaultValue: int) -> Any:
"""
Call IUIAutomationElement::GetCurrentPropertyValueEx.
propertyId: int, a value in class `PropertyId`.
ignoreDefaultValue: int, 0 or 1.
Return Any, corresponding type according to propertyId.
... | def GetPropertyValueEx(self, propertyId: int, ignoreDefaultValue: int) -> Any:
"""
Call IUIAutomationElement::GetCurrentPropertyValueEx.
propertyId: int, a value in class `PropertyId`.
ignoreDefaultValue: int, 0 or 1.
Return Any, corresponding type according to propertyId.
... | [
"Call",
"IUIAutomationElement",
"::",
"GetCurrentPropertyValueEx",
".",
"propertyId",
":",
"int",
"a",
"value",
"in",
"class",
"PropertyId",
".",
"ignoreDefaultValue",
":",
"int",
"0",
"or",
"1",
".",
"Return",
"Any",
"corresponding",
"type",
"according",
"to",
... | yinkaisheng/Python-UIAutomation-for-Windows | python | https://github.com/yinkaisheng/Python-UIAutomation-for-Windows/blob/2cc91060982cc8b777152e698d677cc2989bf263/uiautomation/uiautomation.py#L5620-L5628 | [
"def",
"GetPropertyValueEx",
"(",
"self",
",",
"propertyId",
":",
"int",
",",
"ignoreDefaultValue",
":",
"int",
")",
"->",
"Any",
":",
"return",
"self",
".",
"Element",
".",
"GetCurrentPropertyValueEx",
"(",
"propertyId",
",",
"ignoreDefaultValue",
")"
] | 2cc91060982cc8b777152e698d677cc2989bf263 |
valid | Control.Element | Property Element.
Return `ctypes.POINTER(IUIAutomationElement)`. | uiautomation/uiautomation.py | def Element(self):
"""
Property Element.
Return `ctypes.POINTER(IUIAutomationElement)`.
"""
if not self._element:
self.Refind(maxSearchSeconds=TIME_OUT_SECOND, searchIntervalSeconds=self.searchWaitTime)
return self._element | def Element(self):
"""
Property Element.
Return `ctypes.POINTER(IUIAutomationElement)`.
"""
if not self._element:
self.Refind(maxSearchSeconds=TIME_OUT_SECOND, searchIntervalSeconds=self.searchWaitTime)
return self._element | [
"Property",
"Element",
".",
"Return",
"ctypes",
".",
"POINTER",
"(",
"IUIAutomationElement",
")",
"."
] | yinkaisheng/Python-UIAutomation-for-Windows | python | https://github.com/yinkaisheng/Python-UIAutomation-for-Windows/blob/2cc91060982cc8b777152e698d677cc2989bf263/uiautomation/uiautomation.py#L5649-L5656 | [
"def",
"Element",
"(",
"self",
")",
":",
"if",
"not",
"self",
".",
"_element",
":",
"self",
".",
"Refind",
"(",
"maxSearchSeconds",
"=",
"TIME_OUT_SECOND",
",",
"searchIntervalSeconds",
"=",
"self",
".",
"searchWaitTime",
")",
"return",
"self",
".",
"_elemen... | 2cc91060982cc8b777152e698d677cc2989bf263 |
valid | Control.GetCachedPattern | Get a pattern by patternId.
patternId: int, a value in class `PatternId`.
Return a pattern if it supports the pattern else None.
cache: bool, if True, store the pattern for later use, if False, get a new pattern by `self.GetPattern`. | uiautomation/uiautomation.py | def GetCachedPattern(self, patternId: int, cache: bool):
"""
Get a pattern by patternId.
patternId: int, a value in class `PatternId`.
Return a pattern if it supports the pattern else None.
cache: bool, if True, store the pattern for later use, if False, get a new pattern by `sel... | def GetCachedPattern(self, patternId: int, cache: bool):
"""
Get a pattern by patternId.
patternId: int, a value in class `PatternId`.
Return a pattern if it supports the pattern else None.
cache: bool, if True, store the pattern for later use, if False, get a new pattern by `sel... | [
"Get",
"a",
"pattern",
"by",
"patternId",
".",
"patternId",
":",
"int",
"a",
"value",
"in",
"class",
"PatternId",
".",
"Return",
"a",
"pattern",
"if",
"it",
"supports",
"the",
"pattern",
"else",
"None",
".",
"cache",
":",
"bool",
"if",
"True",
"store",
... | yinkaisheng/Python-UIAutomation-for-Windows | python | https://github.com/yinkaisheng/Python-UIAutomation-for-Windows/blob/2cc91060982cc8b777152e698d677cc2989bf263/uiautomation/uiautomation.py#L5665-L5685 | [
"def",
"GetCachedPattern",
"(",
"self",
",",
"patternId",
":",
"int",
",",
"cache",
":",
"bool",
")",
":",
"if",
"cache",
":",
"pattern",
"=",
"self",
".",
"_supportedPatterns",
".",
"get",
"(",
"patternId",
",",
"None",
")",
"if",
"pattern",
":",
"ret... | 2cc91060982cc8b777152e698d677cc2989bf263 |
valid | Control.GetAncestorControl | Get a ancestor control that matches the condition.
condition: Callable, function (control: Control, depth: int)->bool,
depth starts with -1 and decreses when search goes up.
Return `Control` subclass or None. | uiautomation/uiautomation.py | def GetAncestorControl(self, condition: Callable) -> 'Control':
"""
Get a ancestor control that matches the condition.
condition: Callable, function (control: Control, depth: int)->bool,
depth starts with -1 and decreses when search goes up.
Return `Control` subclass o... | def GetAncestorControl(self, condition: Callable) -> 'Control':
"""
Get a ancestor control that matches the condition.
condition: Callable, function (control: Control, depth: int)->bool,
depth starts with -1 and decreses when search goes up.
Return `Control` subclass o... | [
"Get",
"a",
"ancestor",
"control",
"that",
"matches",
"the",
"condition",
".",
"condition",
":",
"Callable",
"function",
"(",
"control",
":",
"Control",
"depth",
":",
"int",
")",
"-",
">",
"bool",
"depth",
"starts",
"with",
"-",
"1",
"and",
"decreses",
"... | yinkaisheng/Python-UIAutomation-for-Windows | python | https://github.com/yinkaisheng/Python-UIAutomation-for-Windows/blob/2cc91060982cc8b777152e698d677cc2989bf263/uiautomation/uiautomation.py#L5693-L5709 | [
"def",
"GetAncestorControl",
"(",
"self",
",",
"condition",
":",
"Callable",
")",
"->",
"'Control'",
":",
"ancestor",
"=",
"self",
"depth",
"=",
"0",
"while",
"True",
":",
"ancestor",
"=",
"ancestor",
".",
"GetParentControl",
"(",
")",
"depth",
"-=",
"1",
... | 2cc91060982cc8b777152e698d677cc2989bf263 |
valid | Control.GetParentControl | Return `Control` subclass or None. | uiautomation/uiautomation.py | def GetParentControl(self) -> 'Control':
"""
Return `Control` subclass or None.
"""
ele = _AutomationClient.instance().ViewWalker.GetParentElement(self.Element)
return Control.CreateControlFromElement(ele) | def GetParentControl(self) -> 'Control':
"""
Return `Control` subclass or None.
"""
ele = _AutomationClient.instance().ViewWalker.GetParentElement(self.Element)
return Control.CreateControlFromElement(ele) | [
"Return",
"Control",
"subclass",
"or",
"None",
"."
] | yinkaisheng/Python-UIAutomation-for-Windows | python | https://github.com/yinkaisheng/Python-UIAutomation-for-Windows/blob/2cc91060982cc8b777152e698d677cc2989bf263/uiautomation/uiautomation.py#L5711-L5716 | [
"def",
"GetParentControl",
"(",
"self",
")",
"->",
"'Control'",
":",
"ele",
"=",
"_AutomationClient",
".",
"instance",
"(",
")",
".",
"ViewWalker",
".",
"GetParentElement",
"(",
"self",
".",
"Element",
")",
"return",
"Control",
".",
"CreateControlFromElement",
... | 2cc91060982cc8b777152e698d677cc2989bf263 |
valid | Control.GetFirstChildControl | Return `Control` subclass or None. | uiautomation/uiautomation.py | def GetFirstChildControl(self) -> 'Control':
"""
Return `Control` subclass or None.
"""
ele = _AutomationClient.instance().ViewWalker.GetFirstChildElement(self.Element)
return Control.CreateControlFromElement(ele) | def GetFirstChildControl(self) -> 'Control':
"""
Return `Control` subclass or None.
"""
ele = _AutomationClient.instance().ViewWalker.GetFirstChildElement(self.Element)
return Control.CreateControlFromElement(ele) | [
"Return",
"Control",
"subclass",
"or",
"None",
"."
] | yinkaisheng/Python-UIAutomation-for-Windows | python | https://github.com/yinkaisheng/Python-UIAutomation-for-Windows/blob/2cc91060982cc8b777152e698d677cc2989bf263/uiautomation/uiautomation.py#L5718-L5723 | [
"def",
"GetFirstChildControl",
"(",
"self",
")",
"->",
"'Control'",
":",
"ele",
"=",
"_AutomationClient",
".",
"instance",
"(",
")",
".",
"ViewWalker",
".",
"GetFirstChildElement",
"(",
"self",
".",
"Element",
")",
"return",
"Control",
".",
"CreateControlFromEle... | 2cc91060982cc8b777152e698d677cc2989bf263 |
valid | Control.GetLastChildControl | Return `Control` subclass or None. | uiautomation/uiautomation.py | def GetLastChildControl(self) -> 'Control':
"""
Return `Control` subclass or None.
"""
ele = _AutomationClient.instance().ViewWalker.GetLastChildElement(self.Element)
return Control.CreateControlFromElement(ele) | def GetLastChildControl(self) -> 'Control':
"""
Return `Control` subclass or None.
"""
ele = _AutomationClient.instance().ViewWalker.GetLastChildElement(self.Element)
return Control.CreateControlFromElement(ele) | [
"Return",
"Control",
"subclass",
"or",
"None",
"."
] | yinkaisheng/Python-UIAutomation-for-Windows | python | https://github.com/yinkaisheng/Python-UIAutomation-for-Windows/blob/2cc91060982cc8b777152e698d677cc2989bf263/uiautomation/uiautomation.py#L5725-L5730 | [
"def",
"GetLastChildControl",
"(",
"self",
")",
"->",
"'Control'",
":",
"ele",
"=",
"_AutomationClient",
".",
"instance",
"(",
")",
".",
"ViewWalker",
".",
"GetLastChildElement",
"(",
"self",
".",
"Element",
")",
"return",
"Control",
".",
"CreateControlFromEleme... | 2cc91060982cc8b777152e698d677cc2989bf263 |
valid | Control.GetNextSiblingControl | Return `Control` subclass or None. | uiautomation/uiautomation.py | def GetNextSiblingControl(self) -> 'Control':
"""
Return `Control` subclass or None.
"""
ele = _AutomationClient.instance().ViewWalker.GetNextSiblingElement(self.Element)
return Control.CreateControlFromElement(ele) | def GetNextSiblingControl(self) -> 'Control':
"""
Return `Control` subclass or None.
"""
ele = _AutomationClient.instance().ViewWalker.GetNextSiblingElement(self.Element)
return Control.CreateControlFromElement(ele) | [
"Return",
"Control",
"subclass",
"or",
"None",
"."
] | yinkaisheng/Python-UIAutomation-for-Windows | python | https://github.com/yinkaisheng/Python-UIAutomation-for-Windows/blob/2cc91060982cc8b777152e698d677cc2989bf263/uiautomation/uiautomation.py#L5732-L5737 | [
"def",
"GetNextSiblingControl",
"(",
"self",
")",
"->",
"'Control'",
":",
"ele",
"=",
"_AutomationClient",
".",
"instance",
"(",
")",
".",
"ViewWalker",
".",
"GetNextSiblingElement",
"(",
"self",
".",
"Element",
")",
"return",
"Control",
".",
"CreateControlFromE... | 2cc91060982cc8b777152e698d677cc2989bf263 |
valid | Control.GetPreviousSiblingControl | Return `Control` subclass or None. | uiautomation/uiautomation.py | def GetPreviousSiblingControl(self) -> 'Control':
"""
Return `Control` subclass or None.
"""
ele = _AutomationClient.instance().ViewWalker.GetPreviousSiblingElement(self.Element)
return Control.CreateControlFromElement(ele) | def GetPreviousSiblingControl(self) -> 'Control':
"""
Return `Control` subclass or None.
"""
ele = _AutomationClient.instance().ViewWalker.GetPreviousSiblingElement(self.Element)
return Control.CreateControlFromElement(ele) | [
"Return",
"Control",
"subclass",
"or",
"None",
"."
] | yinkaisheng/Python-UIAutomation-for-Windows | python | https://github.com/yinkaisheng/Python-UIAutomation-for-Windows/blob/2cc91060982cc8b777152e698d677cc2989bf263/uiautomation/uiautomation.py#L5739-L5744 | [
"def",
"GetPreviousSiblingControl",
"(",
"self",
")",
"->",
"'Control'",
":",
"ele",
"=",
"_AutomationClient",
".",
"instance",
"(",
")",
".",
"ViewWalker",
".",
"GetPreviousSiblingElement",
"(",
"self",
".",
"Element",
")",
"return",
"Control",
".",
"CreateCont... | 2cc91060982cc8b777152e698d677cc2989bf263 |
valid | Control.GetSiblingControl | Find a SiblingControl by condition(control: Control)->bool.
forward: bool, if True, only search next siblings, if False, search pervious siblings first, then search next siblings.
condition: Callable, function (control: Control)->bool.
Return `Control` subclass or None. | uiautomation/uiautomation.py | def GetSiblingControl(self, condition: Callable, forward: bool = True) -> 'Control':
"""
Find a SiblingControl by condition(control: Control)->bool.
forward: bool, if True, only search next siblings, if False, search pervious siblings first, then search next siblings.
condition: Callable... | def GetSiblingControl(self, condition: Callable, forward: bool = True) -> 'Control':
"""
Find a SiblingControl by condition(control: Control)->bool.
forward: bool, if True, only search next siblings, if False, search pervious siblings first, then search next siblings.
condition: Callable... | [
"Find",
"a",
"SiblingControl",
"by",
"condition",
"(",
"control",
":",
"Control",
")",
"-",
">",
"bool",
".",
"forward",
":",
"bool",
"if",
"True",
"only",
"search",
"next",
"siblings",
"if",
"False",
"search",
"pervious",
"siblings",
"first",
"then",
"sea... | yinkaisheng/Python-UIAutomation-for-Windows | python | https://github.com/yinkaisheng/Python-UIAutomation-for-Windows/blob/2cc91060982cc8b777152e698d677cc2989bf263/uiautomation/uiautomation.py#L5746-L5769 | [
"def",
"GetSiblingControl",
"(",
"self",
",",
"condition",
":",
"Callable",
",",
"forward",
":",
"bool",
"=",
"True",
")",
"->",
"'Control'",
":",
"if",
"not",
"forward",
":",
"prev",
"=",
"self",
"while",
"True",
":",
"prev",
"=",
"prev",
".",
"GetPre... | 2cc91060982cc8b777152e698d677cc2989bf263 |
valid | Control.GetChildren | Return list, a list of `Control` subclasses. | uiautomation/uiautomation.py | def GetChildren(self) -> list:
"""
Return list, a list of `Control` subclasses.
"""
children = []
child = self.GetFirstChildControl()
while child:
children.append(child)
child = child.GetNextSiblingControl()
return children | def GetChildren(self) -> list:
"""
Return list, a list of `Control` subclasses.
"""
children = []
child = self.GetFirstChildControl()
while child:
children.append(child)
child = child.GetNextSiblingControl()
return children | [
"Return",
"list",
"a",
"list",
"of",
"Control",
"subclasses",
"."
] | yinkaisheng/Python-UIAutomation-for-Windows | python | https://github.com/yinkaisheng/Python-UIAutomation-for-Windows/blob/2cc91060982cc8b777152e698d677cc2989bf263/uiautomation/uiautomation.py#L5771-L5780 | [
"def",
"GetChildren",
"(",
"self",
")",
"->",
"list",
":",
"children",
"=",
"[",
"]",
"child",
"=",
"self",
".",
"GetFirstChildControl",
"(",
")",
"while",
"child",
":",
"children",
".",
"append",
"(",
"child",
")",
"child",
"=",
"child",
".",
"GetNext... | 2cc91060982cc8b777152e698d677cc2989bf263 |
valid | Control._CompareFunction | Define how to search.
control: `Control` or its subclass.
depth: int, tree depth from searchFromControl.
Return bool. | uiautomation/uiautomation.py | def _CompareFunction(self, control: 'Control', depth: int) -> bool:
"""
Define how to search.
control: `Control` or its subclass.
depth: int, tree depth from searchFromControl.
Return bool.
"""
for key, value in self.searchProperties.items():
if 'Contr... | def _CompareFunction(self, control: 'Control', depth: int) -> bool:
"""
Define how to search.
control: `Control` or its subclass.
depth: int, tree depth from searchFromControl.
Return bool.
"""
for key, value in self.searchProperties.items():
if 'Contr... | [
"Define",
"how",
"to",
"search",
".",
"control",
":",
"Control",
"or",
"its",
"subclass",
".",
"depth",
":",
"int",
"tree",
"depth",
"from",
"searchFromControl",
".",
"Return",
"bool",
"."
] | yinkaisheng/Python-UIAutomation-for-Windows | python | https://github.com/yinkaisheng/Python-UIAutomation-for-Windows/blob/2cc91060982cc8b777152e698d677cc2989bf263/uiautomation/uiautomation.py#L5782-L5814 | [
"def",
"_CompareFunction",
"(",
"self",
",",
"control",
":",
"'Control'",
",",
"depth",
":",
"int",
")",
"->",
"bool",
":",
"for",
"key",
",",
"value",
"in",
"self",
".",
"searchProperties",
".",
"items",
"(",
")",
":",
"if",
"'ControlType'",
"==",
"ke... | 2cc91060982cc8b777152e698d677cc2989bf263 |
valid | Control.Exists | maxSearchSeconds: float
searchIntervalSeconds: float
Find control every searchIntervalSeconds seconds in maxSearchSeconds seconds.
Return bool, True if find | uiautomation/uiautomation.py | def Exists(self, maxSearchSeconds: float = 5, searchIntervalSeconds: float = SEARCH_INTERVAL, printIfNotExist: bool = False) -> bool:
"""
maxSearchSeconds: float
searchIntervalSeconds: float
Find control every searchIntervalSeconds seconds in maxSearchSeconds seconds.
Return bool... | def Exists(self, maxSearchSeconds: float = 5, searchIntervalSeconds: float = SEARCH_INTERVAL, printIfNotExist: bool = False) -> bool:
"""
maxSearchSeconds: float
searchIntervalSeconds: float
Find control every searchIntervalSeconds seconds in maxSearchSeconds seconds.
Return bool... | [
"maxSearchSeconds",
":",
"float",
"searchIntervalSeconds",
":",
"float",
"Find",
"control",
"every",
"searchIntervalSeconds",
"seconds",
"in",
"maxSearchSeconds",
"seconds",
".",
"Return",
"bool",
"True",
"if",
"find"
] | yinkaisheng/Python-UIAutomation-for-Windows | python | https://github.com/yinkaisheng/Python-UIAutomation-for-Windows/blob/2cc91060982cc8b777152e698d677cc2989bf263/uiautomation/uiautomation.py#L5816-L5866 | [
"def",
"Exists",
"(",
"self",
",",
"maxSearchSeconds",
":",
"float",
"=",
"5",
",",
"searchIntervalSeconds",
":",
"float",
"=",
"SEARCH_INTERVAL",
",",
"printIfNotExist",
":",
"bool",
"=",
"False",
")",
"->",
"bool",
":",
"if",
"self",
".",
"_element",
"an... | 2cc91060982cc8b777152e698d677cc2989bf263 |
valid | Control.Disappears | maxSearchSeconds: float
searchIntervalSeconds: float
Check if control disappears every searchIntervalSeconds seconds in maxSearchSeconds seconds.
Return bool, True if control disappears. | uiautomation/uiautomation.py | def Disappears(self, maxSearchSeconds: float = 5, searchIntervalSeconds: float = SEARCH_INTERVAL, printIfNotDisappear: bool = False) -> bool:
"""
maxSearchSeconds: float
searchIntervalSeconds: float
Check if control disappears every searchIntervalSeconds seconds in maxSearchSeconds secon... | def Disappears(self, maxSearchSeconds: float = 5, searchIntervalSeconds: float = SEARCH_INTERVAL, printIfNotDisappear: bool = False) -> bool:
"""
maxSearchSeconds: float
searchIntervalSeconds: float
Check if control disappears every searchIntervalSeconds seconds in maxSearchSeconds secon... | [
"maxSearchSeconds",
":",
"float",
"searchIntervalSeconds",
":",
"float",
"Check",
"if",
"control",
"disappears",
"every",
"searchIntervalSeconds",
"seconds",
"in",
"maxSearchSeconds",
"seconds",
".",
"Return",
"bool",
"True",
"if",
"control",
"disappears",
"."
] | yinkaisheng/Python-UIAutomation-for-Windows | python | https://github.com/yinkaisheng/Python-UIAutomation-for-Windows/blob/2cc91060982cc8b777152e698d677cc2989bf263/uiautomation/uiautomation.py#L5868-L5890 | [
"def",
"Disappears",
"(",
"self",
",",
"maxSearchSeconds",
":",
"float",
"=",
"5",
",",
"searchIntervalSeconds",
":",
"float",
"=",
"SEARCH_INTERVAL",
",",
"printIfNotDisappear",
":",
"bool",
"=",
"False",
")",
"->",
"bool",
":",
"global",
"DEBUG_EXIST_DISAPPEAR... | 2cc91060982cc8b777152e698d677cc2989bf263 |
valid | Control.Refind | Refind the control every searchIntervalSeconds seconds in maxSearchSeconds seconds.
maxSearchSeconds: float.
searchIntervalSeconds: float.
raiseException: bool, if True, raise a LookupError if timeout.
Return bool, True if find. | uiautomation/uiautomation.py | def Refind(self, maxSearchSeconds: float = TIME_OUT_SECOND, searchIntervalSeconds: float = SEARCH_INTERVAL, raiseException: bool = True) -> bool:
"""
Refind the control every searchIntervalSeconds seconds in maxSearchSeconds seconds.
maxSearchSeconds: float.
searchIntervalSeconds: float.... | def Refind(self, maxSearchSeconds: float = TIME_OUT_SECOND, searchIntervalSeconds: float = SEARCH_INTERVAL, raiseException: bool = True) -> bool:
"""
Refind the control every searchIntervalSeconds seconds in maxSearchSeconds seconds.
maxSearchSeconds: float.
searchIntervalSeconds: float.... | [
"Refind",
"the",
"control",
"every",
"searchIntervalSeconds",
"seconds",
"in",
"maxSearchSeconds",
"seconds",
".",
"maxSearchSeconds",
":",
"float",
".",
"searchIntervalSeconds",
":",
"float",
".",
"raiseException",
":",
"bool",
"if",
"True",
"raise",
"a",
"LookupEr... | yinkaisheng/Python-UIAutomation-for-Windows | python | https://github.com/yinkaisheng/Python-UIAutomation-for-Windows/blob/2cc91060982cc8b777152e698d677cc2989bf263/uiautomation/uiautomation.py#L5892-L5906 | [
"def",
"Refind",
"(",
"self",
",",
"maxSearchSeconds",
":",
"float",
"=",
"TIME_OUT_SECOND",
",",
"searchIntervalSeconds",
":",
"float",
"=",
"SEARCH_INTERVAL",
",",
"raiseException",
":",
"bool",
"=",
"True",
")",
"->",
"bool",
":",
"if",
"not",
"self",
"."... | 2cc91060982cc8b777152e698d677cc2989bf263 |
valid | Control.MoveCursorToInnerPos | Move cursor to control's internal position, default to center.
x: int, if < 0, move to self.BoundingRectangle.right + x, if not None, ignore ratioX.
y: int, if < 0, move to self.BoundingRectangle.bottom + y, if not None, ignore ratioY.
ratioX: float.
ratioY: float.
simulateMove: ... | uiautomation/uiautomation.py | def MoveCursorToInnerPos(self, x: int = None, y: int = None, ratioX: float = 0.5, ratioY: float = 0.5, simulateMove: bool = True) -> tuple:
"""
Move cursor to control's internal position, default to center.
x: int, if < 0, move to self.BoundingRectangle.right + x, if not None, ignore ratioX.
... | def MoveCursorToInnerPos(self, x: int = None, y: int = None, ratioX: float = 0.5, ratioY: float = 0.5, simulateMove: bool = True) -> tuple:
"""
Move cursor to control's internal position, default to center.
x: int, if < 0, move to self.BoundingRectangle.right + x, if not None, ignore ratioX.
... | [
"Move",
"cursor",
"to",
"control",
"s",
"internal",
"position",
"default",
"to",
"center",
".",
"x",
":",
"int",
"if",
"<",
"0",
"move",
"to",
"self",
".",
"BoundingRectangle",
".",
"right",
"+",
"x",
"if",
"not",
"None",
"ignore",
"ratioX",
".",
"y",
... | yinkaisheng/Python-UIAutomation-for-Windows | python | https://github.com/yinkaisheng/Python-UIAutomation-for-Windows/blob/2cc91060982cc8b777152e698d677cc2989bf263/uiautomation/uiautomation.py#L5908-L5935 | [
"def",
"MoveCursorToInnerPos",
"(",
"self",
",",
"x",
":",
"int",
"=",
"None",
",",
"y",
":",
"int",
"=",
"None",
",",
"ratioX",
":",
"float",
"=",
"0.5",
",",
"ratioY",
":",
"float",
"=",
"0.5",
",",
"simulateMove",
":",
"bool",
"=",
"True",
")",
... | 2cc91060982cc8b777152e698d677cc2989bf263 |
valid | Control.MoveCursorToMyCenter | Move cursor to control's center.
Return tuple, two ints tuple(x,y), the cursor positon relative to screen(0,0) after moving . | uiautomation/uiautomation.py | def MoveCursorToMyCenter(self, simulateMove: bool = True) -> tuple:
"""
Move cursor to control's center.
Return tuple, two ints tuple(x,y), the cursor positon relative to screen(0,0) after moving .
"""
return self.MoveCursorToInnerPos(simulateMove=simulateMove) | def MoveCursorToMyCenter(self, simulateMove: bool = True) -> tuple:
"""
Move cursor to control's center.
Return tuple, two ints tuple(x,y), the cursor positon relative to screen(0,0) after moving .
"""
return self.MoveCursorToInnerPos(simulateMove=simulateMove) | [
"Move",
"cursor",
"to",
"control",
"s",
"center",
".",
"Return",
"tuple",
"two",
"ints",
"tuple",
"(",
"x",
"y",
")",
"the",
"cursor",
"positon",
"relative",
"to",
"screen",
"(",
"0",
"0",
")",
"after",
"moving",
"."
] | yinkaisheng/Python-UIAutomation-for-Windows | python | https://github.com/yinkaisheng/Python-UIAutomation-for-Windows/blob/2cc91060982cc8b777152e698d677cc2989bf263/uiautomation/uiautomation.py#L5937-L5942 | [
"def",
"MoveCursorToMyCenter",
"(",
"self",
",",
"simulateMove",
":",
"bool",
"=",
"True",
")",
"->",
"tuple",
":",
"return",
"self",
".",
"MoveCursorToInnerPos",
"(",
"simulateMove",
"=",
"simulateMove",
")"
] | 2cc91060982cc8b777152e698d677cc2989bf263 |
valid | Control.Click | x: int, if < 0, click self.BoundingRectangle.right + x, if not None, ignore ratioX.
y: int, if < 0, click self.BoundingRectangle.bottom + y, if not None, ignore ratioY.
ratioX: float.
ratioY: float.
simulateMove: bool, if True, first move cursor to control smoothly.
waitTime: flo... | uiautomation/uiautomation.py | def Click(self, x: int = None, y: int = None, ratioX: float = 0.5, ratioY: float = 0.5, simulateMove: bool = True, waitTime: float = OPERATION_WAIT_TIME) -> None:
"""
x: int, if < 0, click self.BoundingRectangle.right + x, if not None, ignore ratioX.
y: int, if < 0, click self.BoundingRectangle.... | def Click(self, x: int = None, y: int = None, ratioX: float = 0.5, ratioY: float = 0.5, simulateMove: bool = True, waitTime: float = OPERATION_WAIT_TIME) -> None:
"""
x: int, if < 0, click self.BoundingRectangle.right + x, if not None, ignore ratioX.
y: int, if < 0, click self.BoundingRectangle.... | [
"x",
":",
"int",
"if",
"<",
"0",
"click",
"self",
".",
"BoundingRectangle",
".",
"right",
"+",
"x",
"if",
"not",
"None",
"ignore",
"ratioX",
".",
"y",
":",
"int",
"if",
"<",
"0",
"click",
"self",
".",
"BoundingRectangle",
".",
"bottom",
"+",
"y",
"... | yinkaisheng/Python-UIAutomation-for-Windows | python | https://github.com/yinkaisheng/Python-UIAutomation-for-Windows/blob/2cc91060982cc8b777152e698d677cc2989bf263/uiautomation/uiautomation.py#L5944-L5959 | [
"def",
"Click",
"(",
"self",
",",
"x",
":",
"int",
"=",
"None",
",",
"y",
":",
"int",
"=",
"None",
",",
"ratioX",
":",
"float",
"=",
"0.5",
",",
"ratioY",
":",
"float",
"=",
"0.5",
",",
"simulateMove",
":",
"bool",
"=",
"True",
",",
"waitTime",
... | 2cc91060982cc8b777152e698d677cc2989bf263 |
valid | Control.DoubleClick | x: int, if < 0, right click self.BoundingRectangle.right + x, if not None, ignore ratioX.
y: int, if < 0, right click self.BoundingRectangle.bottom + y, if not None, ignore ratioY.
ratioX: float.
ratioY: float.
simulateMove: bool, if True, first move cursor to control smoothly.
w... | uiautomation/uiautomation.py | def DoubleClick(self, x: int = None, y: int = None, ratioX: float = 0.5, ratioY: float = 0.5, simulateMove: bool = True, waitTime: float = OPERATION_WAIT_TIME) -> None:
"""
x: int, if < 0, right click self.BoundingRectangle.right + x, if not None, ignore ratioX.
y: int, if < 0, right click self.... | def DoubleClick(self, x: int = None, y: int = None, ratioX: float = 0.5, ratioY: float = 0.5, simulateMove: bool = True, waitTime: float = OPERATION_WAIT_TIME) -> None:
"""
x: int, if < 0, right click self.BoundingRectangle.right + x, if not None, ignore ratioX.
y: int, if < 0, right click self.... | [
"x",
":",
"int",
"if",
"<",
"0",
"right",
"click",
"self",
".",
"BoundingRectangle",
".",
"right",
"+",
"x",
"if",
"not",
"None",
"ignore",
"ratioX",
".",
"y",
":",
"int",
"if",
"<",
"0",
"right",
"click",
"self",
".",
"BoundingRectangle",
".",
"bott... | yinkaisheng/Python-UIAutomation-for-Windows | python | https://github.com/yinkaisheng/Python-UIAutomation-for-Windows/blob/2cc91060982cc8b777152e698d677cc2989bf263/uiautomation/uiautomation.py#L5995-L6010 | [
"def",
"DoubleClick",
"(",
"self",
",",
"x",
":",
"int",
"=",
"None",
",",
"y",
":",
"int",
"=",
"None",
",",
"ratioX",
":",
"float",
"=",
"0.5",
",",
"ratioY",
":",
"float",
"=",
"0.5",
",",
"simulateMove",
":",
"bool",
"=",
"True",
",",
"waitTi... | 2cc91060982cc8b777152e698d677cc2989bf263 |
valid | Control.WheelDown | Make control have focus first, move cursor to center and mouse wheel down.
wheelTimes: int.
interval: float.
waitTime: float. | uiautomation/uiautomation.py | def WheelDown(self, wheelTimes: int = 1, interval: float = 0.05, waitTime: float = OPERATION_WAIT_TIME) -> None:
"""
Make control have focus first, move cursor to center and mouse wheel down.
wheelTimes: int.
interval: float.
waitTime: float.
"""
x, y = GetCursorP... | def WheelDown(self, wheelTimes: int = 1, interval: float = 0.05, waitTime: float = OPERATION_WAIT_TIME) -> None:
"""
Make control have focus first, move cursor to center and mouse wheel down.
wheelTimes: int.
interval: float.
waitTime: float.
"""
x, y = GetCursorP... | [
"Make",
"control",
"have",
"focus",
"first",
"move",
"cursor",
"to",
"center",
"and",
"mouse",
"wheel",
"down",
".",
"wheelTimes",
":",
"int",
".",
"interval",
":",
"float",
".",
"waitTime",
":",
"float",
"."
] | yinkaisheng/Python-UIAutomation-for-Windows | python | https://github.com/yinkaisheng/Python-UIAutomation-for-Windows/blob/2cc91060982cc8b777152e698d677cc2989bf263/uiautomation/uiautomation.py#L6012-L6023 | [
"def",
"WheelDown",
"(",
"self",
",",
"wheelTimes",
":",
"int",
"=",
"1",
",",
"interval",
":",
"float",
"=",
"0.05",
",",
"waitTime",
":",
"float",
"=",
"OPERATION_WAIT_TIME",
")",
"->",
"None",
":",
"x",
",",
"y",
"=",
"GetCursorPos",
"(",
")",
"se... | 2cc91060982cc8b777152e698d677cc2989bf263 |
valid | Control.ShowWindow | Get a native handle from self or ancestors until valid and call native `ShowWindow` with cmdShow.
cmdShow: int, a value in in class `SW`.
waitTime: float.
Return bool, True if succeed otherwise False. | uiautomation/uiautomation.py | def ShowWindow(self, cmdShow: int, waitTime: float = OPERATION_WAIT_TIME) -> bool:
"""
Get a native handle from self or ancestors until valid and call native `ShowWindow` with cmdShow.
cmdShow: int, a value in in class `SW`.
waitTime: float.
Return bool, True if succeed otherwise... | def ShowWindow(self, cmdShow: int, waitTime: float = OPERATION_WAIT_TIME) -> bool:
"""
Get a native handle from self or ancestors until valid and call native `ShowWindow` with cmdShow.
cmdShow: int, a value in in class `SW`.
waitTime: float.
Return bool, True if succeed otherwise... | [
"Get",
"a",
"native",
"handle",
"from",
"self",
"or",
"ancestors",
"until",
"valid",
"and",
"call",
"native",
"ShowWindow",
"with",
"cmdShow",
".",
"cmdShow",
":",
"int",
"a",
"value",
"in",
"in",
"class",
"SW",
".",
"waitTime",
":",
"float",
".",
"Retur... | yinkaisheng/Python-UIAutomation-for-Windows | python | https://github.com/yinkaisheng/Python-UIAutomation-for-Windows/blob/2cc91060982cc8b777152e698d677cc2989bf263/uiautomation/uiautomation.py#L6038-L6054 | [
"def",
"ShowWindow",
"(",
"self",
",",
"cmdShow",
":",
"int",
",",
"waitTime",
":",
"float",
"=",
"OPERATION_WAIT_TIME",
")",
"->",
"bool",
":",
"handle",
"=",
"self",
".",
"NativeWindowHandle",
"if",
"not",
"handle",
":",
"control",
"=",
"self",
"while",
... | 2cc91060982cc8b777152e698d677cc2989bf263 |
valid | Control.Show | Call native `ShowWindow(SW.Show)`.
Return bool, True if succeed otherwise False. | uiautomation/uiautomation.py | def Show(self, waitTime: float = OPERATION_WAIT_TIME) -> bool:
"""
Call native `ShowWindow(SW.Show)`.
Return bool, True if succeed otherwise False.
"""
return self.ShowWindow(SW.Show, waitTime) | def Show(self, waitTime: float = OPERATION_WAIT_TIME) -> bool:
"""
Call native `ShowWindow(SW.Show)`.
Return bool, True if succeed otherwise False.
"""
return self.ShowWindow(SW.Show, waitTime) | [
"Call",
"native",
"ShowWindow",
"(",
"SW",
".",
"Show",
")",
".",
"Return",
"bool",
"True",
"if",
"succeed",
"otherwise",
"False",
"."
] | yinkaisheng/Python-UIAutomation-for-Windows | python | https://github.com/yinkaisheng/Python-UIAutomation-for-Windows/blob/2cc91060982cc8b777152e698d677cc2989bf263/uiautomation/uiautomation.py#L6056-L6061 | [
"def",
"Show",
"(",
"self",
",",
"waitTime",
":",
"float",
"=",
"OPERATION_WAIT_TIME",
")",
"->",
"bool",
":",
"return",
"self",
".",
"ShowWindow",
"(",
"SW",
".",
"Show",
",",
"waitTime",
")"
] | 2cc91060982cc8b777152e698d677cc2989bf263 |
valid | Control.Hide | Call native `ShowWindow(SW.Hide)`.
waitTime: float
Return bool, True if succeed otherwise False. | uiautomation/uiautomation.py | def Hide(self, waitTime: float = OPERATION_WAIT_TIME) -> bool:
"""
Call native `ShowWindow(SW.Hide)`.
waitTime: float
Return bool, True if succeed otherwise False.
"""
return self.ShowWindow(SW.Hide, waitTime) | def Hide(self, waitTime: float = OPERATION_WAIT_TIME) -> bool:
"""
Call native `ShowWindow(SW.Hide)`.
waitTime: float
Return bool, True if succeed otherwise False.
"""
return self.ShowWindow(SW.Hide, waitTime) | [
"Call",
"native",
"ShowWindow",
"(",
"SW",
".",
"Hide",
")",
".",
"waitTime",
":",
"float",
"Return",
"bool",
"True",
"if",
"succeed",
"otherwise",
"False",
"."
] | yinkaisheng/Python-UIAutomation-for-Windows | python | https://github.com/yinkaisheng/Python-UIAutomation-for-Windows/blob/2cc91060982cc8b777152e698d677cc2989bf263/uiautomation/uiautomation.py#L6063-L6069 | [
"def",
"Hide",
"(",
"self",
",",
"waitTime",
":",
"float",
"=",
"OPERATION_WAIT_TIME",
")",
"->",
"bool",
":",
"return",
"self",
".",
"ShowWindow",
"(",
"SW",
".",
"Hide",
",",
"waitTime",
")"
] | 2cc91060982cc8b777152e698d677cc2989bf263 |
valid | Control.MoveWindow | Call native MoveWindow if control has a valid native handle.
x: int.
y: int.
width: int.
height: int.
repaint: bool.
Return bool, True if succeed otherwise False. | uiautomation/uiautomation.py | def MoveWindow(self, x: int, y: int, width: int, height: int, repaint: bool = True) -> bool:
"""
Call native MoveWindow if control has a valid native handle.
x: int.
y: int.
width: int.
height: int.
repaint: bool.
Return bool, True if succeed otherwise Fal... | def MoveWindow(self, x: int, y: int, width: int, height: int, repaint: bool = True) -> bool:
"""
Call native MoveWindow if control has a valid native handle.
x: int.
y: int.
width: int.
height: int.
repaint: bool.
Return bool, True if succeed otherwise Fal... | [
"Call",
"native",
"MoveWindow",
"if",
"control",
"has",
"a",
"valid",
"native",
"handle",
".",
"x",
":",
"int",
".",
"y",
":",
"int",
".",
"width",
":",
"int",
".",
"height",
":",
"int",
".",
"repaint",
":",
"bool",
".",
"Return",
"bool",
"True",
"... | yinkaisheng/Python-UIAutomation-for-Windows | python | https://github.com/yinkaisheng/Python-UIAutomation-for-Windows/blob/2cc91060982cc8b777152e698d677cc2989bf263/uiautomation/uiautomation.py#L6071-L6084 | [
"def",
"MoveWindow",
"(",
"self",
",",
"x",
":",
"int",
",",
"y",
":",
"int",
",",
"width",
":",
"int",
",",
"height",
":",
"int",
",",
"repaint",
":",
"bool",
"=",
"True",
")",
"->",
"bool",
":",
"handle",
"=",
"self",
".",
"NativeWindowHandle",
... | 2cc91060982cc8b777152e698d677cc2989bf263 |
valid | Control.SetWindowText | Call native SetWindowText if control has a valid native handle. | uiautomation/uiautomation.py | def SetWindowText(self, text: str) -> bool:
"""
Call native SetWindowText if control has a valid native handle.
"""
handle = self.NativeWindowHandle
if handle:
return SetWindowText(handle, text)
return False | def SetWindowText(self, text: str) -> bool:
"""
Call native SetWindowText if control has a valid native handle.
"""
handle = self.NativeWindowHandle
if handle:
return SetWindowText(handle, text)
return False | [
"Call",
"native",
"SetWindowText",
"if",
"control",
"has",
"a",
"valid",
"native",
"handle",
"."
] | yinkaisheng/Python-UIAutomation-for-Windows | python | https://github.com/yinkaisheng/Python-UIAutomation-for-Windows/blob/2cc91060982cc8b777152e698d677cc2989bf263/uiautomation/uiautomation.py#L6094-L6101 | [
"def",
"SetWindowText",
"(",
"self",
",",
"text",
":",
"str",
")",
"->",
"bool",
":",
"handle",
"=",
"self",
".",
"NativeWindowHandle",
"if",
"handle",
":",
"return",
"SetWindowText",
"(",
"handle",
",",
"text",
")",
"return",
"False"
] | 2cc91060982cc8b777152e698d677cc2989bf263 |
valid | Control.SendKey | Make control have focus first and type a key.
`self.SetFocus` may not work for some controls, you may need to click it to make it have focus.
key: int, a key code value in class Keys.
waitTime: float. | uiautomation/uiautomation.py | def SendKey(self, key: int, waitTime: float = OPERATION_WAIT_TIME) -> None:
"""
Make control have focus first and type a key.
`self.SetFocus` may not work for some controls, you may need to click it to make it have focus.
key: int, a key code value in class Keys.
waitTime: float.... | def SendKey(self, key: int, waitTime: float = OPERATION_WAIT_TIME) -> None:
"""
Make control have focus first and type a key.
`self.SetFocus` may not work for some controls, you may need to click it to make it have focus.
key: int, a key code value in class Keys.
waitTime: float.... | [
"Make",
"control",
"have",
"focus",
"first",
"and",
"type",
"a",
"key",
".",
"self",
".",
"SetFocus",
"may",
"not",
"work",
"for",
"some",
"controls",
"you",
"may",
"need",
"to",
"click",
"it",
"to",
"make",
"it",
"have",
"focus",
".",
"key",
":",
"i... | yinkaisheng/Python-UIAutomation-for-Windows | python | https://github.com/yinkaisheng/Python-UIAutomation-for-Windows/blob/2cc91060982cc8b777152e698d677cc2989bf263/uiautomation/uiautomation.py#L6103-L6111 | [
"def",
"SendKey",
"(",
"self",
",",
"key",
":",
"int",
",",
"waitTime",
":",
"float",
"=",
"OPERATION_WAIT_TIME",
")",
"->",
"None",
":",
"self",
".",
"SetFocus",
"(",
")",
"SendKey",
"(",
"key",
",",
"waitTime",
")"
] | 2cc91060982cc8b777152e698d677cc2989bf263 |
valid | Control.SendKeys | Make control have focus first and type keys.
`self.SetFocus` may not work for some controls, you may need to click it to make it have focus.
keys: str, keys to type, see the docstring of `SendKeys`.
interval: float, seconds between keys. | uiautomation/uiautomation.py | def SendKeys(self, keys: str, interval: float = 0.01, waitTime: float = OPERATION_WAIT_TIME) -> None:
"""
Make control have focus first and type keys.
`self.SetFocus` may not work for some controls, you may need to click it to make it have focus.
keys: str, keys to type, see the docstrin... | def SendKeys(self, keys: str, interval: float = 0.01, waitTime: float = OPERATION_WAIT_TIME) -> None:
"""
Make control have focus first and type keys.
`self.SetFocus` may not work for some controls, you may need to click it to make it have focus.
keys: str, keys to type, see the docstrin... | [
"Make",
"control",
"have",
"focus",
"first",
"and",
"type",
"keys",
".",
"self",
".",
"SetFocus",
"may",
"not",
"work",
"for",
"some",
"controls",
"you",
"may",
"need",
"to",
"click",
"it",
"to",
"make",
"it",
"have",
"focus",
".",
"keys",
":",
"str",
... | yinkaisheng/Python-UIAutomation-for-Windows | python | https://github.com/yinkaisheng/Python-UIAutomation-for-Windows/blob/2cc91060982cc8b777152e698d677cc2989bf263/uiautomation/uiautomation.py#L6113-L6121 | [
"def",
"SendKeys",
"(",
"self",
",",
"keys",
":",
"str",
",",
"interval",
":",
"float",
"=",
"0.01",
",",
"waitTime",
":",
"float",
"=",
"OPERATION_WAIT_TIME",
")",
"->",
"None",
":",
"self",
".",
"SetFocus",
"(",
")",
"SendKeys",
"(",
"keys",
",",
"... | 2cc91060982cc8b777152e698d677cc2989bf263 |
valid | Control.GetPixelColor | Call native `GetPixelColor` if control has a valid native handle.
Use `self.ToBitmap` if control doesn't have a valid native handle or you get many pixels.
x: int, internal x position.
y: int, internal y position.
Return int, a color value in bgr.
r = bgr & 0x0000FF
g = (... | uiautomation/uiautomation.py | def GetPixelColor(self, x: int, y: int) -> int:
"""
Call native `GetPixelColor` if control has a valid native handle.
Use `self.ToBitmap` if control doesn't have a valid native handle or you get many pixels.
x: int, internal x position.
y: int, internal y position.
Return... | def GetPixelColor(self, x: int, y: int) -> int:
"""
Call native `GetPixelColor` if control has a valid native handle.
Use `self.ToBitmap` if control doesn't have a valid native handle or you get many pixels.
x: int, internal x position.
y: int, internal y position.
Return... | [
"Call",
"native",
"GetPixelColor",
"if",
"control",
"has",
"a",
"valid",
"native",
"handle",
".",
"Use",
"self",
".",
"ToBitmap",
"if",
"control",
"doesn",
"t",
"have",
"a",
"valid",
"native",
"handle",
"or",
"you",
"get",
"many",
"pixels",
".",
"x",
":"... | yinkaisheng/Python-UIAutomation-for-Windows | python | https://github.com/yinkaisheng/Python-UIAutomation-for-Windows/blob/2cc91060982cc8b777152e698d677cc2989bf263/uiautomation/uiautomation.py#L6123-L6136 | [
"def",
"GetPixelColor",
"(",
"self",
",",
"x",
":",
"int",
",",
"y",
":",
"int",
")",
"->",
"int",
":",
"handle",
"=",
"self",
".",
"NativeWindowHandle",
"if",
"handle",
":",
"return",
"GetPixelColor",
"(",
"x",
",",
"y",
",",
"handle",
")"
] | 2cc91060982cc8b777152e698d677cc2989bf263 |
valid | Control.ToBitmap | Capture control to a Bitmap object.
x, y: int, the point in control's internal position(from 0,0).
width, height: int, image's width and height from x, y, use 0 for entire area.
If width(or height) < 0, image size will be control's width(or height) - width(or height). | uiautomation/uiautomation.py | def ToBitmap(self, x: int = 0, y: int = 0, width: int = 0, height: int = 0) -> Bitmap:
"""
Capture control to a Bitmap object.
x, y: int, the point in control's internal position(from 0,0).
width, height: int, image's width and height from x, y, use 0 for entire area.
... | def ToBitmap(self, x: int = 0, y: int = 0, width: int = 0, height: int = 0) -> Bitmap:
"""
Capture control to a Bitmap object.
x, y: int, the point in control's internal position(from 0,0).
width, height: int, image's width and height from x, y, use 0 for entire area.
... | [
"Capture",
"control",
"to",
"a",
"Bitmap",
"object",
".",
"x",
"y",
":",
"int",
"the",
"point",
"in",
"control",
"s",
"internal",
"position",
"(",
"from",
"0",
"0",
")",
".",
"width",
"height",
":",
"int",
"image",
"s",
"width",
"and",
"height",
"fro... | yinkaisheng/Python-UIAutomation-for-Windows | python | https://github.com/yinkaisheng/Python-UIAutomation-for-Windows/blob/2cc91060982cc8b777152e698d677cc2989bf263/uiautomation/uiautomation.py#L6138-L6147 | [
"def",
"ToBitmap",
"(",
"self",
",",
"x",
":",
"int",
"=",
"0",
",",
"y",
":",
"int",
"=",
"0",
",",
"width",
":",
"int",
"=",
"0",
",",
"height",
":",
"int",
"=",
"0",
")",
"->",
"Bitmap",
":",
"bitmap",
"=",
"Bitmap",
"(",
")",
"bitmap",
... | 2cc91060982cc8b777152e698d677cc2989bf263 |
valid | Control.CaptureToImage | Capture control to a image file.
savePath: str, should end with .bmp, .jpg, .jpeg, .png, .gif, .tif, .tiff.
x, y: int, the point in control's internal position(from 0,0).
width, height: int, image's width and height from x, y, use 0 for entire area.
If width(or height) < 0... | uiautomation/uiautomation.py | def CaptureToImage(self, savePath: str, x: int = 0, y: int = 0, width: int = 0, height: int = 0) -> bool:
"""
Capture control to a image file.
savePath: str, should end with .bmp, .jpg, .jpeg, .png, .gif, .tif, .tiff.
x, y: int, the point in control's internal position(from 0,0).
... | def CaptureToImage(self, savePath: str, x: int = 0, y: int = 0, width: int = 0, height: int = 0) -> bool:
"""
Capture control to a image file.
savePath: str, should end with .bmp, .jpg, .jpeg, .png, .gif, .tif, .tiff.
x, y: int, the point in control's internal position(from 0,0).
... | [
"Capture",
"control",
"to",
"a",
"image",
"file",
".",
"savePath",
":",
"str",
"should",
"end",
"with",
".",
"bmp",
".",
"jpg",
".",
"jpeg",
".",
"png",
".",
"gif",
".",
"tif",
".",
"tiff",
".",
"x",
"y",
":",
"int",
"the",
"point",
"in",
"contro... | yinkaisheng/Python-UIAutomation-for-Windows | python | https://github.com/yinkaisheng/Python-UIAutomation-for-Windows/blob/2cc91060982cc8b777152e698d677cc2989bf263/uiautomation/uiautomation.py#L6149-L6161 | [
"def",
"CaptureToImage",
"(",
"self",
",",
"savePath",
":",
"str",
",",
"x",
":",
"int",
"=",
"0",
",",
"y",
":",
"int",
"=",
"0",
",",
"width",
":",
"int",
"=",
"0",
",",
"height",
":",
"int",
"=",
"0",
")",
"->",
"bool",
":",
"bitmap",
"=",... | 2cc91060982cc8b777152e698d677cc2989bf263 |
valid | Control.IsTopLevel | Determine whether current control is top level. | uiautomation/uiautomation.py | def IsTopLevel(self) -> bool:
"""Determine whether current control is top level."""
handle = self.NativeWindowHandle
if handle:
return GetAncestor(handle, GAFlag.Root) == handle
return False | def IsTopLevel(self) -> bool:
"""Determine whether current control is top level."""
handle = self.NativeWindowHandle
if handle:
return GetAncestor(handle, GAFlag.Root) == handle
return False | [
"Determine",
"whether",
"current",
"control",
"is",
"top",
"level",
"."
] | yinkaisheng/Python-UIAutomation-for-Windows | python | https://github.com/yinkaisheng/Python-UIAutomation-for-Windows/blob/2cc91060982cc8b777152e698d677cc2989bf263/uiautomation/uiautomation.py#L6163-L6168 | [
"def",
"IsTopLevel",
"(",
"self",
")",
"->",
"bool",
":",
"handle",
"=",
"self",
".",
"NativeWindowHandle",
"if",
"handle",
":",
"return",
"GetAncestor",
"(",
"handle",
",",
"GAFlag",
".",
"Root",
")",
"==",
"handle",
"return",
"False"
] | 2cc91060982cc8b777152e698d677cc2989bf263 |
valid | Control.GetTopLevelControl | Get the top level control which current control lays.
If current control is top level, return self.
If current control is root control, return None.
Return `PaneControl` or `WindowControl` or None. | uiautomation/uiautomation.py | def GetTopLevelControl(self) -> 'Control':
"""
Get the top level control which current control lays.
If current control is top level, return self.
If current control is root control, return None.
Return `PaneControl` or `WindowControl` or None.
"""
handle = self.N... | def GetTopLevelControl(self) -> 'Control':
"""
Get the top level control which current control lays.
If current control is top level, return self.
If current control is root control, return None.
Return `PaneControl` or `WindowControl` or None.
"""
handle = self.N... | [
"Get",
"the",
"top",
"level",
"control",
"which",
"current",
"control",
"lays",
".",
"If",
"current",
"control",
"is",
"top",
"level",
"return",
"self",
".",
"If",
"current",
"control",
"is",
"root",
"control",
"return",
"None",
".",
"Return",
"PaneControl",... | yinkaisheng/Python-UIAutomation-for-Windows | python | https://github.com/yinkaisheng/Python-UIAutomation-for-Windows/blob/2cc91060982cc8b777152e698d677cc2989bf263/uiautomation/uiautomation.py#L6170-L6195 | [
"def",
"GetTopLevelControl",
"(",
"self",
")",
"->",
"'Control'",
":",
"handle",
"=",
"self",
".",
"NativeWindowHandle",
"if",
"handle",
":",
"topHandle",
"=",
"GetAncestor",
"(",
"handle",
",",
"GAFlag",
".",
"Root",
")",
"if",
"topHandle",
":",
"if",
"to... | 2cc91060982cc8b777152e698d677cc2989bf263 |
valid | ComboBoxControl.Select | Show combobox's popup menu and select a item by name.
itemName: str.
condition: Callable function(comboBoxItemName: str)->bool, if condition is valid, ignore itemName.
waitTime: float.
Some comboboxs doesn't support SelectionPattern, here is a workaround.
This method tries to and... | uiautomation/uiautomation.py | def Select(self, itemName: str = '', condition: Callable = None, waitTime: float = OPERATION_WAIT_TIME) -> bool:
"""
Show combobox's popup menu and select a item by name.
itemName: str.
condition: Callable function(comboBoxItemName: str)->bool, if condition is valid, ignore itemName.
... | def Select(self, itemName: str = '', condition: Callable = None, waitTime: float = OPERATION_WAIT_TIME) -> bool:
"""
Show combobox's popup menu and select a item by name.
itemName: str.
condition: Callable function(comboBoxItemName: str)->bool, if condition is valid, ignore itemName.
... | [
"Show",
"combobox",
"s",
"popup",
"menu",
"and",
"select",
"a",
"item",
"by",
"name",
".",
"itemName",
":",
"str",
".",
"condition",
":",
"Callable",
"function",
"(",
"comboBoxItemName",
":",
"str",
")",
"-",
">",
"bool",
"if",
"condition",
"is",
"valid"... | yinkaisheng/Python-UIAutomation-for-Windows | python | https://github.com/yinkaisheng/Python-UIAutomation-for-Windows/blob/2cc91060982cc8b777152e698d677cc2989bf263/uiautomation/uiautomation.py#L6416-L6464 | [
"def",
"Select",
"(",
"self",
",",
"itemName",
":",
"str",
"=",
"''",
",",
"condition",
":",
"Callable",
"=",
"None",
",",
"waitTime",
":",
"float",
"=",
"OPERATION_WAIT_TIME",
")",
"->",
"bool",
":",
"expandCollapsePattern",
"=",
"self",
".",
"GetExpandCo... | 2cc91060982cc8b777152e698d677cc2989bf263 |
valid | TopLevel.SetTopmost | Set top level window topmost.
isTopmost: bool.
waitTime: float. | uiautomation/uiautomation.py | def SetTopmost(self, isTopmost: bool = True, waitTime: float = OPERATION_WAIT_TIME) -> bool:
"""
Set top level window topmost.
isTopmost: bool.
waitTime: float.
"""
if self.IsTopLevel():
ret = SetWindowTopmost(self.NativeWindowHandle, isTopmost)
ti... | def SetTopmost(self, isTopmost: bool = True, waitTime: float = OPERATION_WAIT_TIME) -> bool:
"""
Set top level window topmost.
isTopmost: bool.
waitTime: float.
"""
if self.IsTopLevel():
ret = SetWindowTopmost(self.NativeWindowHandle, isTopmost)
ti... | [
"Set",
"top",
"level",
"window",
"topmost",
".",
"isTopmost",
":",
"bool",
".",
"waitTime",
":",
"float",
"."
] | yinkaisheng/Python-UIAutomation-for-Windows | python | https://github.com/yinkaisheng/Python-UIAutomation-for-Windows/blob/2cc91060982cc8b777152e698d677cc2989bf263/uiautomation/uiautomation.py#L6817-L6827 | [
"def",
"SetTopmost",
"(",
"self",
",",
"isTopmost",
":",
"bool",
"=",
"True",
",",
"waitTime",
":",
"float",
"=",
"OPERATION_WAIT_TIME",
")",
"->",
"bool",
":",
"if",
"self",
".",
"IsTopLevel",
"(",
")",
":",
"ret",
"=",
"SetWindowTopmost",
"(",
"self",
... | 2cc91060982cc8b777152e698d677cc2989bf263 |
valid | TopLevel.Maximize | Set top level window maximize. | uiautomation/uiautomation.py | def Maximize(self, waitTime: float = OPERATION_WAIT_TIME) -> bool:
"""
Set top level window maximize.
"""
if self.IsTopLevel():
return self.ShowWindow(SW.ShowMaximized, waitTime)
return False | def Maximize(self, waitTime: float = OPERATION_WAIT_TIME) -> bool:
"""
Set top level window maximize.
"""
if self.IsTopLevel():
return self.ShowWindow(SW.ShowMaximized, waitTime)
return False | [
"Set",
"top",
"level",
"window",
"maximize",
"."
] | yinkaisheng/Python-UIAutomation-for-Windows | python | https://github.com/yinkaisheng/Python-UIAutomation-for-Windows/blob/2cc91060982cc8b777152e698d677cc2989bf263/uiautomation/uiautomation.py#L6840-L6846 | [
"def",
"Maximize",
"(",
"self",
",",
"waitTime",
":",
"float",
"=",
"OPERATION_WAIT_TIME",
")",
"->",
"bool",
":",
"if",
"self",
".",
"IsTopLevel",
"(",
")",
":",
"return",
"self",
".",
"ShowWindow",
"(",
"SW",
".",
"ShowMaximized",
",",
"waitTime",
")",... | 2cc91060982cc8b777152e698d677cc2989bf263 |
valid | TopLevel.MoveToCenter | Move window to screen center. | uiautomation/uiautomation.py | def MoveToCenter(self) -> bool:
"""
Move window to screen center.
"""
if self.IsTopLevel():
rect = self.BoundingRectangle
screenWidth, screenHeight = GetScreenSize()
x, y = (screenWidth - rect.width()) // 2, (screenHeight - rect.height()) // 2
... | def MoveToCenter(self) -> bool:
"""
Move window to screen center.
"""
if self.IsTopLevel():
rect = self.BoundingRectangle
screenWidth, screenHeight = GetScreenSize()
x, y = (screenWidth - rect.width()) // 2, (screenHeight - rect.height()) // 2
... | [
"Move",
"window",
"to",
"screen",
"center",
"."
] | yinkaisheng/Python-UIAutomation-for-Windows | python | https://github.com/yinkaisheng/Python-UIAutomation-for-Windows/blob/2cc91060982cc8b777152e698d677cc2989bf263/uiautomation/uiautomation.py#L6872-L6883 | [
"def",
"MoveToCenter",
"(",
"self",
")",
"->",
"bool",
":",
"if",
"self",
".",
"IsTopLevel",
"(",
")",
":",
"rect",
"=",
"self",
".",
"BoundingRectangle",
"screenWidth",
",",
"screenHeight",
"=",
"GetScreenSize",
"(",
")",
"x",
",",
"y",
"=",
"(",
"scr... | 2cc91060982cc8b777152e698d677cc2989bf263 |
valid | TopLevel.SetActive | Set top level window active. | uiautomation/uiautomation.py | def SetActive(self, waitTime: float = OPERATION_WAIT_TIME) -> bool:
"""Set top level window active."""
if self.IsTopLevel():
handle = self.NativeWindowHandle
if IsIconic(handle):
ret = ShowWindow(handle, SW.Restore)
elif not IsWindowVisible(handle):
... | def SetActive(self, waitTime: float = OPERATION_WAIT_TIME) -> bool:
"""Set top level window active."""
if self.IsTopLevel():
handle = self.NativeWindowHandle
if IsIconic(handle):
ret = ShowWindow(handle, SW.Restore)
elif not IsWindowVisible(handle):
... | [
"Set",
"top",
"level",
"window",
"active",
"."
] | yinkaisheng/Python-UIAutomation-for-Windows | python | https://github.com/yinkaisheng/Python-UIAutomation-for-Windows/blob/2cc91060982cc8b777152e698d677cc2989bf263/uiautomation/uiautomation.py#L6885-L6896 | [
"def",
"SetActive",
"(",
"self",
",",
"waitTime",
":",
"float",
"=",
"OPERATION_WAIT_TIME",
")",
"->",
"bool",
":",
"if",
"self",
".",
"IsTopLevel",
"(",
")",
":",
"handle",
"=",
"self",
".",
"NativeWindowHandle",
"if",
"IsIconic",
"(",
"handle",
")",
":... | 2cc91060982cc8b777152e698d677cc2989bf263 |
valid | WindowControl.MetroClose | Only work on Windows 8/8.1, if current window is Metro UI.
waitTime: float. | uiautomation/uiautomation.py | def MetroClose(self, waitTime: float = OPERATION_WAIT_TIME) -> None:
"""
Only work on Windows 8/8.1, if current window is Metro UI.
waitTime: float.
"""
if self.ClassName == METRO_WINDOW_CLASS_NAME:
screenWidth, screenHeight = GetScreenSize()
MoveTo(screen... | def MetroClose(self, waitTime: float = OPERATION_WAIT_TIME) -> None:
"""
Only work on Windows 8/8.1, if current window is Metro UI.
waitTime: float.
"""
if self.ClassName == METRO_WINDOW_CLASS_NAME:
screenWidth, screenHeight = GetScreenSize()
MoveTo(screen... | [
"Only",
"work",
"on",
"Windows",
"8",
"/",
"8",
".",
"1",
"if",
"current",
"window",
"is",
"Metro",
"UI",
".",
"waitTime",
":",
"float",
"."
] | yinkaisheng/Python-UIAutomation-for-Windows | python | https://github.com/yinkaisheng/Python-UIAutomation-for-Windows/blob/2cc91060982cc8b777152e698d677cc2989bf263/uiautomation/uiautomation.py#L7278-L7288 | [
"def",
"MetroClose",
"(",
"self",
",",
"waitTime",
":",
"float",
"=",
"OPERATION_WAIT_TIME",
")",
"->",
"None",
":",
"if",
"self",
".",
"ClassName",
"==",
"METRO_WINDOW_CLASS_NAME",
":",
"screenWidth",
",",
"screenHeight",
"=",
"GetScreenSize",
"(",
")",
"Move... | 2cc91060982cc8b777152e698d677cc2989bf263 |
valid | DemoCN | for Chinese language | demos/automation_help_demo.py | def DemoCN():
"""for Chinese language"""
thisWindow = auto.GetConsoleWindow()
auto.Logger.ColorfullyWrite('我将运行<Color=Cyan>cmd</Color>并设置它的<Color=Cyan>屏幕缓冲区</Color>使<Color=Cyan>cmd</Color>一行能容纳很多字符\n\n')
time.sleep(3)
auto.SendKeys('{Win}r')
while not isinstance(auto.GetFocusedControl(), auto.E... | def DemoCN():
"""for Chinese language"""
thisWindow = auto.GetConsoleWindow()
auto.Logger.ColorfullyWrite('我将运行<Color=Cyan>cmd</Color>并设置它的<Color=Cyan>屏幕缓冲区</Color>使<Color=Cyan>cmd</Color>一行能容纳很多字符\n\n')
time.sleep(3)
auto.SendKeys('{Win}r')
while not isinstance(auto.GetFocusedControl(), auto.E... | [
"for",
"Chinese",
"language"
] | yinkaisheng/Python-UIAutomation-for-Windows | python | https://github.com/yinkaisheng/Python-UIAutomation-for-Windows/blob/2cc91060982cc8b777152e698d677cc2989bf263/demos/automation_help_demo.py#L13-L108 | [
"def",
"DemoCN",
"(",
")",
":",
"thisWindow",
"=",
"auto",
".",
"GetConsoleWindow",
"(",
")",
"auto",
".",
"Logger",
".",
"ColorfullyWrite",
"(",
"'我将运行<Color=Cyan>cmd</Color>并设置它的<Color=Cyan>屏幕缓冲区</Color>使<Color=Cyan>cmd</Color>一行能容纳很多字符\\n\\n')",
"",
"time",
".",
"sleep... | 2cc91060982cc8b777152e698d677cc2989bf263 |
valid | DemoEN | for other language | demos/automation_help_demo.py | def DemoEN():
"""for other language"""
thisWindow = auto.GetConsoleWindow()
auto.Logger.ColorfullyWrite('I will run <Color=Cyan>cmd</Color>\n\n')
time.sleep(3)
auto.SendKeys('{Win}r')
while not isinstance(auto.GetFocusedControl(), auto.EditControl):
time.sleep(1)
auto.SendKeys('cmd{... | def DemoEN():
"""for other language"""
thisWindow = auto.GetConsoleWindow()
auto.Logger.ColorfullyWrite('I will run <Color=Cyan>cmd</Color>\n\n')
time.sleep(3)
auto.SendKeys('{Win}r')
while not isinstance(auto.GetFocusedControl(), auto.EditControl):
time.sleep(1)
auto.SendKeys('cmd{... | [
"for",
"other",
"language"
] | yinkaisheng/Python-UIAutomation-for-Windows | python | https://github.com/yinkaisheng/Python-UIAutomation-for-Windows/blob/2cc91060982cc8b777152e698d677cc2989bf263/demos/automation_help_demo.py#L111-L187 | [
"def",
"DemoEN",
"(",
")",
":",
"thisWindow",
"=",
"auto",
".",
"GetConsoleWindow",
"(",
")",
"auto",
".",
"Logger",
".",
"ColorfullyWrite",
"(",
"'I will run <Color=Cyan>cmd</Color>\\n\\n'",
")",
"time",
".",
"sleep",
"(",
"3",
")",
"auto",
".",
"SendKeys",
... | 2cc91060982cc8b777152e698d677cc2989bf263 |
valid | threadFunc | If you want to use functionalities related to Controls and Patterns in a new thread.
You must call InitializeUIAutomationInCurrentThread first in the thread
and call UninitializeUIAutomationInCurrentThread when the thread exits.
But you can't use use a Control or a Pattern created in a different thread.... | demos/uiautomation_in_thread.py | def threadFunc(root):
"""
If you want to use functionalities related to Controls and Patterns in a new thread.
You must call InitializeUIAutomationInCurrentThread first in the thread
and call UninitializeUIAutomationInCurrentThread when the thread exits.
But you can't use use a Control or a Patt... | def threadFunc(root):
"""
If you want to use functionalities related to Controls and Patterns in a new thread.
You must call InitializeUIAutomationInCurrentThread first in the thread
and call UninitializeUIAutomationInCurrentThread when the thread exits.
But you can't use use a Control or a Patt... | [
"If",
"you",
"want",
"to",
"use",
"functionalities",
"related",
"to",
"Controls",
"and",
"Patterns",
"in",
"a",
"new",
"thread",
".",
"You",
"must",
"call",
"InitializeUIAutomationInCurrentThread",
"first",
"in",
"the",
"thread",
"and",
"call",
"UninitializeUIAuto... | yinkaisheng/Python-UIAutomation-for-Windows | python | https://github.com/yinkaisheng/Python-UIAutomation-for-Windows/blob/2cc91060982cc8b777152e698d677cc2989bf263/demos/uiautomation_in_thread.py#L12-L29 | [
"def",
"threadFunc",
"(",
"root",
")",
":",
"#print(root)# you cannot use root because it is root control created in main thread",
"th",
"=",
"threading",
".",
"currentThread",
"(",
")",
"auto",
".",
"Logger",
".",
"WriteLine",
"(",
"'\\nThis is running in a new thread. {} {}... | 2cc91060982cc8b777152e698d677cc2989bf263 |
valid | SaliencyMapAttack._saliency_map | Implements Algorithm 3 in manuscript | foolbox/attacks/saliency.py | def _saliency_map(self, a, image, target, labels, mask, fast=False):
"""Implements Algorithm 3 in manuscript
"""
# pixel influence on target class
alphas = a.gradient(image, target) * mask
# pixel influence on sum of residual classes
# (don't evaluate if fast == True)
... | def _saliency_map(self, a, image, target, labels, mask, fast=False):
"""Implements Algorithm 3 in manuscript
"""
# pixel influence on target class
alphas = a.gradient(image, target) * mask
# pixel influence on sum of residual classes
# (don't evaluate if fast == True)
... | [
"Implements",
"Algorithm",
"3",
"in",
"manuscript"
] | bethgelab/foolbox | python | https://github.com/bethgelab/foolbox/blob/8ab54248c70e45d8580a7d9ee44c9c0fb5755c4a/foolbox/attacks/saliency.py#L153-L179 | [
"def",
"_saliency_map",
"(",
"self",
",",
"a",
",",
"image",
",",
"target",
",",
"labels",
",",
"mask",
",",
"fast",
"=",
"False",
")",
":",
"# pixel influence on target class",
"alphas",
"=",
"a",
".",
"gradient",
"(",
"image",
",",
"target",
")",
"*",
... | 8ab54248c70e45d8580a7d9ee44c9c0fb5755c4a |
valid | TensorFlowModel.from_keras | Alternative constructor for a TensorFlowModel that
accepts a `tf.keras.Model` instance.
Parameters
----------
model : `tensorflow.keras.Model`
A `tensorflow.keras.Model` that accepts a single input tensor
and returns a single output tensor representing logits.
... | foolbox/models/tensorflow.py | def from_keras(cls, model, bounds, input_shape=None,
channel_axis=3, preprocessing=(0, 1)):
"""Alternative constructor for a TensorFlowModel that
accepts a `tf.keras.Model` instance.
Parameters
----------
model : `tensorflow.keras.Model`
A `tensorf... | def from_keras(cls, model, bounds, input_shape=None,
channel_axis=3, preprocessing=(0, 1)):
"""Alternative constructor for a TensorFlowModel that
accepts a `tf.keras.Model` instance.
Parameters
----------
model : `tensorflow.keras.Model`
A `tensorf... | [
"Alternative",
"constructor",
"for",
"a",
"TensorFlowModel",
"that",
"accepts",
"a",
"tf",
".",
"keras",
".",
"Model",
"instance",
"."
] | bethgelab/foolbox | python | https://github.com/bethgelab/foolbox/blob/8ab54248c70e45d8580a7d9ee44c9c0fb5755c4a/foolbox/models/tensorflow.py#L82-L119 | [
"def",
"from_keras",
"(",
"cls",
",",
"model",
",",
"bounds",
",",
"input_shape",
"=",
"None",
",",
"channel_axis",
"=",
"3",
",",
"preprocessing",
"=",
"(",
"0",
",",
"1",
")",
")",
":",
"import",
"tensorflow",
"as",
"tf",
"if",
"input_shape",
"is",
... | 8ab54248c70e45d8580a7d9ee44c9c0fb5755c4a |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.