Sign in to follow this  
Followers 0
mooredj

ControlSend question

2 posts in this topic

I'm sure this is a stupid question--but I spent the entire day yesterday trying to figure out how to close Textpad and Notepad from this script.

According to AUtoIT v3 Windows Info the controlID is 59548 for TextPad - [Document1]. For Notepad ControlID is 15. I do see when running the command "!F" appears to quickly popping up the ALT F menu, but it will never execute the "X" to close the program. I can manually do ALT F, and then X and all closes ok.. Why won't these script work?

ControlSend("TextPad - [Document1]", "", "[iD:59648]", "!FX")

Same problem with Notepad example.

ControlSend("Untitled - Notepad", "", "15", "!FX")

Thanks in advance!

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  
Followers 0