mouse wheel

Post Reply
Glanza
Posts: 3
Joined: Fri Jan 29, 2021 1:09 am

mouse wheel

Post by Glanza »

Please tell me how to write a macro that raises or lowers the mouse wheel
User avatar
Xcessity
Site Admin
Posts: 286
Joined: Sat May 16, 2015 2:23 pm
Location: Graz
Contact:

Re: mouse wheel

Post by Xcessity »

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>
User avatar
Xcessity
Site Admin
Posts: 286
Joined: Sat May 16, 2015 2:23 pm
Location: Graz
Contact:

Re: mouse wheel

Post by Xcessity »

<MOUSEWHEELINPUT delta="5" behaviour="VERTICAL" />
Glanza
Posts: 3
Joined: Fri Jan 29, 2021 1:09 am

Re: mouse wheel

Post by Glanza »

I want to add a mouse wheel up macro to my iris, but I don't know
Post Reply