LuaAuxLib 方法

来源:互联网 发布:淘宝司法拍卖车靠谱吗 编辑:程序博客网 时间:2024/06/10 15:53

整理自: lua插件中LuaAuxLib调用按键、触摸、找色、找图等功能

基本命令

触摸命令

KeyPress            --(virtual_key, 0)=KeyPress                    --(virtual_key, 1)=KeyDown                    --(virtual_key, 2)=KeyUpSwipe               --(x1,y1,x2,y2,time)=SwipeTap                 --(x, y)=Tap                    --(x, y, time)=TouchTouchOperation      --(0, x, y, id, 0)=TouchDown                    --(1, x, y, id, time)=TouchMove                    --(2, 0, 0, id, 0)=TouchUpWritePointerInput   --(0, x, y, id, 0)=TouchDownEvent                    --(1, x, y, id, time)=TouchMoveEvent                    --(2, 0, 0, id, 0)=TouchUpEvent

颜色命令

CmpColorCmpColorExColorDiffColorToRGBFindColorFindMultiColorGetColorNumGetPixelColorGetPixelRGBRGB

图像命令

FindPictureEnableFrameBufferCaptureKeepReleaseScreenSnapshotGetKeepStateSnapShot

文字命令

SetDictUseDictSetRowsNumberSetOffsetIntervalFindStrOcrSmartOcr

设备命令

GetDeviceIDGetScreenInfo                                    --(0)=GetScreenX,                        --(1)=GetScreenY,                         --(2)=GetScreenColorDep,                         --(3)=GetScreenRotationGetRunningAppGetSdcardDirGetAppDataPathKeepScreenPlaySoundStopPlaySetScreenScaleShakeVibrate

其他命令

SleepSendTextTracePrintShowMessageRunAppKillAppExtractAttachmentSetControlBarPosSetAppSpeed

界面配置

ReadConfigWriteConfig

界面命令

创造控件

UI_NewLayoutUI_NewRowUI_AddTextViewUI_AddEditTextUI_AddButtonUI_AddRadioGroupUI_AddCheckBoxUI_AddImageViewUI_AddSpinnerUI_AddLineUI_AddWebViewUI_AddTabOpt

重设控件

UI_SetTextViewUI_SetEditTextUI_SetButtonUI_SetRadioGroupUI_SetCheckBoxUI_SetImageViewUI_SetSpinnerUI_SetLineUI_SetWebView

属性

UI_SetTextUI_SetTitleTextUI_SetTextSizeUI_SetEnabledUI_SetVisibleUI_SetColorUI_SetEditInputTypeUI_GetTextUI_GetTitleTextUI_GetEnabledUI_GetColorUI_GetVisible

方法

UI_GetValueUI_ShowUI_CloseUI_ProFileHandleUI_SetFullScreenUI_SetPaddingUI_SetGravity

事件

UI_SetOnEvent

静态事件

UIP_GetAttributeUIP_SetAttribute

扩展命令

设备命令

DEVICE_GetDeviceInfo                                --(0)=Device.Getip,                         --(1)=Device.GetImsi,                         --(2)=Device.GetModel,                         --(3)=Device.GetIccid,                         --(4)=GetNetworkTimeGetDPI

电话命令

PhoneCallSendSMS

系统命令

GetClipTextSetClipTextClearAppCacheClearMemoryGetBatteryLevelGetFrontAppIsFrontIsRunningMemorySearchMemoryReadMemoryWriteEngineVersionOsVersion

文件命令

DIR_CopyDIR_CreateDIR_DeleteDIR_ExistDIR_Rename

日志命令

Logging_OpenLogging_Close

字符串命令

UTF8_InStrUTF8_InStrRevUTF8_LeftUTF8_LengthUTF8_StrCutUTF8_MidUTF8_RightUTF8_StringReverseUTF8_StrnComp

加解密(编码)命令

Encode_Md5Encode_GetJsonLib

网络地址

URL_OperationGetURL_OperationPost

标准库函数

数学函数

VBS_RoundVBS_SGN

字符串函数

VBS_InStrVBS_InStrRevVBS_STRCUTVBS_STRMIDVBS_RelpaceVBS_STRCMPVBS_STRNCMPVBS_GetBaseString

数组函数

NewArrayStringSplitTableCloneTableSize

日期时间函数

GetTickCount
原创粉丝点击