Sign in to follow this  
Followers 0
Confounded

Wait for Key Press

3 posts in this topic

Thank you for reading this.

I would love it if someone could tell me how to make a script pause so that I have time to type in a capture code, and then resume.

A website asks me to verify my humanity by deciphering a unique/word $x. I hope this makes sense!

Thanks again

Share this post


Link to post
Share on other sites



Thank you!

I wanted to avoid GUI, but this works.

Also found this code:

$keyHasBeenPressed = 0

While 1

If _IsPressed(<key>) Then

If $keyHasBeenPressed = 0 Then

; Do Ya Thang

EndIf

$keyHasBeenPressed = 1

EndIf

If Not _IsPressed(<key>) Then $keyHasBeenPressed = 0

WEnd

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  
Followers 0