Jump to content

Recommended Posts

Posted

Hi! I Really Appreciate everyone's support! I'm usually able to find an answer using the search tool here, but I'm having trouble with this script.

I'm trying to hold the 'down' key on my keyboard down for 10 seconds, that triggers when I press the down arrow on my keyboard:

I'm not using this function for anything that may be against rules.  I'm trying to scroll down my facebook messages to find old messages from 1-2 years ago. I hope somebody can kindly share the script with me. Thank you so much!

Posted (edited)

Holding down a key (to get repetitions) is a keyboard hardware thing more than a software thing (although there are some exceptions. e.g. :censored:).

So in order to get the right result, you could use this :

SendTimer("{DOWN}", 3000)

Func SendTimer($sChar, $iTime)
  Local $hTimer = TimerInit()
  While TimerDiff($hTimer) <= $iTime
    Send($sChar)
  WEnd
EndFunc

 

Edited by Nine

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
  • Recently Browsing   0 members

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