Khryus Posted December 30, 2011 Share Posted December 30, 2011 (edited) Hi everybody, I'm new to AutoIt and would like to ask some questions.I have previous experiences with a variant of Lua, and I can say that I understand it very well.I'm trying to make a executable which will basically simulate mouse movements (clicks too), and keystrokes.By looking on this page, which explains the "Send" function syntax, I wasn't entirely sure as to its usage.I didn't understand how to use the keys very well. For example, would this be correct?Send("{F1}", 1) ;would this simulate the F1 key? Send("!1", 0) ;would this simulate ALT+1 (the 1 from the top of the "qwerty/azerty" bit)I also have a few questions about reading .ini files.I have a file, config.ini. How do I locate it, then read it, and store each part in variables right after the equal sign contained in the .ini, so thatI can use it later?config.ini example; random names x = Send("!3") y = Send("!4") z = Send({F1}, 1)Or would it be better to use just strings, like so:; random names x = "!3" y = "!4" z = "{F1}"Also, is it possible to count how many images are in a specific area of a window?And is it possible to read text in a specific area of a window, store it in a variable and use it later?How do I simulate a left/right button mouse click? Is there a specific function for that too?Is it possible to simulate a prolonged mouse click (drag) ?Thanks in advance! Edited December 30, 2011 by megablox "The story of a blade is linked in Blood." ―Yasuo Link to comment Share on other sites More sharing options...
kylomas Posted December 30, 2011 Share Posted December 30, 2011 (edited) megablox, Break this down into individual tasks, tackling each task with the help file and forum searches. When you need help post the code you are working on using the code tags (the autoit symbol)... Good Luck, kylomas Edited December 30, 2011 by kylomas Forum Rules Procedure for posting code "I like pigs. Dogs look up to us. Cats look down on us. Pigs treat us as equals." - Sir Winston Churchill Link to comment Share on other sites More sharing options...
Khryus Posted December 31, 2011 Author Share Posted December 31, 2011 Okay, thanks. "The story of a blade is linked in Blood." ―Yasuo Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now