Автор: Finn
Дата сообщения: 28.02.2012 16:22
Wovec
Понятно, спасибо за информацию. Значит, если у меня плагин для мыши заработает, то нужно будет определять код для этих кнопок как-то и вставлять в [more=ini-файл:]; This file is in a standard ini file format.
; A comment may be inserted by starting a line with a semi-colon character.
; All entries in this file except for section names and comments should be in the format:
; Name=Value
; Refer to each section's description on the format of the "Name" and "Value".
;
; There are two sections that mousetrap reads. If other sections exist, they are simply ignored.
; The two sections that mousetrap recognize are:
; 1. [Active]
; 2. [IgnoreVKCodes]
;
; [Active] section contains the entries that mousetrap will use.
; [IgnoreVKCodes] section contains the list of vkcodes that mousetrap will ignore.
; Refer to the comments inside each section for more info about that section.
; Optionally, you can specify a different section name to read instead of the default [active].
[Active]
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; ACTIVE section
;
; "Name" does not have to be unique. You may use the same name on all the entries
; if you don't care about using them in the RemEntry/GetEntry services or editing
; this file with an INI editor.
;
; "Value" should follow this format.
; An entry is expected to have at least 10 comma. The entry format is:
; MODIFIER KEY 1,MODIFIER KEY 2,MODIFIER KEY 3,LOCATION,TRIGGER,EVAL,WINDOW CAPTION,COMMAND,STOP,EAT,NOMOD,NOMSMOD,WAITMOD
; 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 10, 11 , 12 , 13
;
; Only the data within the first thirteen comma are read by MouseTrap.
; So adding a comma after the last field will enable you to insert an inline comment.
; But for future support, please append at least five extra comma before your inline comment.
; ---------------------------------------------------------------------------
; GO UP A FOLDER IN WINDOWS EXPLORER
; Go up the folder just by double clicking on an empty area in the listview of windows explorer
; ---------------------------------------------------------------------------
ini=0,0,0,c=SysListView32,LDC,mousetrap.ismonocolor(),explorer,*keys {to %phan%}{ba},1,1,0,0,0,
; --------------------------------------------------------------------------
; ---------------------------------------------------------------------------
; GO UP IN OPEN/SAVE DIALOG
; Go up the folder just by double clicking on an empty area in the listview of a file open/save dialog
; ---------------------------------------------------------------------------
ini=0,0,0,c=SysListView32,LDC,mousetrap.ismonocolor(),filedialog,*keys {to %phan%}{ba},1,1,0,0,0,
ini=0,0,0,c=OpenListView,LDC,mousetrap.ismonocolor(),filedialog,*keys {to %phan%}{ba},1,1,0,0,0,
; --------------------------------------------------------------------------
; ---------------------------------------------------------------------------
; DRAG WINDOW
; Move the about dialog by right dragging anywhere
; ---------------------------------------------------------------------------
ini=2,0,0,ANY,MMV,,About*,win.move(%phan%\,%sx%-%rdrx%\,%sy%-%rdry%),0,0,0,1,0,
; --------------------------------------------------------------------------
; ---------------------------------------------------------------------------
; EXECUTE COMMAND ON LEFTCLICK AND MOUSEMOVE
; An example of running a command on left drag
; ---------------------------------------------------------------------------
;ini=1,0,0,ANY,MMV,,,osd.show("mousetrap: left mousemove"\,100),0,0,0,0,0,
; --------------------------------------------------------------------------
; ---------------------------------------------------------------------------
; SEND DOUBLECLICK ON MIDDLE DOWN
; ---------------------------------------------------------------------------
ini=0,0,0,ANY,MMD,,,Event:LDC,0,1,0,0,0,
; --------------------------------------------------------------------------
; ---------------------------------------------------------------------------
; OVERRIDE MOUSECLICK IN THE CLOCK OF THE TRAY
; An example of using screen location
; ---------------------------------------------------------------------------
;ini=0,0,0,1334~1397|1025~1048,LMD,,c=Shell_TrayWnd,osd.show("mousetrap: clock"),0,1,0,0,0,
;ini=0,0,0,1334~1397|1025~1048,LMU,,c=Shell_TrayWnd,osd.show("mousetrap: clock"),0,1,0,0,0,
; --------------------------------------------------------------------------
; ---------------------------------------------------------------------------
; LOCK THE MOUSE MOVEMENT IN A SPECIFIC LOCATION IN THE VERTICAL OR HORIZONTAL AXIS
; An example of setting the x or y coordinate to a fixed value
; ---------------------------------------------------------------------------
; Pressing capslock key while mousemove will keep the mouse lock to vertical axis in the location where the coordinate x=100
ini=20,0,0,ANY,MMV,,,Edit:x=100,0,1,0,1,0,, --> EAT should be 1. NOMSMOD should be 1 to keep working even when mouse buttons are pressed.
; Pressing scroll key while mousemove will keep the mouse lock to horizontal axis in the location where the coordinate y=40
ini=145,0,0,ANY,MMV,,,Edit:y=40,0,1,0,1,0,, --> EAT should be 1. NOMSMOD should be 1 to keep working even when mouse buttons are pressed.
; ---------------------------------------------------------------------------
; ---------------------------------------------------------------------------
; LOCK THE MOUSE MOVEMENT SPECIFICALLY IN VERTICAL OR HORIZONTAL AXIS
; the '#' character tells mousetrap to use the last value of x or y as the fixed coordinate.
; ---------------------------------------------------------------------------
; Pressing left shift while mousemove will keep the mouse lock to vertical axis on its current location
ini=160,0,0,ANY,MMV,,,Edit:x=#,0,1,0,1,0,, --> EAT should be 1. NOMSMOD should be 1 to keep working even when mouse buttons are pressed.
; Pressing right alt while mousemove will keep the mouse lock to horizontal axis on its current location
ini=164,0,0,ANY,MMV,,,Edit:y=#,0,1,0,1,0,, --> EAT should be 1. NOMSMOD should be 1 to keep working even when mouse buttons are pressed.
; ---------------------------------------------------------------------------
; ---------------------------------------------------------------------------
; AUTO LOCK THE VERTICAL OR HORIZONTAL AXIS
; An example of automatic setting of x or y coordinate to a fixed value
; ---------------------------------------------------------------------------
; Pressing left ctrl while mousemove will keep the mouse lock to either vertical or horizontal axis.
; By using the variable z, mousetrap will automatically identify which axis to lock on to.
; This is determined by the initial direction of the mouse movement.
; The first axis that reach a mouse movement of 5 pixels is the axis to lock on to.
; The default 5 pixels can be changed by specifying a new value after the '#': z=#10
; E.g.: 162,0,0,ANY,MMV,,,Edit:z=#24,0,1,0,1,0,,
ini=162,0,0,ANY,MMV,,,Edit:z=#,0,1,0,1,0,, --> EAT should be 1. NOMSMOD should be 1 to keep working even when mouse buttons are pressed.
; ---------------------------------------------------------------------------
; ---------------------------------------------------------------------------
; DECELARATE THE MOUSE MOVEMENT SPEED
; ; An example of decelerating the mouse movement speed
; ---------------------------------------------------------------------------
; Pressing right alt while mousemove will decelerate the mouse movement speed.
; In the example below, the physical mouse device must travel a distance of 10
; before the mouse pointer will move.
ini=165,0,0,ANY,MMV,,,Edit:speed=10,0,1,0,1,0,, --> EAT should be 1. NOMSMOD should be 1 to keep working even when mouse buttons are pressed.
; ---------------------------------------------------------------------------
; ---------------------------------------------------------------------------
; DISPLAY DEBUG WINDOW SHOWING MOUSE COORDINATES AND OTHER INFO
; An example displaying mouse coordinates, etc.
; ---------------------------------------------------------------------------
; Pressing right shift while mousemove will display debug window showing the:
; parent window handle, child handle, child class, mouse coordinates relative to the window and to the screen
ini=161,0,0,ANY,MMV,,,win.debug("mousetrap: Parent=%phan%\, Child=%chan%\, class="\,win.class(%chan%)\,"\, area="\,win.area(%sx%\,%sy%) ++ "\, Index=" ++ miscplugin.GetIndNum(%chan%) ++ "\, rx=%rx%\, ry=%ry%; sx=%sx%\, sy=%sy%"),0,0,0,0,0,
; ---------------------------------------------------------------------------
; =========================================================================================
; ====================================== MOUSEWHEEL =======================================
; =========================================================================================
; ---------------------------------------------------------------------------
; OLD HELP SUPPORT
; ---------------------------------------------------------------------------
ini=0,0,0,c=MS_WINTOPIC,MWD,,,Edit:scroll=*,1,1,0,0,0,, --> must set STOP,EAT to 1
ini=0,0,0,c=MS_WINTOPIC,MWU,,,Edit:scroll=*,1,1,0,0,0,, --> must set STOP,EAT to 1
; --------------------------------------------------------------------------
; ---------------------------------------------------------------------------
; BYPASS "MOUSEWHEEL SUPPORT LIKE KATMOUSE" FOR MYIE2
; Bypass only when right button and mousewheel up/down
; ---------------------------------------------------------------------------
ini=2,0,0,ANY,MWD,,MyIE2*,,1,0,0,0,0,, --> must set STOP to 1
ini=2,0,0,ANY,MWU,,MyIE2*,,1,0,0,0,0,, --> must set STOP to 1
; ---------------------------------------------------------------------------
; ---------------------------------------------------------------------------
; SCROLL TO TOP/BOTTOM OF PAGE
; ---------------------------------------------------------------------------
; Pressing right button on mouse wheel will scroll to top/bottom of page
ini=2,0,0,ANY,MWU,,,Edit:scroll=*t,1,1,0,1,0,,
ini=2,0,0,ANY,MWD,,,Edit:scroll=*b,1,1,0,1,0,,
; ---------------------------------------------------------------------------
; ---------------------------------------------------------------------------
; DOUBLE THE MOUSEWHEEL SPEED
; ---------------------------------------------------------------------------
; Pressing left shift on mouse wheel will scroll by 6 lines.
ini=160,0,0,ANY,MWU,,,Edit:scroll=*6,1,1,0,0,0,,
ini=160,0,0,ANY,MWD,,,Edit:scroll=*6,1,1,0,0,0,,
; ---------------------------------------------------------------------------
; ---------------------------------------------------------------------------
; QUADRUPLE THE MOUSEWHEEL SPEED
; ---------------------------------------------------------------------------
; Pressing right alt on mouse wheel will quadruple the default mousewheel speed.
ini=165,0,0,ANY,MWU,,,Edit:scroll=#4,0,1,1,0,0,, --> must set EAT and NOMOD to 1
ini=165,0,0,ANY,MWD,,,Edit:scroll=#4,0,1,1,0,0,, --> must set EAT and NOMOD to 1
; ---------------------------------------------------------------------------
; ---------------------------------------------------------------------------
; SCROLL BY PAGE
; ---------------------------------------------------------------------------
; Pressing left alt on mouse wheel will quadruple the default mousewheel speed.
ini=164,0,0,ANY,MWU,,,Edit:scroll=*p,1,1,1,0,0,, --> must set EAT and NOMOD to 1
ini=164,0,0,ANY,MWD,,,Edit:scroll=*p,1,1,1,0,0,, --> must set EAT and NOMOD to 1
; ---------------------------------------------------------------------------
; ---------------------------------------------------------------------------
; MOUSEWHEEL SUPPORT FOR PP NOTES
; ---------------------------------------------------------------------------
ini=0,0,0,ANY,MWU,,c=PowerProNote,Edit:scroll=*,1,1,0,0,0,
ini=0,0,0,ANY,MWD,,c=PowerProNote,Edit:scroll=*,1,1,0,0,0,
; ---------------------------------------------------------------------------
; ---------------------------------------------------------------------------
; MOUSEWHEEL SUPPORT FOR ECCO
; ---------------------------------------------------------------------------
; Use the WM_VSCROLL message to scroll as it is more compatible with all/old apps
ini=0,0,0,ANY,MWU,,=ecco32,Edit:scroll=*,1,1,0,0,0,
ini=0,0,0,ANY,MWD,,=ecco32,Edit:scroll=*,1,1,0,0,0,
; ---------------------------------------------------------------------------
; ---------------------------------------------------------------------------
; MOUSEWHEEL SUPPORT ALL COMBO BOXES
; Including those that does not support WM_MOUSEWHEEL message
; ---------------------------------------------------------------------------
ini=0,0,0,c=combobox,MWU,,,Edit:scroll=@,1,1,0,0,0,
ini=0,0,0,c=combobox,MWD,,,Edit:scroll=@,1,1,0,0,0,
; ---------------------------------------------------------------------------
; ---------------------------------------------------------------------------
; MOUSEWHEEL SUPPORT LIKE KATMOUSE
; Scrolls the window even if it is not in the foreground.
; ---------------------------------------------------------------------------
; Use the system mousewheel setting
ini=0,0,0,ANY,MWU,,,Edit:scroll=#,0,1,1,0,0,, --> must set EAT and NOMOD to 1
ini=0,0,0,ANY,MWD,,,Edit:scroll=#,0,1,1,0,0,, --> must set EAT and NOMOD to 1
; ---------------------------------------------------------------------------
[IgnoreVKCodes]
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; IGNOREVKCODES section
;
; "Name" can be any string you want. This does not have to be unique. You may use the
; same name for all the entries.
;
; "Value" is the vkcode that you want mousetrap to ignore during checking of modifier
; keys. Valid values are from 1 to 255.
; set by IME
IME=244
IME=255
[/more]