The below partially works, but I have some problems.
If I select many lines of text, sometimes it just stops after 50 or 60 characters. Maybe this has to do with keypresses being interpreted as key combinations inside the RDP session - this particularly occurs with " characters, so maybe it is following Dutch keyboard behaviour where pressing a " will wait for the next character to decide on what to output (for characters with accents etc)?
Is there some kind of way to do "really really raw!, or to disable any pre-processing / keyboard settings that might be interfering with the text transfer?
Code: Select all
^#!v:: ; Paste clipboard raw (also inside nested RDP sessions, but only if that session is *not* fullscreen)
Sleep, 100
ClipWait 1 ; Don't know if this is good, better would be to check for TEXT in clipbord otherwise fail
tempClipboard := Clipboard
Sleep, 100
SetKeyDelay, 100, 50 ; Slowing down here, as seems required when putting passwords into an RDP lock screen
SendRaw, %tempClipboard%
SetKeyDelay, 10, -1 ; Restore default delay between keys
Sleep, 100
Send, {Enter}
return