Jump to content
youtuber

ConsoleWindowClass command entry problem

Recommended Posts

Try to send it raw :

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

As + means shift.  Or embed + with {+}

Share this post


Link to post
Share on other sites

@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

Share this post


Link to post
Share on other sites
5 minutes ago, youtuber said:

 In your example, the enter key does not work.

Yes, you are right my bad. And I do not see your png.  Better to embed the plus...

Share this post


Link to post
Share on other sites

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}')

 

Share this post


Link to post
Share on other sites

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...