if $PASSWORD$ variable contains '+' sign it stops typing

if $PASSWORD$ variable contains '+' sign it stops typing

avatar

I use a macro to login to a flash management interface (they should be banned :)). My password contains a + sign. The macro stops typing the variable at the plus sign.


To troubleshoot this I let the macro type into the username field (so I could see what was typed). I tried with three different passwords:
12345ABCD+
12345+ABCD
+12345ABCD


What was typed into the username field was:

12345ABCD
12345


(nothing for the last password beginning with the + sign)

Seems to be a bug? Any idea what to do about this?

All Comments (5)

avatar

Hi,
We need to replace + with {Add} because the + is used to send the shift key

https://msdn.microsoft.com/en-us/library/system.windows.forms.sendkeys(v=vs.110).aspx

Could you try this?

David Hervieux

avatar

Yes, that works. But it's not really a solution. Now my password no longer works if I copy-paste it or use it for a normal connection :(.

I think you shouldn't replace a + with the shift key when sending a variable (or replace + to {Add} within the variable before sending it if that's technically easier).

avatar

Great. This was just for a test.

I will make sure that the application takes care of replace when it's used a variable.

David Hervieux

avatar

ok, thanks!

avatar

This is now fixed internally

David Hervieux