Sign in to follow this  
Followers 0
talkingtree

why can't it type?

4 posts in this topic

i opened a .txt file and run the script by clicking the background's autoit icon but the .txt file own't type?

don't i just need the code

Send("abcdedfg")?

and then alt tab to txt file?

Share this post


Link to post
Share on other sites



Send() will send to the window that has focus... look at ControlSetText() or ControSend().

Personally, if it's a .txt file, I just use FileWrite()/FileWriteLine() then open the file when everything is written to it.


[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

Share this post


Link to post
Share on other sites

Send() will send to the window that has focus... look at ControlSetText() or ControSend().

Personally, if it's a .txt file, I just use FileWrite()/FileWriteLine() then open the file when everything is written to it.

oh ok so u can open up the program using controlsettext too.. wow

thnx

can we make the program to shut down windows too? and restart it?

Share this post


Link to post
Share on other sites

oh ok so u can open up the program using controlsettext too.. wow

thnx

can we make the program to shut down windows too? and restart it?

1. No, I didn't say you could open a program with ControlSetText(), I said you could use ControlSetText() or ControlSend() in lieu of Send(). I also said you could use FileWrite()/FileWriteLine() to the .txt file, then use Run() to open the file right after, and you wouldn't have the concern of having to type it to an open window.

2. You'd be amazed at all the things you can do, as a matter of fact, there's this thing called the help file, that if you go to "index", and where it says "Type in the keyword to find:", if you typed Shut in there, poof, something pops up that may in fact help you.


[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

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