how can i use the pagedown key?

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
juanll2002
Posts: 9
Joined: 29 Sep 2022, 03:49

how can i use the pagedown key?

Post by juanll2002 » 03 Oct 2022, 07:32

how can i use the key page down keyboard ? i need to add keyboard key page down in the end help pls tranks

Code: Select all

#UseHook On

x::
KeyWait x
n := TRUE
While (n)
{
   
    Send {a down} 
    Sleep  50
    Send {a up}
    Send {a down} 
    Sleep  50
    Send {a up}
    Send {a down} 
    Sleep  50
    Send {a up}
    Send {a down} 
    Sleep  50
    Send {a up}
    Sleep 1000
    Send  {left down}
    Sleep  50	
    Send  {left up}
    
}
Return

3:: n := FALSE
Last edited by joedf on 03 Oct 2022, 07:44, edited 1 time in total.

User avatar
mikeyww
Posts: 26602
Joined: 09 Sep 2014, 18:38

Re: ayuda

Post by mikeyww » 03 Oct 2022, 07:46


sofista
Posts: 645
Joined: 24 Feb 2020, 13:59
Location: Buenos Aires

Re: ayuda

Post by sofista » 03 Oct 2022, 12:02

@juanll2002 Also, you could use a loop to avoid having to repeat so much code, as follows:

Code: Select all

While (n)
{
    Loop, 4
    {
    Send {a down}
    Sleep  50
    Send {a up}
    }
    Sleep 1000
    Send  {left down}
    Sleep  50
    Send  {left up}
}

Post Reply

Return to “Ask for Help (v1)”