trying to create a script that scrolls up and down constantly

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
totalnoob
Posts: 1
Joined: 18 Oct 2021, 13:40

trying to create a script that scrolls up and down constantly

18 Oct 2021, 13:44

hello, i am trying to make a code that will repeatedly scroll up and down using the arrow keys. i want to use this code to level up my pokemon through the daycare on a pokemon ROM. the problem is, i do not know where to start. has anybody made a script like this before? how simple would it be to create a script like this? could a beginner do it? i do not know anything about coding and am way over my head. i tried other programs but they made my computer slow so i uninstalled them.
User avatar
mikeyww
Posts: 26888
Joined: 09 Sep 2014, 18:38

Re: trying to create a script that scrolls up and down constantly

18 Oct 2021, 14:22

Welcome to AHK!

Code: Select all

number = 5                         ; Number of UP or DOWN keys to send at one time
F3::                               ; Press F3 to start the hotkey subroutine
SetKeyDelay, 100                   ; Milliseconds to wait after each key
Loop, 3                            ; Number of iterations
 Send {Up %number%}{Down %number%} ; Send UP followed by DOWN
Return                             ; End this hotkey subroutine

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Frogrammer, gongnl and 265 guests