-
Notifications
You must be signed in to change notification settings - Fork 0
/
mousejump.rc
159 lines (148 loc) · 12.3 KB
/
mousejump.rc
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
#include <windows.h>
#include "mousejump.h"
ICO_MOUSEJUMP ICON mouse_icons/mousejump.ico
ICO_MOUSE ICON mouse_icons/mouse.ico
ICO_LEFT_DOWN ICON mouse_icons/left_down.ico
ICO_LEFT_UP ICON mouse_icons/left_up.ico
ICO_RIGHT_DOWN ICON mouse_icons/right_down.ico
ICO_RIGHT_UP ICON mouse_icons/right_up.ico
ICO_WHEEL_DOWN ICON mouse_icons/wheel_down.ico
ICO_WHEEL_UP ICON mouse_icons/wheel_up.ico
ICO_DOUBLE_DOWN ICON mouse_icons/double_down.ico
ICO_DOUBLE_UP ICON mouse_icons/double_up.ico
ICO_UPWARD_DOWN ICON mouse_icons/upward_down.ico
ICO_UPWARD_UP ICON mouse_icons/upward_up.ico
ICO_DOWNWARD_DOWN ICON mouse_icons/downward_down.ico
ICO_DOWNWARD_UP ICON mouse_icons/downward_up.ico
ICO_PIN ICON mouse_icons/pin_left.ico
// https://docs.microsoft.com/en-us/windows/win32/menurc/user-defined-resource
LABELS CSV "labels.csv"
// http://www.imustardsoft.com/blog/2010/10/19/differences-between-dialogex-resource-template-and-dialog-template-in-c-/
// https://docs.microsoft.com/en-us/windows/win32/uxguide/vis-layout?redirectedfrom=MSDN#recommended-sizing-and-spacing
TOOL DIALOGEX 300, 200, 15.5 + 7.5, 11.5
STYLE WS_OVERLAPPEDWINDOW | WS_VISIBLE
EXSTYLE WS_EX_TOOLWINDOW
CAPTION "MouseJump"
BEGIN
EDITTEXT IDC_TEXTBOX, 0, 0, 15.5, 11.5, ES_AUTOHSCROLL
END
// http://www.winprog.org/tutorial/menus.html
// https://docs.microsoft.com/en-us/windows/win32/menurc/popup-resource
// https://docs.microsoft.com/en-us/style-guide/a-z-word-list-term-collections/term-collections/keys-keyboard-shortcuts
// https://docs.microsoft.com/en-us/style-guide/a-z-word-list-term-collections/term-collections/mouse-mouse-interaction-terms
INITIAL_MENU MENU
BEGIN
POPUP "&Menu"
BEGIN
POPUP "&Move the mouse"
BEGIN
MENUITEM "&To a label...", IDM_TO_LABEL
MENUITEM SEPARATOR
MENUITEM "&Left\tLeft arrow", IDM_LEFT
MENUITEM "&Right\tRight arrow", IDM_RIGHT
MENUITEM "&Up\tUp arrow", IDM_UP
MENUITEM "&Down\tDown arrow", IDM_DOWN
END
POPUP "Move it slightl&y"
BEGIN
MENUITEM "&Left\tCtrl+Left arrow", IDM_SLIGHTLY_LEFT
MENUITEM "&Right\tCtrl+Right arrow", IDM_SLIGHTLY_RIGHT
MENUITEM "&Up\tCtrl+Up arrow", IDM_SLIGHTLY_UP
MENUITEM "&Down\tCtrl+Down arrow", IDM_SLIGHTLY_DOWN
END
MENUITEM SEPARATOR
MENUITEM "&Click\tEnter", IDM_CLICK
MENUITEM "&Right-click\tPeriod (.)", IDM_RIGHT_CLICK
MENUITEM "Dou&ble-click\tSingle-quote (')", IDM_DOUBLE_CLICK
POPUP "&Wheel button"
BEGIN
MENUITEM "Rotate &up\t[", IDM_ROTATE_UP
MENUITEM "Rotate &down\t]", IDM_ROTATE_DOWN
MENUITEM "&Click\tBackslash (\\)", IDM_WHEEL_CLICK
END
MENUITEM SEPARATOR
MENUITEM "Set &drag start\tComma (,)", IDM_DRAG
MENUITEM "Remove drag segmen&t\tBackspace", IDM_REMOVE_DRAG, GRAYED
MENUITEM SEPARATOR
MENUITEM "Show &labels\tTab", IDM_SHOW_LABELS, CHECKED
POPUP "W&indow"
BEGIN
MENUITEM "&Keep open\t/", IDM_KEEP_OPEN
MENUITEM "&Move textbox\tSemicolon (;)", IDM_MOVE_TEXTBOX
MENUITEM "&Switch monitor\tBackquote ( ` )", IDM_SWITCH_MONITOR
END
MENUITEM "Open/close& this menu\tSpacebar", IDC_BUTTON
MENUITEM SEPARATOR
MENUITEM "&Settings", IDM_SETTINGS
MENUITEM "E&xit\tEsc", IDM_EXIT
END
END
// https://docs.microsoft.com/en-us/windows/win32/learnwin32/accelerator-tables
// https://docs.microsoft.com/en-us/windows/win32/menurc/using-keyboard-accelerators#creating-user-editable-accelerators
IDR_ACCEL1 ACCELERATORS
{
VK_LEFT, IDM_LEFT, VIRTKEY
VK_UP, IDM_UP, VIRTKEY
VK_RIGHT, IDM_RIGHT, VIRTKEY
VK_DOWN, IDM_DOWN, VIRTKEY
VK_LEFT, IDM_SLIGHTLY_LEFT, CONTROL, VIRTKEY
VK_UP, IDM_SLIGHTLY_UP, CONTROL, VIRTKEY
VK_RIGHT, IDM_SLIGHTLY_RIGHT, CONTROL, VIRTKEY
VK_DOWN, IDM_SLIGHTLY_DOWN, CONTROL, VIRTKEY
VK_OEM_COMMA, IDM_DRAG, VIRTKEY
VK_BACK, IDM_REMOVE_DRAG, VIRTKEY
VK_SPACE, IDC_BUTTON, VIRTKEY
VK_OEM_PERIOD, IDM_RIGHT_CLICK, VIRTKEY
VK_OEM_7, IDM_DOUBLE_CLICK, VIRTKEY
VK_OEM_4, IDM_ROTATE_UP, VIRTKEY
VK_OEM_6, IDM_ROTATE_DOWN, VIRTKEY
VK_OEM_5, IDM_WHEEL_CLICK, VIRTKEY
VK_TAB, IDM_SHOW_LABELS, VIRTKEY
VK_OEM_2, IDM_KEEP_OPEN, VIRTKEY
VK_OEM_1, IDM_MOVE_TEXTBOX, VIRTKEY
VK_OEM_3, IDM_SWITCH_MONITOR, VIRTKEY
VK_RETURN, IDM_CLICK, VIRTKEY
0x51, IDM_EXIT, CONTROL, VIRTKEY
0x57, IDM_EXIT, CONTROL, VIRTKEY
0x41, IDM_SELECT_ALL, CONTROL, VIRTKEY
}
// https://docs.microsoft.com/en-us/windows/win32/menurc/versioninfo-resource
#ifndef DEBUG
#define VER_DEBUG 0
#else
#define VER_DEBUG VS_FF_DEBUG
#endif
VS_VERSION_INFO VERSIONINFO
FILEVERSION 0,1,0,0
PRODUCTVERSION 0,1,0,0
FILEFLAGSMASK VS_FFI_FILEFLAGSMASK
FILEFLAGS (VS_FF_PRERELEASE|VS_FF_PRIVATEBUILD|VER_DEBUG)
FILEOS VOS__WINDOWS32
FILETYPE VFT_APP
FILESUBTYPE VFT2_UNKNOWN
BEGIN
BLOCK "StringFileInfo"
BEGIN
BLOCK "040904E4"
BEGIN
VALUE "CompanyName", "Eva Short"
VALUE "FileDescription", "MouseJump"
VALUE "FileVersion", "0.1.0.0"
VALUE "InternalName", "mousejump"
VALUE "OriginalFilename", "mousejump.exe"
VALUE "PrivateBuild", "Built by Eva on her computer"
VALUE "ProductName", "MouseJump"
VALUE "ProductVersion", "0.1.0.0"
END
END
BLOCK "VarFileInfo"
BEGIN
/* The following line should only be modified for localized versions. */
/* It consists of any number of WORD,WORD pairs, with each pair */
/* describing a language,codepage combination supported by the file. */
/* */
/* For example, a file might have values "0x409,1252" indicating that it */
/* supports English language (0x409) in the Windows ANSI codepage (1252). */
VALUE "Translation", 0x409, 1252
END
END