thickwick Posted August 10, 2007 Posted August 10, 2007 Hey im Very new to auto it and im wondering whats the funcion that enters text in any open window? thanks so much in advance, Thickwick
thickwick Posted August 10, 2007 Author Posted August 10, 2007 thanks nah works the above post was for gen's
Generator Posted August 10, 2007 Posted August 10, 2007 You need to know what controlID you are sending text to, use AutoIt Windows Info to retrieve it, an example would be..From the help file Run("notepad.exe") WinWait("Untitled -") ControlSetText("Untitled -", "", "Edit1", "New Text Here" )
thickwick Posted August 10, 2007 Author Posted August 10, 2007 (edited) Bellow is the current script im trying to get working Global $Paused HotKeySet("{END}", "TogglePause") HotKeySet("{HOME}", "Terminate") While 1 Sleep(100) WEnd Func TogglePause() $Paused = NOT $Paused While $Paused sleep(100) send("test") send("{ENTER}") WEnd EndFunc Func Terminate() Exit 0 EndFunc it types but makes ding sounds every time Edited August 10, 2007 by thickwick
Generator Posted August 10, 2007 Posted August 10, 2007 Not sure what's causing the ding sound, but you should focus on a control that allows text to be inserted.
thickwick Posted August 10, 2007 Author Posted August 10, 2007 nvm it seems to work right for what ill use it for =D thanks all
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