Skip to main content

Mouse-Hover-after-Intelligent-Recognition

Command Description

Hover the mouse over a specified element after UI Detection is conducted

Command Prototype

UiDetection.Hover(objUiElement,iTimeout,optionArgs)

Parameter Description

ParameterRequiredTypeDefaultDescription
objUiElementTrueexpression{}Select the recognized target of Computer Vision and the feature values of the anchor element
iTimeoutTruenumber30000The amount of time to wait for command retries before "Find Target" throws an exception. Default: 30000 ms (30 seconds)
bContinueOnErrorNonebooleanNoneSpecify whether the automation should continue to support this field even if the activity is incorrect, it is only supported by the Boolean value (true, false) default value
iDelayAfterNonenumber300Delay time (in milliseconds) after executing the activity is 300 milliseconds
iDelayBeforeNonenumber200The delay time (in milliseconds) before any operations are executed is by default 200 milliseconds
bSetForegroundNonebooleanTrueWhether to activate the target window before executing

Demo

TracePrint("----------------------------Intelligent recognition after mouseover--------------- ------------") 
//-------------------------------------------------------------------------------
//[Remarks] Hover the mouse over the element. (This command must be used together with the intelligent recognition screen range)
//Input parameter 1:
// objUiElement--Identifies the target. Note: The eigenvalues ​​of the selected intelligently recognized target element and anchor element
// iTimeOut--timeout time (milliseconds). Note: The amount of time, in milliseconds, to wait for the command to retry the run before the lookup target throws an exception. Default 30000 (30 seconds)
// optionArgs--Optional parameters. Note: This parameter is a number of optional parameters, including error continue execution, delay after execution, delay before execution, activation window, cursor position, abscissa offset, ordinate offset, auxiliary keys, operation type
//out parameters:
// None
//Command prototype: UiDetection.Hover(objUiElement, iTimeout, optionArgs)
#icon("@res:5feef9d0-7f24-11ec-ab08-1d7b5faf0fee.png")
UiDetection.Hover({"wnd":[{"cls":"Chrome_WidgetWin_1","title":"Click - 飞书云文档 - Google Chrome","app":"chrome"}],"cv_engine_version":1,"cv_region":{"x":0,"y":0,"width":0,"height":0},"cv_descriptor":{"anchors":[{"cls_type":100,"height":41,"text":"Click","width":89,"x":584,"y":225}],"confidence":0.800000011920929,"cv_handle":"\"2b3223b0-7f20-11ec-ab08-1d7b5faf0fee\"","match_version":1,"target":{"cls_type":100,"height":41,"text":"智能识别后点击","width":205,"x":584,"y":296}}},30000,{"bContinueOnError":false,"iDelayAfter":300,"iDelayBefore":200,"bSetForeground":true})