Передать хоткей программе в вайне (не делая активным её окно)

Вопросы настройки, запуск любых Windows-программ, кроме игр

Модератор: Модераторы разделов

Ответить
FlySnake
Сообщения: 992
ОС: openSUSE
Контактная информация:

Передать хоткей программе в вайне

Сообщение FlySnake »

Всем привет
Вопрос возможно странный, но всё-таки. Можно ли как-то сделать чтобы отправить в вайн хоткей как-бы он нажат, но сама программа свёрнута где-то на n-ном раб.столе? Может средствами оконного менеджера как-бы втихаря сказать ему мол это окно активно и быстренько подсунуть будто нажата клавокомбинация
Спасибо сказали:
Аватара пользователя
Rootlexx
Бывший модератор
Сообщения: 4455
Статус: GNU generation
ОС: Debian GNU/Linux

Re: Передать хоткей программе в вайне

Сообщение Rootlexx »

Попробуйте xvkbd:
(man xvkbd) писал(а):Options
...
-xsendevent
Make xvkbd to use XSendEvent() to simulate keyboard events...
-text string
Send the string to the focused window (see also `-window' option).
If this option is specified, xvkbd will not open its window and terminate soon after sending the string.
The string can contain:
\r - Return
\t - Tab
\b - Backspace
\e - Escape
\d - Delete
\S - Shift (modify the next character; please note that modify with ``\S'' will be ignored in many cases. For example, ``a\Cb\ScD\CE'' will be interpreted as a, Control-b, c, Shift-D, and Control-Shift-E.)
\C - Control (modify the next character)
\A - Alt (modify the next character)
\M - Meta (modify the next character)
\[keysym] - the keysym keysym (e.g., \[Left])
\Ddigit - delay digit * 100 ms
\xvalue - move mouse pointer (use "+" or "-" for relative motion)
\yvalue - move mouse pointer (use "+" or "-" for relative motion)
\mdigit - simulate click of the specified mouse button
...
-window window
Specify the ID (hexadecimal value leaded with `0x', or decimal value), the name (instance name or class name) of the window, or the title of the window to set input focus. It is possible to use wildcard characters `*' and `?' to match the window name or the window title.
Спасибо сказали:
Ответить