WGestures2-bugs icon indicating copy to clipboard operation
WGestures2-bugs copied to clipboard

mac版通过手势输入文本

Open Takdrift opened this issue 1 year ago • 1 comments

因为需要频繁输入固定的文本,之前win版可以通过文本序列的方式实现。

不知道mac版有没有什么办法可以实现,若目前没有,希望后续更新的时候添加,谢谢!

Takdrift avatar May 06 '23 17:05 Takdrift

因为需要频繁输入固定的文本,之前win版可以通过文本序列的方式实现。

不知道mac版有没有什么办法可以实现,若目前没有,希望后续更新的时候添加,谢谢!

已经解决,如果想输入hello,实现方式是将下面的代码输入到Script里:

osascript<<-EOF
	tell application "System Events"
             keystroke "hello"
       end tell
EOF

Takdrift avatar May 06 '23 17:05 Takdrift