Is it possible to detect when a button is pressed ?

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
reimon9
Newbie
Posts: 14
Joined: Mon Oct 01, 2007 9:15 pm

Is it possible to detect when a button is pressed ?

Post by reimon9 » Thu Apr 26, 2012 4:18 pm

Hello !!!

Is it possible to detect when a button is pressed in standard window ?

Thanks and greetings,

Reimon

User avatar
JRL
Automation Wizard
Posts: 3532
Joined: Mon Jan 10, 2005 6:22 pm
Location: Iowa

Post by JRL » Thu Apr 26, 2012 4:30 pm

As far as I know, only the application that owns a window receives the information that a button was pressed.

That said. It is usually possible to write a script to handle the result of a particular button press and handle that result much faster than a person could react. It might also be possible to write a script that detects that a mouse click occurred then locate the position of the mouse cursor and if the position of the mouse cursor aligns with the screen position of the button, assume the button was clicked.

reimon9
Newbie
Posts: 14
Joined: Mon Oct 01, 2007 9:15 pm

Thanks JRL

Post by reimon9 » Sun Apr 29, 2012 7:16 pm

Dear JRL.

Thank you very much.

Greetings,

Reimon

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts