Jump to content
Sign in to follow this  
level20peon

(solved) delete existing text in inputfield

Recommended Posts

level20peon

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 by level20peon

Share this post


Link to post
Share on other sites
level20peon

This did the trick, thank you.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×