Alex123456 Posted August 18, 2022 Share Posted August 18, 2022 I have an autoit script that uses the Send function to send keyboard typing to input boxes. In particular, it is sending file name paths to a "Save File" dialog box in windows (printing a PDF file). So the command is something like: $filename = "C:\BLX\print\output.pdf" Send($filename) This seems to work most of the time. However, sometimes, the keys that are sent are actually converted: : becomes ; \ becomes | You can see this in the error message below. I'm 100% sure my $filename variable does NOT contain the ; or | characters. I've even done: StringReplace($filename, ";", ":") StringReplace($filename, "|", "\") just before the call to: Send($filename). The problem is somewhat intermittent. Does anyone have any suggestions or ideas as to how to fix this? Thanks Alex. Link to comment Share on other sites More sharing options...
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!Register a new account
Already have an account? Sign in here.Sign In Now