codeX Posted February 22, 2006 Share Posted February 22, 2006 Hello, newb here with a question. I really dont need anything fancy here, i've tried myself but cant seem to get it right. All i need is a script to loop the pressing of the fkeys 1-12 with a 2 second interval in between each. I've written it in notepad and saved it as a .au3 but get errors off the first line? Send({F1}) Sleep(2000) Send({F2}) Sleep(2000) Send({F3}) Sleep(2000) Send({F4}) Sleep(2000) Send({F5}) Sleep(2000) Send({F6}) Sleep(2000) I dont know how to loop it either. Can someone please help me out? Thanks Link to comment Share on other sites More sharing options...
cassetti Posted February 22, 2006 Share Posted February 22, 2006 all send keys must be in quotes it should be send("{f1}") i make that mistake sometimes if you are sending strings that you saved as a variable you can do that without quotes $greetings = "hello" send($greetings) but otherwise yeah - use quotes you knwo there is a tool in the editor program that allows you to record your actions - its a macro recorder - very handy for beginners Link to comment Share on other sites More sharing options...
codeX Posted February 22, 2006 Author Share Posted February 22, 2006 cool thanks i'll give it a try Link to comment Share on other sites More sharing options...
Valuater Posted February 22, 2006 Share Posted February 22, 2006 Hello, newb here with a question.I really dont need anything fancy here, i've tried myself but cant seem to get it right.All i need is a script to loop the pressing of the fkeys 1-12 with a 2 second interval in between each.I've written it in notepad and saved it as a .au3 but get errors off the first line?Send({F1})Sleep(2000)Send({F2})Sleep(2000)Send({F3})Sleep(2000)Send({F4})Sleep(2000)Send({F5})Sleep(2000)Send({F6})Sleep(2000)I dont know how to loop it either.Can someone please help me out?Thanksgo to help and search "pause" you will see hotkeyset()use that to run your script8) 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