Jump to content

Recommended Posts

Posted (edited)

@Nine In your example, the enter key does not work.

5qR06L.png

 

Also this example:

Send('FILECMD.CMD "Sample{+}.exe"{enter}') 

Maybe Sample exe has a lot of Pluses

Sample++++++++++.exe

 

Edited by youtuber
Posted

When sending "raw" data, the string is sent as-is, without translating any of the special characters (+!^) or keys ({key}).  So an alternate solution would be to break up the string into what you want to send as-is (raw) and the sending of keys like {ENTER}.

#RequireAdmin
Run(@ComSpec)
WinWait("[CLASS:ConsoleWindowClass]")
WinActivate("[CLASS:ConsoleWindowClass]")
WinWaitActive("[CLASS:ConsoleWindowClass]")
Send('FILECMD.CMD "Sample+++++.exe"', 1)
Send('{enter}')

 

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

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...