level20peon Posted May 20, 2009 Share Posted May 20, 2009 (edited) How would you delete existing text in an inputfield which is not created by an autoit gui ? The gui-equivalent function is GUICtrlSetData() which apparently doesn't work in my case. I am using a workaround atm by sending a series of backspaces and/or dels before sending the text to the input field ControlSend('windowXYZ','','Edit1','{BS}{BS}{BS}{BS}{BS}{BS}{BS}{BS}{BS}{BS}{DEL}{DEL}{DEL}{DEL}{DEL}{DEL}{DEL}{DEL}{DEL}{DEL}'&'text') Is there a more elegant way to implement this ? Edited May 20, 2009 by level20peon Link to comment Share on other sites More sharing options...
level20peon Posted May 20, 2009 Author Share Posted May 20, 2009 This did the trick, thank you. 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