max v2; #N vpatcher 58 68 536 395; #P window setfont "Sans Serif" 9.; #P comment 325 113 102 196617 see also: Tutorial 39; #P message 370 129 65 196617 mousefilter; #P hidden newex 370 148 64 196617 prepend help; #P hidden newex 370 168 45 196617 pcontrol; #P comment 141 155 208 196617 type "0" on the keyboard to zero the position output in this patcher \; type "1" to reset to the default position relative to the top left corner of the screen; #P hidden message 21 101 14 196617 1; #P window setfont "Sans Serif" 18.; #P comment 15 10 133 196626 mousestate; #B frgb 21 56 9; #P window setfont "Sans Serif" 9.; #P comment 15 35 292 196617 get information about the mouse/cursor; #P user panel 10 5 400 50; #X brgb 255 247 207; #X frgb 0 0 0; #X border 0; #X rounded 0; #X shadow 0; #X done; #P message 67 191 30 196617 zero; #P message 100 191 34 196617 reset; #P newex 55 118 62 196617 metro 200; #P comment 28 60 240 196617 The mouse button is sampled every 50 ms. \; The mouse position is sampled every input bang.; #P newex 67 144 40 196617 key; #P newex 67 167 52 196617 sel 48 49; #P comment 120 113 140 196617 sample position every 200 ms when metro running.; #N vpatcher 313 99 595 327; #P window setfont "Sans Serif" 9.; #P newex 26 164 43 196617 change; #P toggle 36 146 15 0; #P comment 34 188 35 196617 Button; #P toggle 18 45 15 0; #P newex 36 44 62 196617 metro 200; #P window setfont "Sans Serif" 12.; #P comment 18 22 240 196620 Click sets zero position.; #P window setfont "Sans Serif" 9.; #P number 218 155 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P number 168 155 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P comment 218 173 42 196617 Ver. Delta; #P comment 168 173 45 196617 Hor. Delta; #P number 122 155 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P comment 122 173 42 196617 Ver. Position; #P comment 72 173 45 196617 Hor. Position; #P number 72 155 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P newex 36 124 66 196617 mousestate; #B color 5; #P message 48 82 34 196617 zero; #P message 48 104 37 196617 reset; #P hidden newex 114 70 40 196617 key; #P hidden newex 114 93 85 196617 select 48 72 104; #P hidden newex 182 52 45 196617 loadbang; #P hidden message 182 71 14 196617 1; #P hidden connect 0 0 17 0; #P connect 19 0 20 0; #P connect 17 0 16 0; #P connect 4 0 6 0; #P connect 5 0 6 0; #P connect 16 0 6 0; #P connect 6 0 19 0; #P hidden connect 2 0 5 0; #P fasten 20 1 5 0 47 185 20 185 20 76 53 76; #P hidden connect 2 2 4 0; #P hidden connect 2 1 4 0; #P connect 6 1 7 0; #P hidden connect 3 0 2 0; #P connect 6 2 10 0; #P connect 6 3 13 0; #P hidden connect 1 0 0 0; #P connect 6 4 14 0; #P pop; #P newobj 307 226 104 196617 patcher an_example; #P comment 189 273 45 196617 Hor. Delta; #P comment 144 273 42 196617 Ver. Position; #P comment 99 273 45 196617 Hor. Position; #P comment 52 273 35 196617 Button; #P toggle 55 256 15 0; #P number 190 256 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P number 145 256 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P number 100 256 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #N vpatcher 16 65 307 278; #P window setfont "Sans Serif" 9.; #P hidden newex 171 32 45 196617 loadbang; #P comment 21 160 35 196617 Button; #P hidden newex 101 77 85 196617 select 48 72 104; #P hidden newex 101 54 50 196617 key; #P newex 23 39 62 196617 metro 200; #P message 35 88 37 196617 reset; #P message 35 66 34 196617 zero; #P newex 23 108 66 196617 mousestate; #B color 5; #P number 59 139 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P comment 59 157 45 196617 Hor. Position; #P comment 109 157 42 196617 Ver. Position; #P number 109 139 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P comment 155 157 45 196617 Hor. Delta; #P comment 205 157 42 196617 Ver. Delta; #P number 155 139 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P number 205 139 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P toggle 23 139 15 0; #P window setfont "Sans Serif" 12.; #P comment 10 11 240 196620 Track position while button is down.; #P fasten 1 0 13 0 28 158 11 158 11 31 28 31; #P connect 13 0 10 0; #P connect 12 0 10 0; #P connect 11 0 10 0; #P hidden connect 17 0 10 0; #P connect 10 0 1 0; #P hidden connect 15 0 11 0; #P hidden connect 15 2 12 0; #P hidden connect 15 1 12 0; #P connect 10 1 9 0; #P hidden connect 14 0 15 0; #P connect 10 2 6 0; #P connect 10 3 3 0; #P connect 10 4 2 0; #P pop; #P newobj 307 244 128 196617 patcher another_example; #N vpatcher 40 53 419 252; #P window setfont "Sans Serif" 9.; #P hidden newex 86 10 57 196617 closebang; #P comment 7 14 55 196617 start polling mouse position; #P comment 156 15 44 196617 stop polling mouse position; #P comment 217 15 137 196617 Polling allows you to observe the mouse position automatically without a metronome \, but numbers are reported for the mouse position only when it changes; #P toggle 81 123 15 0; #P number 101 123 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P number 196 123 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P number 245 123 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P comment 63 142 35 196617 Button; #P comment 101 142 45 196617 Hor. Position; #P comment 151 142 42 196617 Ver. Position; #P comment 197 142 45 196617 Hor. Delta; #P comment 247 142 42 196617 Ver. Delta; #P message 111 31 40 196617 nopoll; #P number 150 123 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P message 66 31 30 196617 poll; #P newex 81 76 66 196617 mousestate; #B color 5; #P connect 3 0 0 0; #P connect 1 0 0 0; #P connect 0 0 12 0; #P connect 0 1 11 0; #P hidden connect 16 0 3 0; #P connect 0 2 2 0; #P connect 0 3 10 0; #P connect 0 4 9 0; #P pop; #P newobj 307 262 106 196617 patcher yet_another; #P number 235 256 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P comment 236 273 42 196617 Ver. Delta; #P newex 55 219 193 196617 mousestate; #B color 5; #P comment 335 56 75 196617 by Chris Muir; #P comment 19 99 34 196617 Track; #P toggle 55 97 15 0; #P hidden newex 21 80 50 196617 loadbang; #P hidden connect 0 0 28 0; #P hidden connect 28 0 1 0; #P connect 1 0 22 0; #P connect 22 0 4 0; #P connect 24 0 4 0; #P connect 23 0 4 0; #P connect 4 0 12 0; #P connect 20 0 19 0; #P connect 19 0 24 0; #P connect 19 1 23 0; #P connect 4 1 9 0; #P connect 4 2 10 0; #P connect 4 3 11 0; #P connect 4 4 6 0; #P hidden connect 32 0 31 0; #P hidden connect 31 0 30 0; #P pop;