Jump to content

(solved) delete existing text in inputfield


Recommended Posts

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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...