File: FakeKeypress.xml

package info (click to toggle)
fvwm 1%3A2.7.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 15,968 kB
  • sloc: ansic: 145,836; xml: 17,096; perl: 7,237; sh: 5,100; makefile: 1,101; yacc: 688; lex: 187; sed: 11
file content (79 lines) | stat: -rw-r--r-- 2,224 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE part PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
  "../docbook-xml/docbookx.dtd"
[
<!ENTITY % myents SYSTEM "../fvwm.ent" >
%myents;
]>

<!-- $Id$ -->

<section id='FakeKeypress'>
<title>FakeKeypress</title>

<cmdsynopsis>
	<command>FakeKeypress</command
	><arg choice='plain' rep='repeat'
		><optional
			><arg choice='plain'
				><replaceable>command</replaceable
			></arg
			><arg choice='plain'
				><replaceable>value</replaceable
			></arg
		></optional
	></arg>
</cmdsynopsis>

<para>This command is mainly intended for debugging fvwm and no
guarantees are made that it works for you.
<emphasis remap='B'>FakeKeypress</emphasis>
can simulate key press and release events and pass them
to fvwm or applications.  The parameters are a list of
commands which consist of pairs of command tokens and values.
The
<fvwmopt cmd="FakeKeypress" opt="press"/> and
<fvwmopt cmd="FakeKeypress" opt="release"/>
commands are followed by a key name.
The key name is a standard X11 key name as defined in
<filename>/usr/include/X11/keysymdef.h</filename>,
(without the
<emphasis remap='I'>XK_</emphasis>
prefix), or the keysym database
<filename>/usr/X11R6/lib/X11/XKeysymDB</filename>.
The
<fvwmopt cmd="FakeKeypress" opt="wait"/>,
<fvwmopt cmd="FakeKeypress" opt="modifiers"/> and
<fvwmopt cmd="FakeKeypress" opt="depth"/>
commands are the same as those used by
<fvwmref cmd="FakeClick"/>.</para>

<para>Save all GVim sessions with: "Esc:w\n"</para>

<programlisting>
<fvwmref cmd="All"/> (gvim) FakeKeypress press Escape \
                        press colon \
                        press w \
                        press Return
</programlisting>

<para>Save &amp; exit all GVim sessions with: "Esc:wq\n"</para>

<programlisting>
<fvwmref cmd="All"/> (gvim) FakeKeypress press Escape \
                        press colon \
                        press w \
                        press q \
                        press Return
</programlisting>

<para>Send A to a specific window:</para>

<programlisting>
<fvwmref cmd="WindowId"/> 0x3800002 FakeKeypress press A
</programlisting>

<para>Note: all command names can be abbreviated with their first letter.</para>


</section>