Skip to content

Common Pix Script Commands


Cmd - execute cmd commands

To learn what cmd commands can do, you can ask AI.

//打开我的电脑
cmd , explorer shell:MyComputerFolder

//打开任务管理器
cmd , taskmgr

Open - open files

You can use the open command to open programs, folders, and URLs.

open , parameter

//示例,打开QQ
open , C:\Program Files (x86)\Tencent\QQ.exe

//打开百度
open , https://www.baidu.com

//打开某个文件夹
open , C:\Program Files (x86)\360\

Sleep - wait

The time format is in milliseconds; see the example below for details. Sleep , wait time

//打开百度
open , https://www.baidu.com
//等待2秒
sleep , 2000
//打开bing
open , https://www.bing.cn

Key - simulate keyboard keys

//模拟按键A
key, A

//模拟组合键
key, Ctrl+Alt+W

mouse-click - simulate mouse click

Required parameters: coordinates x, y

//鼠标点击屏幕指定x,y坐标
mouse-click , 100,100

Copy - set clipboard content

Set text into the clipboard

copy , 张三

A combined example: automatically send a message to your WeChat friend Zhang San

//先复制张三微信id
copy , zhangsan
//模拟微信快捷键,唤醒微信
key, Ctrl+Alt+W
//等待50毫秒
sleep , 50
//模拟打开搜索
key , Ctrl+F
//等待50毫秒
sleep , 50
//将zhangsan粘贴到搜索框中
key , Ctrl+V
//等待50毫秒
sleep , 50
//模拟回车键确认搜索
key , Enter
sleep ,50
//将 hello 复制到剪辑版
copy , hello
//模拟粘贴
key , Ctrl+V
sleep,50
//模拟回车发送消息
key , Enter