Please tell me how do I click in point coordinates in the application window? I am trying to automate my application on UIX 10.10 using JXA technology. In the documentation I found that this is possible by clicking on the event. IX introduces the initial Jaxa and Khachdi language how to call. The code snippet I tried to do in the script editor:
var app = application ('my_application_path') app.window.click.at ('{100,100}')
< / Pre>Thanks for the help
You can access an application using the system events application Users can interact with the interface. Here's a script that clicks on some coordinates in Safari:
// Activate the Safari so that you can click as a user application ("Safari"). Activate () // Access System Events Safari Processing System Systems Avis = Application ("System Events") var Safari = System events. Process ["Safari"] // Call Call Command, click the coordinates [X, Y] Safari. : [300, 100]})
If you want to click on a specific button (or other elements of the user interface), then clicking that particular element is more appropriate. For example:
// Safari.windows [0] Click on the third button of Safari's first window to reduce the .buttons. [2]. Click ()
to see how the user can interact with interface elements and how to read the system events scripting dictionary in the Processes suite. To open a dictionary, in the menu bar of the script editor, select Window> Library, then select System Event in the Library window.
No comments:
Post a Comment