UiPath键盘操作的介绍和使用
一、键盘操作的介绍
模拟用户使用键盘操作的一种行为:
例如使用发送热键(Sendhotkey),输入信息 (Typeinto)的操作
二、键盘操作在UiPath中的使用
1.打开设计器,在设计库中新建一个Sequence,为序列命名及设置Sequence存放的路径
![](https://upload-images.jianshu.io/upload_images/14843435-bb57d15fa77280a8.png?imageMogr2/auto-orient/strip|imageView2/2/w/460/format/webp)
2.在Activities中搜索open browser,并将其拖至设计区,且设置打开网站,运行该流程“https://www.baidu.com/”
![](https://upload-images.jianshu.io/upload_images/14843435-338029e09a1908aa.png?imageMogr2/auto-orient/strip|imageView2/2/w/327/format/webp)
![](https://upload-images.jianshu.io/upload_images/14843435-2ae0533be34f3c05.png?imageMogr2/auto-orient/strip|imageView2/2/w/586/format/webp)
3.在Activities中搜索 输入信息 (Typeinto),并将其拖至设计区,拾取百度搜索的输入框且设置键盘输入的文本为"机器人"
![](https://upload-images.jianshu.io/upload_images/14843435-a1e258dc5bb8af09.png?imageMogr2/auto-orient/strip|imageView2/2/w/429/format/webp)
#拾取区域,红色框选区域
![](https://upload-images.jianshu.io/upload_images/14843435-458d307aeebd4f39.png?imageMogr2/auto-orient/strip|imageView2/2/w/716/format/webp)
4.在Activities中搜索 发送热键 (Sendhotkey),并将其拖至设计区,选择enter按键
![](https://upload-images.jianshu.io/upload_images/14843435-c8ecd70c2587454e.png?imageMogr2/auto-orient/strip|imageView2/2/w/596/format/webp)
#运行完成,你会看到搜索框输入了”uipath”,并且进行了回车搜索
总结:以上流程就用到了键盘的操作-发送热键(Sendhotkey),输入信息 (Typeinto)
UiPath交流群:465630324