thickwick Posted August 10, 2007 Share 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 Link to comment Share on other sites More sharing options...
Generator Posted August 10, 2007 Share Posted August 10, 2007 ControlSetTex() Link to comment Share on other sites More sharing options...
Nahuel Posted August 10, 2007 Share Posted August 10, 2007 Send("text") ?? Link to comment Share on other sites More sharing options...
thickwick Posted August 10, 2007 Author Share Posted August 10, 2007 no working =( Link to comment Share on other sites More sharing options...
meekaah Posted August 10, 2007 Share Posted August 10, 2007 try: Send(texthere) Send("{ENTER}") Link to comment Share on other sites More sharing options...
thickwick Posted August 10, 2007 Author Share Posted August 10, 2007 thanks nah works the above post was for gen's Link to comment Share on other sites More sharing options...
Generator Posted August 10, 2007 Share 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" ) Link to comment Share on other sites More sharing options...
thickwick Posted August 10, 2007 Author Share 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 Link to comment Share on other sites More sharing options...
Generator Posted August 10, 2007 Share 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. Link to comment Share on other sites More sharing options...
thickwick Posted August 10, 2007 Author Share Posted August 10, 2007 nvm it seems to work right for what ill use it for =D thanks all Link to comment Share on other sites More sharing options...
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