Search the Community
Showing results for tags 'controlsend case'.
-
ControlSend changes case intermittently
emendelson posted a topic in AutoIt General Help and Support
This question has come up in various ways before, but I can't find a solution, and I'm not sure there is one. I'm trying to use ControlSend to enter a file path in a Windows File/Save dialog box. The plain Send command works perfectly to enter the file path, but I want to hide the application window that I'm sending the file path to, and I think that only ControlSend will work in that situation - as well as being generally more reliable. What happens is that a path like F:\path\to\myfile gets entered as something like F;\path|tO\myfiLe - with some of the characters that I want to paste replaced with the opposite-case character on the keyboard. For example, the colon becomes a semi-colon and the backslash becomes a vertical. (This is effectively the same thing that was described in an earlier post about Czech letters appearing instead of the intended characters.) I've tried turning on the raw-characters option; that doesn't help. I've tried putting the path in the Clipboard and then, in ControlSend, using ClipGet() instead of the variable that contains the string. The clipboard method seems to improve things a bit, but I still end up with a semi-colon and not a colon after the drive letter. Is there any reliable way to get around this problem? I'm running Windows 10 and trying to enter text in the File/Save box in Softmaker's free TextMaker word-processor. Thanks for any help.