Jump to content

Wait for Key Press


Recommended Posts

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

Link to comment
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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...