I tried simulating with xdotool but an exception is raised like
Error: Can't open display: (null) even after trying with export DISPLAY=':0.0'.
What am I missing?
好的,所以这里的真正问题是,您甚至没有使用xdotool key <keys>
,而只是使用xdotool <keys>
但除此之外,如果要发送反引号,则需要使用xdotool key grave
;对于波浪号,请使用xdotool key shift+grave
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.