Dan Espen <dan1es...@gmail.com> writes: > hw <h...@adminart.net> writes: > >> Hi, >> >> what is the meaning of '+ I', '+ M', '+ D' when adding stuff to >> functions or menues? That doesn't seem to be explained in the man page >> ... >> >> Why does '+ I' work and '+I' doesn't? > > The description of plus from the man page: > > + > Used to continue adding to the last specified decor, function or menu. > See the discussion for AddToDecor, AddToFunc, and AddToMenu. > > So this lets you do: > > AddToFunc ExecWarp > + I $1 > + I Wait $0 > + I Warp $0 > > which is the same as: > > AddToFunc ExecWarp I $1 > AddToFunc ExecWarp I Wait $0 > AddToFunc ExecWarp I Warp $0 > > The reason "+I" is invalid, is because the "+" is a command and > must be space separated from it's arguments. > > The letters are explained in the description of AddToFunc: > > The letter before the action tells what kind of action triggers the > command which follows it. 'I' stands for "Immediate", and is executed as > soon as the function is invoked. 'M' stands for "Motion", i.e. if the > user starts moving the mouse. 'C' stands for "Click", i.e., if the user > presses and releases the mouse button. 'H' stands for "Hold", i.e. if > the user presses a mouse button and holds it down for more than > ClickTime milliseconds. 'D' stands for "Double-click". The action 'I' > causes an action to be performed on the button-press, if the function is > invoked with prior knowledge of which window to act on. > > These letters are only used in functions, menus have a different syntax.
Thanks!