From c4cb544cd5beaa864b3893e4b8d0085393c7dbce Mon Sep 17 00:00:00 2001 From: Ernie Rael Date: Sun, 3 Apr 2022 15:47:28 +0100 Subject: patch 8.2.4674: cannot force getting MouseMove events Problem: Cannot force getting MouseMove events. Solution: Add the 'mousemoveevent' option with implementaiton for the GUI. (Ernie Rael, closes #10044) --- runtime/doc/testing.txt | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) (limited to 'runtime/doc/testing.txt') diff --git a/runtime/doc/testing.txt b/runtime/doc/testing.txt index 2a74883a94..1b726f7390 100644 --- a/runtime/doc/testing.txt +++ b/runtime/doc/testing.txt @@ -131,8 +131,8 @@ test_gui_event({event}, {args}) forward: set to 1 for forward search. "mouse": - Inject a mouse button click event. The supported items in - {args} are: + Inject either a mouse button click, or a mouse move, event. + The supported items in {args} are: button: mouse button. The supported values are: 0 right mouse button 1 middle mouse button @@ -151,6 +151,28 @@ test_gui_event({event}, {args}) 4 shift is pressed 8 alt is pressed 16 ctrl is pressed + move: Optional; if used and TRUE then a mouse move + event can be generated. + Only {args} row: and col: are used and + required; they are interpreted as pixels. + Only results in an event when 'mousemoveevent' + is set or a popup uses mouse move events. + + "scrollbar": + Set or drag the left, right or horizontal scrollbar. Only + works when the scrollbar actually exists. The supported + items in {args} are: + which: scrollbar. The supported values are: + left Left scrollbar of the current window + right Right scrollbar of the current window + hor Horizontal scrollbar + value: amount to scroll. For the vertical scrollbars + the value can be 1 to the line-count of the + buffer. For the horizontal scrollbar the + value can be between 1 and the maximum line + length, assuming 'wrap' is not set. + dragging: 1 to drag the scrollbar and 0 to click in the + scrollbar. "scrollbar": Set or drag the left, right or horizontal scrollbar. Only -- cgit v1.2.3