-
FEATURED COMPONENTS
First time here? Check out the FAQ!
I need to fire a left mouse click event at a specific location on the screen from either my server or in the client in zscript or javascript.
Hello Ansancle,
according to this stack overflow the browser API already has such built in functionality.
Here a zkfiddle showing how to trigger the event to the component below a certain coordinate.
Note: triggering events from server side Java code will result in untrusted events (depending on the browser) having less privileges to perform certain actions. https://developer.mozilla.org/en/docs/Web/API/Event/isTrusted
Still I am not sure this e exactly what you were asking for. If questions remain please provide additional details.
Robert
Hello ansancle,
You can start by checking out the following component:
https://www.zkoss.org/wiki/ZKComponentReference/Essential_Components/Imagemap
Else you could use javascript as shown at the following forum post:
http://forum.zkoss.org/question/21645/how-to-get-the-current-location-x-y-of-mouse-cursor/
Best,
Darksu
Asked: 2017-04-12 12:50:05 +0800
Seen: 28 times
Last updated: Apr 17 '17