Jump to content

Send down is getting stuck


Recommended Posts

  • Moderators

I wouldn't mind seeing an example snippet. Why not just Send("{DOWN}"), are you wanting to hold the down arrow for a particular length of time?

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Link to comment
Share on other sites

ya. its for work. i need to scroll through documents and the only way is to press the up and down arrows or grab the actual scroll bar and drag. but these documents r pretty large and i would like a slow consistent scroll which i can get with the up and down arrows. so i was gonna do something like this:

HotKeySet("{F1}", "Up")
HotKeySet("{F2}", "Down")

$Down = False
$Up = False

Func Down()
    $Down = Not $Down
    If $Down = True Then
        Send("{DOWN down}")
    Else
        Send("{DOWN up}")
    EndIf
EndFunc

EDIT: This is purely because im lazy and would like to just press F1 and have it scroll while i look through it and then press F again to stop scrolling. so if there isnt a way then its no biggy. was just curious since ive neever really messed with send that much

Edited by Kidney
Link to comment
Share on other sites

  • Moderators

What about something simple, like this?

HotKeySet("{F1}", "Up")
HotKeySet("{F2}", "Down")

While 1
Sleep(5000)
WEnd

Func Up()
While 1
  Send("{UP}")
  Sleep(1000)
WEnd
EndFunc

Func Down()
While 1
  Send("{DOWN}")
  Sleep(1000)
WEnd

EndFunc

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Link to comment
Share on other sites

What about something simple, like this?

HotKeySet("{F1}", "Up")
HotKeySet("{F2}", "Down")

While 1
Sleep(5000)
WEnd

Func Up()
While 1
Send("{UP}")
Sleep(1000)
WEnd
EndFunc

Func Down()
While 1
Send("{DOWN}")
Sleep(1000)
WEnd

EndFunc

well i guess with some tweaking this could work. is there a reason why the down and up dont work on send tho?? seems to be any key gets stuck in the down position
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...