ma4xat Posted September 9, 2008 Posted September 9, 2008 Hi, im novice in this program. i Want to know that how can i attach autoit to a opened program, and send keys ( inclusive if the program is minimized ). I just get the Handle with: WinGetHandle but dont know how to send keys to this handle directly,. i dont want to set to active this windows, just get minimized. Its possible?
Andreik Posted September 9, 2008 Posted September 9, 2008 (edited) Hi, im novice in this program. i Want to know that how can i attach autoit to a opened program, and send keys ( inclusive if the program is minimized ). I just get the Handle with: WinGetHandle but dont know how to send keys to this handle directly,. i dont want to set to active this windows, just get minimized. Its possible? Read in help file about ControlSetText and ControlSend. Look here an example: AutoItSetOption ("WinTitleMatchMode",2) Run("Notepad.exe") WinWait("Notepad") WinSetState("Notepad","",@SW_MINIMIZE) ControlSetText("Notepad","","[CLASS:Edit;INSTANCE:1]","This is a test") Edited September 9, 2008 by Andreik
ma4xat Posted September 9, 2008 Author Posted September 9, 2008 What about this: [CLASS:Edit;INSTANCE:1] Is always the same ?
Andreik Posted September 9, 2008 Posted September 9, 2008 What about this: [CLASS:Edit;INSTANCE:1] Is always the same ? Yes. Use AutoIt Window Info to get controlID or classname from a window.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now