mouse wheel
mouse wheel
Please tell me how to write a macro that raises or lowers the mouse wheel
Re: mouse wheel
Here is the .dtd file for writing valid XML Macros for Iris and Kinesicmouse:
<?xml version="1.0" encoding="utf-8"?>
<!ELEMENT XY_MACROS (MACRO*)>
<!ATTLIST XY_MACROS version CDATA #REQUIRED>
<!ELEMENT MACRO ((MACROCONDITION|VARIABLECONDITION)*, START?, MAIN?, END?)>
<!-- MACROCONDITIONS and VARIABLECONDITIONS in this global part of the macro must not contain any actions -->
<!ATTLIST MACRO id ID #REQUIRED>
<!ELEMENT START (KEYINPUT|MOUSEWHEELINPUT|MOUSEMOVEINPUT|MOUSEBUTTONINPUT|WAIT|REFERENCE|VARIABLE|CONDITION|SHELLCOMMAND|SENSORYSWITCH)*>
<!ATTLIST START repeat CDATA #IMPLIED>
<!ELEMENT MAIN (KEYINPUT|MOUSEWHEELINPUT|MOUSEMOVEINPUT|MOUSEBUTTONINPUT|WAIT|REFERENCE|VARIABLE|CONDITION|SHELLCOMMAND|SENSORYSWITCH)*>
<!-- MAIN repeat: INTEGER > 1 or X for infinite-->
<!ATTLIST MAIN repeat CDATA #IMPLIED>
<!ELEMENT END (KEYINPUT|MOUSEWHEELINPUT|MOUSEMOVEINPUT|MOUSEBUTTONINPUT|WAIT|REFERENCE|VARIABLE|CONDITION|SHELLCOMMAND|SENSORYSWITCH)*>
<!ATTLIST END repeat CDATA #IMPLIED>
<!ELEMENT CONDITION ((MACROCONDITION|VARIABLECONDITION)+,(KEYINPUT|MOUSEWHEELINPUT|MOUSEMOVEINPUT|MOUSEBUTTONINPUT|WAIT|REFERENCE|VARIABLE|CONDITION|SHELLCOMMAND|SENSORYSWITCH)*)>
<!ELEMENT VARIABLECONDITION EMPTY>
<!ATTLIST VARIABLECONDITION id CDATA #REQUIRED>
<!ATTLIST VARIABLECONDITION condition (EQUAL|NOT_EQUAL|LESS|GREATER|LESS_OR_EUQAL|GREATER_OR_EQUAL) #REQUIRED>
<!ATTLIST VARIABLECONDITION value CDATA #REQUIRED>
<!ELEMENT MACROCONDITION EMPTY>
<!ATTLIST MACROCONDITION idref IDREF #REQUIRED>
<!ATTLIST MACROCONDITION condition (ACTIVE|INACTIVE) #REQUIRED>
<!ELEMENT KEYINPUT EMPTY>
<!ATTLIST KEYINPUT type (VIRTUAL_CODE|SCAN_CODE) #IMPLIED>
<!ATTLIST KEYINPUT behaviour (PRESS|RELEASE) #REQUIRED>
<!ATTLIST KEYINPUT code CDATA #REQUIRED>
<!ATTLIST KEYINPUT extended (TRUE|FALSE) #IMPLIED>
<!ELEMENT MOUSEWHEELINPUT EMPTY>
<!ATTLIST MOUSEWHEELINPUT delta CDATA #REQUIRED>
<!ATTLIST MOUSEWHEELINPUT behaviour (VERTICAL|HORIZONTAL) #REQUIRED>
<!ELEMENT MOUSEMOVEINPUT EMPTY>
<!ATTLIST MOUSEMOVEINPUT x CDATA #REQUIRED>
<!ATTLIST MOUSEMOVEINPUT y CDATA #REQUIRED>
<!ATTLIST MOUSEMOVEINPUT behaviour (ABSOLUTE|RELATIVE) #REQUIRED>
<!ELEMENT MOUSEBUTTONINPUT EMPTY>
<!ATTLIST MOUSEBUTTONINPUT button (LEFT|RIGHT|MIDDLE|XBUTTON) #REQUIRED>
<!ATTLIST MOUSEBUTTONINPUT behaviour (PRESS|RELEASE) #REQUIRED>
<!ATTLIST MOUSEBUTTONINPUT xbutton CDATA #IMPLIED>
<!ELEMENT REFERENCE EMPTY>
<!ATTLIST REFERENCE idref IDREF #REQUIRED>
<!ATTLIST REFERENCE behaviour (START|STOP) #REQUIRED>
<!ELEMENT VARIABLE EMPTY>
<!ATTLIST VARIABLE id CDATA #REQUIRED>
<!ATTLIST VARIABLE function (SET|INCREMENT|DECREMENT) #REQUIRED>
<!ATTLIST VARIABLE value CDATA #REQUIRED>
<!ELEMENT SHELLCOMMAND EMPTY>
<!ATTLIST SHELLCOMMAND program CDATA #REQUIRED>
<!ELEMENT SENSORYSWITCH EMPTY>
<!ATTLIST SENSORYSWITCH switch_id CDATA #REQUIRED>
<!ATTLIST SENSORYSWITCH behaviour (PRESS|RELEASE) #REQUIRED>
<!ELEMENT WAIT EMPTY>
<!ATTLIST WAIT time CDATA #REQUIRED>
<?xml version="1.0" encoding="utf-8"?>
<!ELEMENT XY_MACROS (MACRO*)>
<!ATTLIST XY_MACROS version CDATA #REQUIRED>
<!ELEMENT MACRO ((MACROCONDITION|VARIABLECONDITION)*, START?, MAIN?, END?)>
<!-- MACROCONDITIONS and VARIABLECONDITIONS in this global part of the macro must not contain any actions -->
<!ATTLIST MACRO id ID #REQUIRED>
<!ELEMENT START (KEYINPUT|MOUSEWHEELINPUT|MOUSEMOVEINPUT|MOUSEBUTTONINPUT|WAIT|REFERENCE|VARIABLE|CONDITION|SHELLCOMMAND|SENSORYSWITCH)*>
<!ATTLIST START repeat CDATA #IMPLIED>
<!ELEMENT MAIN (KEYINPUT|MOUSEWHEELINPUT|MOUSEMOVEINPUT|MOUSEBUTTONINPUT|WAIT|REFERENCE|VARIABLE|CONDITION|SHELLCOMMAND|SENSORYSWITCH)*>
<!-- MAIN repeat: INTEGER > 1 or X for infinite-->
<!ATTLIST MAIN repeat CDATA #IMPLIED>
<!ELEMENT END (KEYINPUT|MOUSEWHEELINPUT|MOUSEMOVEINPUT|MOUSEBUTTONINPUT|WAIT|REFERENCE|VARIABLE|CONDITION|SHELLCOMMAND|SENSORYSWITCH)*>
<!ATTLIST END repeat CDATA #IMPLIED>
<!ELEMENT CONDITION ((MACROCONDITION|VARIABLECONDITION)+,(KEYINPUT|MOUSEWHEELINPUT|MOUSEMOVEINPUT|MOUSEBUTTONINPUT|WAIT|REFERENCE|VARIABLE|CONDITION|SHELLCOMMAND|SENSORYSWITCH)*)>
<!ELEMENT VARIABLECONDITION EMPTY>
<!ATTLIST VARIABLECONDITION id CDATA #REQUIRED>
<!ATTLIST VARIABLECONDITION condition (EQUAL|NOT_EQUAL|LESS|GREATER|LESS_OR_EUQAL|GREATER_OR_EQUAL) #REQUIRED>
<!ATTLIST VARIABLECONDITION value CDATA #REQUIRED>
<!ELEMENT MACROCONDITION EMPTY>
<!ATTLIST MACROCONDITION idref IDREF #REQUIRED>
<!ATTLIST MACROCONDITION condition (ACTIVE|INACTIVE) #REQUIRED>
<!ELEMENT KEYINPUT EMPTY>
<!ATTLIST KEYINPUT type (VIRTUAL_CODE|SCAN_CODE) #IMPLIED>
<!ATTLIST KEYINPUT behaviour (PRESS|RELEASE) #REQUIRED>
<!ATTLIST KEYINPUT code CDATA #REQUIRED>
<!ATTLIST KEYINPUT extended (TRUE|FALSE) #IMPLIED>
<!ELEMENT MOUSEWHEELINPUT EMPTY>
<!ATTLIST MOUSEWHEELINPUT delta CDATA #REQUIRED>
<!ATTLIST MOUSEWHEELINPUT behaviour (VERTICAL|HORIZONTAL) #REQUIRED>
<!ELEMENT MOUSEMOVEINPUT EMPTY>
<!ATTLIST MOUSEMOVEINPUT x CDATA #REQUIRED>
<!ATTLIST MOUSEMOVEINPUT y CDATA #REQUIRED>
<!ATTLIST MOUSEMOVEINPUT behaviour (ABSOLUTE|RELATIVE) #REQUIRED>
<!ELEMENT MOUSEBUTTONINPUT EMPTY>
<!ATTLIST MOUSEBUTTONINPUT button (LEFT|RIGHT|MIDDLE|XBUTTON) #REQUIRED>
<!ATTLIST MOUSEBUTTONINPUT behaviour (PRESS|RELEASE) #REQUIRED>
<!ATTLIST MOUSEBUTTONINPUT xbutton CDATA #IMPLIED>
<!ELEMENT REFERENCE EMPTY>
<!ATTLIST REFERENCE idref IDREF #REQUIRED>
<!ATTLIST REFERENCE behaviour (START|STOP) #REQUIRED>
<!ELEMENT VARIABLE EMPTY>
<!ATTLIST VARIABLE id CDATA #REQUIRED>
<!ATTLIST VARIABLE function (SET|INCREMENT|DECREMENT) #REQUIRED>
<!ATTLIST VARIABLE value CDATA #REQUIRED>
<!ELEMENT SHELLCOMMAND EMPTY>
<!ATTLIST SHELLCOMMAND program CDATA #REQUIRED>
<!ELEMENT SENSORYSWITCH EMPTY>
<!ATTLIST SENSORYSWITCH switch_id CDATA #REQUIRED>
<!ATTLIST SENSORYSWITCH behaviour (PRESS|RELEASE) #REQUIRED>
<!ELEMENT WAIT EMPTY>
<!ATTLIST WAIT time CDATA #REQUIRED>
Re: mouse wheel
<MOUSEWHEELINPUT delta="5" behaviour="VERTICAL" />
Re: mouse wheel
I want to add a mouse wheel up macro to my iris, but I don't know