Jump to content
Sign in to follow this  
neypro

controlsend and winapi

Recommended Posts

neypro

I send a text to a specified window. I have used controlsend or winapi_postmeseger but can not distinguish capital letters and lower case letters. Can you help me :((

Share this post


Link to post
Share on other sites
JLogan3o13

@neypro are you using the $SEND_RAW flag on ControlSend?

  • Like 1

√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites
neypro
2 hours ago, JLogan3o13 said:

@neypro are you using the $SEND_RAW flag on ControlSend?

Yes. I use the $ SEND_RAW flag on ControlSend. When I enter 'TEST', only the result 'Test'

Share this post


Link to post
Share on other sites
JLogan3o13

Well, I will say it is a bit difficult to troubleshoot further without a better explanation. What application is this "specific window"? How about posting the code you're using?

A simple test to a Notepad window shows the all caps output I would expect:

#include <AutoItConstants.au3>
ControlSend("Untitled - Notepad", "", "Edit1", "TEST", $SEND_RAW)

 


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites
neypro
On 13/11/2017 at 11:18 PM, JLogan3o13 said:

Well, I will say it is a bit difficult to troubleshoot further without a better explanation. What application is this "specific window"? How about posting the code you're using?

A simple test to a Notepad window shows the all caps output I would expect:

#include <AutoItConstants.au3>
ControlSend("Untitled - Notepad", "", "Edit1", "TEST", $SEND_RAW)

 

This is a program of Vietnam. I tested it in notepad then it runs fine :(
Other ways to send text to the k window (:

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
Sign in to follow this  

×