繁体   English   中英

Osascript箭头键的键代码

[英]Osascript keycodes for arrow keys

我正在尝试在Python中调用osascript来模拟如下按键:

cmd = """
    osascript -e 'tell application "System Events" to keystroke "e"'
    """
os.system(cmd)

如何发送上/下/左/右箭头键的按键?

箭头键的键控代码:左-123右-124向下-125向上-126

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM