gpt4 book ai didi

xdotool - xdotool 中 POS1 key 的名称是什么?

转载 作者:行者123 更新时间:2023-12-02 16:47:05 26 4
gpt4 key购买 nike

我需要 xdotool 来按 pos1,但我不知道这个键的名称。这不是 pos1,POS1,Pos1,开始。如何找到 xdotool 使用的 key 名称?

最佳答案

执行

$ xev -event keyboard

然后只需键入您要使用的 key 。

示例输出:

Outer window is 0x4a00001, inner window is 0x4a00002

KeymapNotify event, serial 24, synthetic NO, window 0x0,
keys: 4294967230 0 0 0 16 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

KeyRelease event, serial 25, synthetic NO, window 0x4a00001,
root 0x1a1, subw 0x0, time 109192145, (501,285), root:(503,393),
state 0x0, keycode 36 (keysym 0xff0d, Return), same_screen YES,
" XLookupString gives 1 bytes: (0d) "
XFilterEvent returns: False

KeyPress event, serial 28, synthetic NO, window 0x4a00001,
root 0x1a1, subw 0x0, time 109193882, (501,285), root:(503,393),
state 0x0, keycode 110 (keysym 0xff50, Home), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False

KeyRelease event, serial 28, synthetic NO, window 0x4a00001,
root 0x1a1, subw 0x0, time 109193953, (501,285), root:(503,393),
state 0x0, keycode 110 (keysym 0xff50, Home), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
^C

有趣的部分是keycode 110(keysym 0xff50,Home)。所以名称是Home

关于xdotool - xdotool 中 POS1 key 的名称是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52949951/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com