public class WindowsApp extends AbstractApp
文件名:WindowsApp.java
用途: 定义在windows操作系统上,对应用程序进行操作的方法
编码时间:2021年12月22日 上午8:09:41
修改时间:2021年12月22日 上午8:09:41
app, appMap, DEFAULT_WAIT_TIME, nowAppName, openWaitTime
Constructor and Description |
---|
WindowsApp() |
Modifier and Type | Method and Description |
---|---|
protected List<Integer> |
getAppPid(String... appCourseKeys)
该方法用于根据应用程序在终端中的名称,查找其对应的pid值,并进行返回。若无法查找到相应的PID值,则返回只有一个-1的集合
|
void |
quit(String appName)
该方法用于终止(强行结束)启动的应用程序
|
public void quit(String appName)
AbstractApp
quit
in class AbstractApp
appName
- 应用名称protected List<Integer> getAppPid(String... appCourseKeys)
AbstractApp
getAppPid
in class AbstractApp
appCourseKeys
- 应用在终端中的名称Copyright © 2024. All rights reserved.