Don't Scroll Page When Opening New Window

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
abcjme
Posts: 65
Joined: 08 Mar 2018, 10:48

Don't Scroll Page When Opening New Window

09 Apr 2019, 18:52

$*space::send {ctrl downR}
$*space up::
send {ctrl up}
if a_priorkey = space
send {space}
return


· if i were to hold space and click on a hyper-link, then the page will scroll down as a new window/tab pops up (ctrl + lclick)
? how an i prevent this scrolling from happening
Rohwedder
Posts: 7774
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: Don't Scroll Page When Opening New Window

10 Apr 2019, 05:51

Hallo,
perhaps:

Code: Select all

~*LButton::Return
$*space::send {ctrl downR}
$*space up::
send {ctrl up}
if a_priorkey = space
send {space}
return
abcjme
Posts: 65
Joined: 08 Mar 2018, 10:48

Re: Don't Scroll Page When Opening New Window

10 Apr 2019, 06:44

Rohwedder wrote:
10 Apr 2019, 05:51
Hallo,
perhaps:

Code: Select all

~*LButton::Return
$*space::send {ctrl downR}
$*space up::
send {ctrl up}
if a_priorkey = space
send {space}
return
· this didn't work
· but it's ok
· i assigned the function to its own key

$*lctrl::send ^{click}

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Lpanatt, peter_ahk and 303 guests