If a macro is set up with modifier keystrokes, it will work when using it on the current computer. But when executing the macro through a remote desktop, the lag will cause the modifier keystrokes to not always register.
Example:
-
You have text in clipboard.
-
Desired result: wrap clipboard content as "System.debug('<clipboard>: ' + <clipboard>);"
-
Macro performs several ctrl press, v press-release, ctrl release (clipboard paste), as well as shift press, ; (semicolon) press-release, shift release..
-
Result of macro when executed via RDP window is the modifier press isn't always recognized.
Temporary solution:
-
Apply a 15ms delay just after every modifier press (didn't need to after release...at least not yet). A 5ms delay helps, but still has some misses. 15ms or more is recommended.