Changeset 62 for trunk/EventBenchConsole/rules
- Timestamp:
- 06/15/11 11:17:47 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/EventBenchConsole/rules/rules.xml
r59 r62 3 3 <rules xmlns="ul:rules" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="ul:rules ruleSchema.xsd"> 4 4 5 6 7 5 <!-- rules regarding mouse clicks --> 8 <rule name="LeftClickButton">9 <msg type="&WM_LBUTTONDOWN;">10 <store var="clicked"/>11 </msg>12 <msg type="&WM_LBUTTONUP;">13 <equals>14 <constValue value="Button"/>15 <winInfoValue obj="this" winParam="class"/>16 </equals>17 <equals>18 <paramValue obj="clicked" param="window.hwnd"/>19 <paramValue obj="this" param="window.hwnd"/>20 </equals>21 </msg>22 <genMsg delay="100">23 <type>24 <constValue value="&BM_CLICK;"/>25 </type>26 <target>27 <msgInfoValue obj="clicked" msgParam="target"/>28 </target>29 </genMsg>30 </rule>6 <rule name="LeftClickButton"> 7 <msg type="&WM_LBUTTONDOWN;"> 8 <store var="clicked"/> 9 </msg> 10 <msg type="&WM_LBUTTONUP;"> 11 <equals> 12 <constValue value="Button"/> 13 <winInfoValue obj="this" winParam="class"/> 14 </equals> 15 <equals> 16 <paramValue obj="clicked" param="window.hwnd"/> 17 <paramValue obj="this" param="window.hwnd"/> 18 </equals> 19 </msg> 20 <genMsg delay="100"> 21 <type> 22 <constValue value="&BM_CLICK;"/> 23 </type> 24 <target> 25 <msgInfoValue obj="clicked" msgParam="target"/> 26 </target> 27 </genMsg> 28 </rule> 31 29 32 30 <rule name="LeftClickListBox"> … … 59 57 60 58 61 <!-- TabChange funktioniert, allerdings wird der Content darunter nicht aktualisiert-->59 <!-- The tab change itself works, but the content of the tab is not refreshed. --> 62 60 <rule name="TabChange"> 63 61 <msg type="&WM_LBUTTONDOWN;"> … … 436 434 </rule> 437 435 438 439 440 <!-- Wenn eine Scrollbar benutzt wurde, die kein eigenes Handle hat, also eine StandardScrollbar in einer ListBox zb 441 Muss noch auf Sequenz erweitert werden, im Moment wird der Thumb der Scrollbar nur auf die erste Position gesetzt (normalerweise also 0) --> 436 <!-- Does not work correctly, if a scrollbar has no handle of its own, e.g., a standard scrollbar of a listbox --> 442 437 <rule name="VScrollNC"> 443 438 <msg type="&WM_NCLBUTTONDOWN;"> … … 501 496 </rule>--> 502 497 503 <!-- copy of set focus without kill-foxus -->498 <!-- Copy of set focus without kill-focus --> 504 499 <rule name="LeftClickSetFocus"> 505 500 <msg type="&WM_LBUTTONDOWN;"> … … 557 552 </rule> 558 553 559 <!-- if nothing else, at least switch focus, works only partially-->554 <!-- Works only partially! --> 560 555 <rule name="LeftClickChangeFocus"> 561 556 <msg type="&WM_LBUTTONDOWN;"> … … 632 627 633 628 634 <!-- rules regardingkeyboard input -->635 < !-- <rule name="KeyPressed">629 <!-- Rules for keyboard input --> 630 <rule name="KeyDown"> 636 631 <msg type="&WM_KEYDOWN;"> 637 632 <store var="keydown"/> 638 633 </msg> 639 <msg type="&WM_KEYUP;">640 <store var="keyup"/>641 </msg>642 634 <genMsg delay="20"> 643 635 <storedVar obj="keydown"/> 644 </genMsg>645 <genMsg delay="100">646 <storedVar obj="keyup"/>647 636 </genMsg> 648 637 <idinfo> … … 651 640 </rule> 652 641 653 <rule name="SysKeyPressed"> 642 <rule name="KeyUp"> 643 <msg type="&WM_KEYUP;"> 644 <store var="keyup"/> 645 </msg> 646 <genMsg delay="20"> 647 <storedVar obj="keyup"/> 648 </genMsg> 649 <idinfo> 650 <paramValue obj="keyup" param="key"/> 651 </idinfo> 652 </rule> 653 654 <rule name="SysKeyDown"> 654 655 <msg type="&WM_SYSKEYDOWN;"> 655 656 <store var="keydown"/> 656 657 </msg> 657 <msg type="&WM_SYSKEYUP;">658 <store var="keyup"/>659 </msg>660 658 <genMsg delay="20"> 661 659 <storedVar obj="keydown"/> 662 </genMsg>663 <genMsg delay="100">664 <storedVar obj="keyup"/>665 660 </genMsg> 666 661 <idinfo> 667 662 <paramValue obj="keydown" param="key"/> 668 663 </idinfo> 669 </rule> --> 670 671 <!-- Alternate rules --> 672 <rule name="KeyDown"> 673 <msg type="&WM_KEYDOWN;"> 674 <store var="keydown"/> 675 </msg> 676 <genMsg delay="20"> 677 <storedVar obj="keydown"/> 678 </genMsg> 679 <idinfo> 680 <paramValue obj="keydown" param="key"/> 681 </idinfo> 682 </rule> 683 684 <rule name="KeyUp"> 685 <msg type="&WM_KEYUP;"> 664 </rule> 665 666 <rule name="SysKeyUp"> 667 <msg type="&WM_SYSKEYUP;"> 686 668 <store var="keyup"/> 687 669 </msg> … … 694 676 </rule> 695 677 696 <rule name="SysKeyDown"> 697 <msg type="&WM_SYSKEYDOWN;"> 698 <store var="keydown"/> 699 </msg> 700 <genMsg delay="20"> 701 <storedVar obj="keydown"/> 702 </genMsg> 703 <idinfo> 704 <paramValue obj="keydown" param="key"/> 705 </idinfo> 706 </rule> 707 708 <rule name="SysKeyUp"> 709 <msg type="&WM_SYSKEYUP;"> 710 <store var="keyup"/> 711 </msg> 712 <genMsg delay="20"> 713 <storedVar obj="keyup"/> 714 </genMsg> 715 <idinfo> 716 <paramValue obj="keyup" param="key"/> 717 </idinfo> 718 </rule> 719 720 721 722 <!--Diese Regel basiert auf relativen Koordinaten...wird nicht funktionieren, wenn sich zb das zu klickende Element in einer Symbolleiste 723 verschoben hat. Die Regel sendet ein WM_LBUTTONDOWN und WM_LBUTTONUP mit den relativen Koordinaten, die beim Aufzeichnen des Logs berechnet und 724 in WM_LBUTTONUP übergeben wurden--> 725 726 <rule name ="LeftClickRelativ"> 678 679 <!-- 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). --> 680 <rule name ="LeftClickCoordinates"> 727 681 <msg type="&WM_LBUTTONDOWN;"> 728 682 <store var="clicked"/> … … 735 689 <store var="up"/> 736 690 </msg> 737 <genMsg delay=" 0">691 <genMsg delay="20"> 738 692 <type> 739 693 <constValue value="&WM_LBUTTONDOWN;"/> … … 741 695 <target> 742 696 <msgInfoValue obj="clicked" msgParam="target"/> 697 </target> 698 <LPARAM> 699 <LOWORD> 700 <paramValue obj="clicked" param="point.x"/> 701 </LOWORD> 702 <HIWORD> 703 <paramValue obj="clicked" param="point.y"/> 704 </HIWORD> 705 </LPARAM> 706 <WPARAM> 707 <paramValue obj="clicked" param="WPARAM"/> 708 </WPARAM> 709 </genMsg> 710 <genMsg delay="20"> 711 <type> 712 <constValue value="&WM_LBUTTONUP;"/> 713 </type> 714 <target> 715 <msgInfoValue obj="up" msgParam="target"/> 743 716 </target> 744 717 <LPARAM> … … 751 724 </LPARAM> 752 725 <WPARAM> 753 <constValue value="1"/> 754 </WPARAM> 755 </genMsg> 756 <genMsg delay="0"> 757 <storedVar obj="up"/> 726 <paramValue obj="up" param="WPARAM"/> 727 </WPARAM> 728 </genMsg> 729 </rule> 730 731 <rule name ="NCLeftClickCoordinates"> 732 <msg type="&WM_NCLBUTTONDOWN;"> 733 <store var="clicked"/> 734 </msg> 735 <msg type="&WM_LBUTTONUP;"> 736 <equals> 737 <paramValue obj="clicked" param="window.hwnd"/> 738 <paramValue obj="this" param="window.hwnd"/> 739 </equals> 740 <store var="up"/> 741 </msg> 742 <genMsg delay="20"> 743 <type> 744 <constValue value="&WM_NCLBUTTONDOWN;"/> 745 </type> 746 <target> 747 <msgInfoValue obj="clicked" msgParam="target"/> 748 </target> 749 <LPARAM> 750 <LOWORD> 751 <paramValue obj="clicked" param="point.x"/> 752 </LOWORD> 753 <HIWORD> 754 <paramValue obj="clicked" param="point.y"/> 755 </HIWORD> 756 </LPARAM> 757 <WPARAM> 758 <paramValue obj="clicked" param="WPARAM"/> 759 </WPARAM> 760 </genMsg> 761 <genMsg delay="20"> 762 <type> 763 <constValue value="&WM_LBUTTONUP;"/> 764 </type> 765 <target> 766 <msgInfoValue obj="up" msgParam="target"/> 767 </target> 768 <LPARAM> 769 <LOWORD> 770 <paramValue obj="up" param="point.x"/> 771 </LOWORD> 772 <HIWORD> 773 <paramValue obj="up" param="point.y"/> 774 </HIWORD> 775 </LPARAM> 776 <WPARAM> 777 <paramValue obj="up" param="WPARAM"/> 778 </WPARAM> 758 779 </genMsg> 759 780 </rule>
Note: See TracChangeset
for help on using the changeset viewer.