Jump to content
Sign in to follow this  
Xoenix

Completely New, quick question, will be full easy for you guys

Recommended Posts

Xoenix

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

Share this post


Link to post
Share on other sites
Gabburd

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

Share this post


Link to post
Share on other sites
Xoenix

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?

Share this post


Link to post
Share on other sites
Gabburd

Oops, I didn't catch that the first time.

Yes you need to use:

Send("{CTRLDOWN}")
Send("{CTRLUP}")

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×