My idea is to use the command below, to clear the field .:
Code: Select all
ControlSend , Edit1, {End}{LShift Down}{Home}{LShift Up}{Delete}, %WinID%
But how do I know that field have been emptied before new data is written in the field?
Need the field be checked by the instructions below, before the new information is written in the field?
Code: Select all
ControlGetText Var1, Edit1, %WinID%
If StrLen(Var1) > 0
MsgBox the field was not empty
else
ControlSend , Edit1, %Info1%, %WinID%
Some other way / better way, to solve my wishes?
It is not good if the information does not have time to be erased, before new information is written.
//Jan