Index: trunk/EventBenchConsole/rules/rules.xml
===================================================================
--- trunk/EventBenchConsole/rules/rules.xml	(revision 37)
+++ trunk/EventBenchConsole/rules/rules.xml	(revision 46)
@@ -60,5 +60,5 @@
       1) Irgendwo in das Tabfeld klicken: WM_LBUTTONDOWN
       2) Auf ein Tabelement klicken:      WM_LBUTTONDOWN + WM_USER -->
-  <rule name="TabChange">
+  <rule name="TabChanged">
     <msg type="&WM_LBUTTONDOWN;">
       <equals>
@@ -89,5 +89,5 @@
     </genMsg>
   </rule>
-  
+
 
   <rule name="ComboBox">
@@ -279,6 +279,10 @@
  
   <!-- rules involving mouse movement -->
-  <rule name="HScroll">
-    <msg type="&WM_LBUTTONDOWN;">
+  <rule name="HScroll_TrackBar">
+    <msg type="&WM_LBUTTONDOWN;">
+      <equals>
+        <winInfoValue obj="this" winParam="class"/>
+        <constValue value="msctls_trackbar32"/>
+      </equals>
       <store var="clicked"/>
     </msg>
@@ -291,5 +295,5 @@
         <resolveHwnd param="scrollBarHandle" storeParam="scrollBarTarget"/>
       </storeSeq>
-    </msg>
+    </msg>    
     <msg type="&WM_LBUTTONUP;">
       <equals>
@@ -314,5 +318,190 @@
   </rule>
 
