Changeset 416


Ignore:
Timestamp:
04/03/12 10:58:53 (12 years ago)
Author:
sherbold
Message:
  • updated rules xml: type of key pressed is now ignored. This is helpful for usage evaluations.
  • updated rules.xml: added further fall-back rules that were missing: clicks where the target changed and clicks were one part of the click was in the non-client area (e.g., WM_NCLBUTTONDOWN) and the other in the client area (e.g., WM_LBUTTONUP) of the application.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/EventBenchConsole/rules/rules.xml

    r153 r416  
    786786      <storedVar obj="keydown"/> 
    787787    </genMsg> 
     788    <!--<idinfo> 
     789      <paramValue obj="keydown" param="key"/> 
     790    </idinfo>--> 
     791  </rule> 
     792 
     793  <rule name="KeyUp"> 
     794    <msg type="&WM_KEYUP;"> 
     795      <store var="keyup"/> 
     796    </msg> 
     797    <genMsg delay="500"> 
     798      <storedVar obj="keyup"/> 
     799    </genMsg> 
     800    <!--<idinfo> 
     801      <paramValue obj="keyup" param="key"/> 
     802    </idinfo>--> 
     803  </rule> 
     804 
     805  <rule name="SysKeyDown"> 
     806    <msg type="&WM_SYSKEYDOWN;"> 
     807      <store var="keydown"/> 
     808    </msg> 
     809    <genMsg delay="100"> 
     810      <storedVar obj="keydown"/> 
     811    </genMsg> 
    788812    <idinfo> 
    789813      <paramValue obj="keydown" param="key"/> 
     
    791815  </rule> 
    792816 
    793   <rule name="KeyUp"> 
    794     <msg type="&WM_KEYUP;"> 
     817  <rule name="SysKeyUp"> 
     818    <msg type="&WM_SYSKEYUP;"> 
    795819      <store var="keyup"/> 
    796820    </msg> 
     
    803827  </rule> 
    804828 
    805   <rule name="SysKeyDown"> 
    806     <msg type="&WM_SYSKEYDOWN;"> 
    807       <store var="keydown"/> 
    808     </msg> 
    809     <genMsg delay="100"> 
    810       <storedVar obj="keydown"/> 
    811     </genMsg> 
    812     <idinfo> 
    813       <paramValue obj="keydown" param="key"/> 
    814     </idinfo> 
    815   </rule> 
    816  
    817   <rule name="SysKeyUp"> 
    818     <msg type="&WM_SYSKEYUP;"> 
    819       <store var="keyup"/> 
    820     </msg> 
    821     <genMsg delay="500"> 
    822       <storedVar obj="keyup"/> 
    823     </genMsg> 
    824     <idinfo> 
    825       <paramValue obj="keyup" param="key"/> 
    826     </idinfo> 
    827   </rule> 
    828  
    829829 
    830830  <!-- What follows are coordinate-based rules. They are "hail mary" rules that try to salvage events that cannot be matched or replayed in a coordinate independent way (yet). --> 
     
    930930    </genMsg> 
    931931  </rule> 
     932 
     933  <rule name ="NCLeftClickCoordinates2"> 
     934    <msg type="&WM_NCLBUTTONDOWN;"> 
     935      <store var="clicked"/> 
     936    </msg> 
     937    <msg type="&WM_NCLBUTTONUP;"> 
     938      <equals> 
     939        <paramValue obj="clicked" param="window.hwnd"/> 
     940        <paramValue obj="this" param="window.hwnd"/> 
     941      </equals> 
     942      <store var="up"/> 
     943    </msg> 
     944    <genMsg delay="100"> 
     945      <type> 
     946        <constValue value="&WM_NCLBUTTONDOWN;"/> 
     947      </type> 
     948      <target> 
     949        <msgInfoValue obj="clicked" msgParam="target"/> 
     950      </target> 
     951      <LPARAM> 
     952        <LOWORD> 
     953          <paramValue obj="clicked" param="point.x"/> 
     954        </LOWORD> 
     955        <HIWORD> 
     956          <paramValue obj="clicked" param="point.y"/> 
     957        </HIWORD> 
     958      </LPARAM> 
     959      <WPARAM> 
     960        <paramValue obj="clicked" param="WPARAM"/> 
     961      </WPARAM> 
     962    </genMsg> 
     963    <genMsg delay="500"> 
     964      <type> 
     965        <constValue value="&WM_NCLBUTTONUP;"/> 
     966      </type> 
     967      <target> 
     968        <msgInfoValue obj="up" msgParam="target"/> 
     969      </target> 
     970      <LPARAM> 
     971        <LOWORD> 
     972          <paramValue obj="up" param="point.x"/> 
     973        </LOWORD> 
     974        <HIWORD> 
     975          <paramValue obj="up" param="point.y"/> 
     976        </HIWORD> 
     977      </LPARAM> 
     978      <WPARAM> 
     979        <paramValue obj="up" param="WPARAM"/> 
     980      </WPARAM> 
     981    </genMsg> 
     982  </rule> 
     983 
     984  <rule name ="LeftClickCoordinatesTargetChanged"> 
     985    <msg type="&WM_LBUTTONDOWN;"> 
     986      <store var="clicked"/> 
     987    </msg> 
     988    <msg type="&WM_LBUTTONUP;"> 
     989      <store var="up"/> 
     990    </msg> 
     991    <genMsg delay="100"> 
     992      <type> 
     993        <constValue value="&WM_LBUTTONDOWN;"/> 
     994      </type> 
     995      <target> 
     996        <msgInfoValue obj="clicked" msgParam="target"/> 
     997      </target> 
     998      <LPARAM> 
     999        <LOWORD> 
     1000          <paramValue obj="clicked" param="point.x"/> 
     1001        </LOWORD> 
     1002        <HIWORD> 
     1003          <paramValue obj="clicked" param="point.y"/> 
     1004        </HIWORD> 
     1005      </LPARAM> 
     1006      <WPARAM> 
     1007        <paramValue obj="clicked" param="WPARAM"/> 
     1008      </WPARAM> 
     1009    </genMsg> 
     1010    <genMsg delay="500"> 
     1011      <type> 
     1012        <constValue value="&WM_LBUTTONUP;"/> 
     1013      </type> 
     1014      <target> 
     1015        <msgInfoValue obj="up" msgParam="target"/> 
     1016      </target> 
     1017      <LPARAM> 
     1018        <LOWORD> 
     1019          <paramValue obj="up" param="point.x"/> 
     1020        </LOWORD> 
     1021        <HIWORD> 
     1022          <paramValue obj="up" param="point.y"/> 
     1023        </HIWORD> 
     1024      </LPARAM> 
     1025      <WPARAM> 
     1026        <paramValue obj="up" param="WPARAM"/> 
     1027      </WPARAM> 
     1028    </genMsg> 
     1029  </rule> 
    9321030   
     1031  <rule name ="LeftClickCoordinatesTargetChanged2"> 
     1032    <msg type="&WM_LBUTTONDOWN;"> 
     1033      <store var="clicked"/> 
     1034    </msg> 
     1035    <msg type="&WM_NCLBUTTONUP;"> 
     1036      <store var="up"/> 
     1037    </msg> 
     1038    <genMsg delay="100"> 
     1039      <type> 
     1040        <constValue value="&WM_LBUTTONDOWN;"/> 
     1041      </type> 
     1042      <target> 
     1043        <msgInfoValue obj="clicked" msgParam="target"/> 
     1044      </target> 
     1045      <LPARAM> 
     1046        <LOWORD> 
     1047          <paramValue obj="clicked" param="point.x"/> 
     1048        </LOWORD> 
     1049        <HIWORD> 
     1050          <paramValue obj="clicked" param="point.y"/> 
     1051        </HIWORD> 
     1052      </LPARAM> 
     1053      <WPARAM> 
     1054        <paramValue obj="clicked" param="WPARAM"/> 
     1055      </WPARAM> 
     1056    </genMsg> 
     1057    <genMsg delay="500"> 
     1058      <type> 
     1059        <constValue value="&WM_NCLBUTTONUP;"/> 
     1060      </type> 
     1061      <target> 
     1062        <msgInfoValue obj="up" msgParam="target"/> 
     1063      </target> 
     1064      <LPARAM> 
     1065        <LOWORD> 
     1066          <paramValue obj="up" param="point.x"/> 
     1067        </LOWORD> 
     1068        <HIWORD> 
     1069          <paramValue obj="up" param="point.y"/> 
     1070        </HIWORD> 
     1071      </LPARAM> 
     1072      <WPARAM> 
     1073        <paramValue obj="up" param="WPARAM"/> 
     1074      </WPARAM> 
     1075    </genMsg> 
     1076  </rule> 
     1077 
     1078 
    9331079</rules> 
Note: See TracChangeset for help on using the changeset viewer.