I soon found it is very hard to find a right window handler and to find a right windows message even with Spy++.
At first time when I found AutoIt, I didn't expect something more than AutoMouse like simple features. My expectation was got suddenly raised after I read an sample example about notepad. It was a reliable script language rather than just sending some Windows messages.
Here is an simple example from its website:
Run("notepad.exe")We can also send keyboard short-cut messages:
WinWaitActive("Untitled - Notepad")
Send("This is some text.")
; from http://www.autoitscript.com/autoit3/docs/tutorials/notepad/notepad.htm
Send("!f") ; Alt+fI haven't seen mouse input functions yet. But there must be someway to do it; I will figure it later.
Send("^s") ; Ctrl+s
Send("{ENTER}") ; Enter
I think this utility can save lot of time for testing GUI applications.
No comments:
Post a Comment