Page 1 of 1

Help with focusing on a part of a page

PostPosted: Mon Jun 08, 2020 9:31 am
by ShawnD
Good morning.

Is there some way I can use eValid to set the focus in a part of a page?

I mean, how do you do a mouse-down at some place?

Thanks

Re: Help with focusing on a part of a page

PostPosted: Tue Jun 09, 2020 8:00 am
by eValid
ShawnD wrote:Good morning.

Is there some way I can use eValid to set the focus in a part of a page?

I mean, how do you do a mouse-down at some place?

Thanks



Thanks for asking ShawnD.

There are several mouse down commands available:

(A) The command: IndexElementMouseDown wid [x y] "frame_path" [NAV] requires that you know the window id and an x and y position (offset) for where you want the "mouse down" event to land.

(B) The command: ElementMouseDown wid idx [x y] "id" "visible text" "frame_path" [NAV] is more subtle in that it will trigger the mouse down in a particular window at a particular DOM index which has a specified element "id".

Fair warning: these can be tricky to set up to work reliably, and, to be honest, we prefer (B) because it is less dependent on things like screen size and current window size, etc.


-- eValid Support