As I understand, you would like to send a password located in a Password State entry to logon on a Windows machine that the connection is established in TeamViewer.
Since we are not able to send the password automatically inside the TeamViewer session, you would need to accomplish this with a typing macro like you have done, however, I will provide you another tip to accomplish this.
Firstly, the typing macro session should look like the following;
Please note that the initial wait has been configured to 5 seconds, maybe it will be less or more in your case, it's different on every system.
Secondly, in the properties of your Password State entry, you will enable the Allow password in variable in the Advanced section.
Thirdly, in Administration -> Data Sources Settings -> Password Policy, you will enable the Allow password in macro (send keys) option.
Fourthly, when the TeamViewer session is opened and that the password is ready to be entered, right-click on your credential entry and select Macros/Scripts/Tools -> Send Password.
In conclusion, put your cursor in the appropriate password field and the typing macro will do the rest.
Although our various support queues will be monitored for emergencies, Devolutions' offices will be closed on June 24 and July 1st, 2019.