-   
+
+  <rule name="VScroll_TrackBar">
+    <msg type="&WM_LBUTTONDOWN;">
+      <equals>
+        <winInfoValue obj="this" winParam="class"/>
+        <constValue value="msctls_trackbar32"/>
+      </equals>
+      <store var="clicked"/>
+    </msg>
+    <msg type="&WM_VSCROLL;" multiple="true">
+      <equals>
+        <paramValue obj="this" param="scrollBarHandle"/>
+        <paramValue obj="clicked" param="window.hwnd"/>
+      </equals>
+      <storeSeq varSeq="scrolls">
+        <resolveHwnd param="scrollBarHandle" storeParam="scrollBarTarget"/>
+      </storeSeq>
+    </msg>
+    <msg type="&WM_LBUTTONUP;">
+      <equals>
+        <paramValue obj="this" param="window.hwnd"/>
+        <paramValue obj="clicked" param="window.hwnd"/>
+      </equals>
+    </msg>
+    <genMsgSeq delay="20">
+      <type>
+        <constValue value="&TBM_SETPOS;"/>
+      </type>
+      <target>
+        <seqValue seqObj="scrolls" param="scrollBarTarget"/>
+      </target>
+      <LPARAM>
+        <seqValue seqObj="scrolls" param="scrollPos"/>
+      </LPARAM>
+      <WPARAM>
+        <constValue value="1"/>
+      </WPARAM>
+    </genMsgSeq>
+  </rule>
+
+
+  <rule name="HScroll_ScrollBar">
+    <msg type="&WM_LBUTTONDOWN;">
+      <equals>
+        <winInfoValue obj="this" winParam="class"/>
+        <constValue value="ScrollBar"/>
+      </equals>
+      <store var="clicked"/>
+    </msg>
+    <msg type="&WM_HSCROLL;" multiple="true">
+      <equals>
+        <paramValue obj="this" param="scrollBarHandle"/>
+        <paramValue obj="clicked" param="window.hwnd"/>
+      </equals>
+      <storeSeq varSeq="scrolls">
+        <resolveHwnd param="scrollBarHandle" storeParam="scrollBarTarget"/>
+      </storeSeq>
+    </msg>
+    <msg type="&WM_LBUTTONUP;">
+      <equals>
+        <paramValue obj="this" param="window.hwnd"/>
+        <paramValue obj="clicked" param="window.hwnd"/>
+      </equals>
+    </msg>
+    <genMsgSeq delay="20">
+      <type>
+        <constValue value="&SBM_SETPOS;"/>
+      </type>
+      <target>
+        <seqValue seqObj="scrolls" param="scrollBarTarget"/>
+      </target>
+      <LPARAM>
+        <constValue value="1"/>
+      </LPARAM>
+      <WPARAM>
+        <seqValue seqObj="scrolls" param="scrollPos"/>
+      </WPARAM>
+    </genMsgSeq>
+  </rule>
+
+
+  <rule name="VScroll_ScrollBar">
+    <msg type="&WM_LBUTTONDOWN;">
+      <equals>
+        <winInfoValue obj="this" winParam="class"/>
+        <constValue value="ScrollBar"/>
+      </equals>
+      <store var="clicked"/>
+    </msg>
+    <msg type="&WM_VSCROLL;" multiple="true">
+      <equals>
+        <paramValue obj="this" param="scrollBarHandle"/>
+        <paramValue obj="clicked" param="window.hwnd"/>
+      </equals>
+      <storeSeq varSeq="scrolls">
+        <resolveHwnd param="scrollBarHandle" storeParam="scrollBarTarget"/>
+      </storeSeq>
+    </msg>
+    <msg type="&WM_LBUTTONUP;">
+      <equals>
+        <paramValue obj="this" param="window.hwnd"/>
+        <paramValue obj="clicked" param="window.hwnd"/>
+      </equals>
+    </msg>
+    <genMsgSeq delay="20">
+      <type>
+        <constValue value="&SBM_SETPOS;"/>
+      </type>
+      <target>
+        <seqValue seqObj="scrolls" param="scrollBarTarget"/>
+      </target>
+      <LPARAM>
+        <constValue value="1"/>
+      </LPARAM>
+      <WPARAM>
+        <seqValue seqObj="scrolls" param="scrollPos"/>
+      </WPARAM>
+    </genMsgSeq>
+  </rule>
+  
+
+  
+  <!-- Wenn eine Scrollbar benutzt wurde, die kein eigenes Handle hat, also eine StandardScrollbar in einer ListBox zb
+       Muss noch auf Sequenz erweitert werden, im Moment wird der Thumb der Scrollbar nur auf die erste Position gesetzt (normalerweise also 0) -->
+  <rule name="VScrollNC">
+    <msg type="&WM_NCLBUTTONDOWN;">
+      <store var="clicked"/>
+    </msg>
+    <msg type="&WM_VSCROLL;">
+      <equals>
+        <paramValue obj="this" param="window.hwnd"/>
+        <paramValue obj="clicked" param="window.hwnd"/>
+      </equals>
+      <store var="scrolls"/>
+    </msg>
+    <genMsg delay="20">
+      <type>
+        <constValue value="&WM_VSCROLL;"/>
+      </type>
+      <target>
+        <msgInfoValue obj="clicked" msgParam="target"/>
+      </target>
+      <WPARAM>
+        <LOWORD>
+          <constValue value="4"/>
+        </LOWORD>
+        <HIWORD>
+          <paramValue obj="scrolls" param="scrollPos"/>
+        </HIWORD>
+      </WPARAM>
+    </genMsg>
+  </rule>
+
+
+  <!--<rule name="VScrollNC">
+    <msg type="&WM_NCLBUTTONDOWN;">
+      <store var="clicked"/>
+    </msg>
+    <msg type="&WM_VSCROLL;" multiple="true">
+      <equals>
+        <paramValue obj="this" param="window.hwnd"/>
+        <paramValue obj="clicked" param="window.hwnd"/>
+      </equals>
+      <storeSeq varSeq="scrolls">
+        <resolveHwnd param="window.hwnd" storeParam="scrollBarTarget"/>
+      </storeSeq>
+    </msg>
+    <genMsgSeq delay="20">
+      <type>
+        <constValue value="&WM_VSCROLL;"/>
+      </type>
+      <target>
+        <seqValue seqObj="scrolls" param="scrollBarTarget"/>
+      </target>
+      <WPARAM>
+        <LOWORD>
+          <constValue value="4"/>
+        </LOWORD>
+        <HIWORD>
+          <paramValue obj="scrolls" param="scrollPos"/>
+        </HIWORD>
+      </WPARAM>
+    </genMsgSeq>
+  </rule>-->
+
+ 
   
   <!-- if nothing else, at least switch focus, works only partially -->
