Xoenix Posted June 9, 2007 Posted June 9, 2007 Hey all Basically what I want to do is have the Ctrl key held down for 5 minutes, then released, then have the z key held down for a further 2.5 minutes and then released. To show I actually attempted before asking for help, heres what I have. Send("^{down}") Sleep(300000) Send("^{up}") Send("{z down}") Sleep(150000) Send("{z up}") Not sure on how to get it to repeat, would it be like Lbl 1 at the top, then Goto 1 at the bottom? Peace
Gabburd Posted June 9, 2007 Posted June 9, 2007 You could do this numerous ways, here's one example which executes the script twice: For $i = 1 To 2 Send("^{down}") Sleep(300000) Send("^{up}") Send("{z down}") Sleep(150000) Send("{z up}") Next
Xoenix Posted June 9, 2007 Author Posted June 9, 2007 Thanks for the fast reply But somethings not right, cause it doesnt appear that the control key is being held down at all... Is there somethin wrong with how I have Send("^{down}") typed?
Gabburd Posted June 9, 2007 Posted June 9, 2007 Oops, I didn't catch that the first time. Yes you need to use: Send("{CTRLDOWN}") Send("{CTRLUP}")
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