pegmanm Posted February 8, 2008 Posted February 8, 2008 I would like to send a variable number of key presses. I.E IF $x=2 Send("{DOWN}") $x number of times. Is this possible with the Send command or do I really need to write a loop around my Sends? Regards Martin P
Zedna Posted February 8, 2008 Posted February 8, 2008 (edited) Send("{DOWN " & $x & "}") From help: If you wish to use a variable for the count, try $n = 4 Send("+{TAB " & $n & "}") If you wish to send the ASCII value A four times, then try $x = Chr(65) Send("{" & $x & " 4}") Edited February 8, 2008 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search
pegmanm Posted February 8, 2008 Author Posted February 8, 2008 Send("{DOWN " & $x & "}") From help:Thank you very much. I had see this in the Help but had discounted as I was over complicating the issue in my head. Thanks again. Martin P
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