Xoenix Posted June 9, 2007 Share 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 Link to comment Share on other sites More sharing options...
Gabburd Posted June 9, 2007 Share 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 Link to comment Share on other sites More sharing options...
Xoenix Posted June 9, 2007 Author Share 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? Link to comment Share on other sites More sharing options...
Gabburd Posted June 9, 2007 Share Posted June 9, 2007 Oops, I didn't catch that the first time. Yes you need to use: Send("{CTRLDOWN}") Send("{CTRLUP}") 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