Created
October 11, 2016 05:27
-
-
Save yyamasak/3703a48577403d8439cc8026f243a259 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package require Garuda | |
set script { | |
object load -import System | |
object load -import UIAutomationClient | |
object load -import UIAutomationTypes | |
object load -import UIAutomationProvider | |
object load -import UIAutomationClientsideProviders | |
set process [object invoke Process Start "calc"] | |
after 1000 | |
set main [object invoke AutomationElement FromHandle [object create IntPtr [object invoke $process MainWindowHandle]]] | |
set root [object invoke AutomationElement RootElement] | |
set cond [object create PropertyCondition [object invoke AutomationElement ProcessIdProperty] [object invoke $process Id]] | |
} | |
eagle $script |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
[object invoke $process Id] needs to be converted into Int32 but I don't know how to do it in Garuda.