URL with a # anchor

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
newbieforever
Posts: 506
Joined: 24 Aug 2016, 03:34

URL with a # anchor

18 Dec 2018, 21:12

Is this an AHK or a browser issue?

Run, file:///%A_ScriptDir%\MyPage.htm#AnAnchor

results on a computer with default browser Edge in only file:///%A_ScriptDir%\MyPage.htm in the URL field (an there is no jump to the anchor).
Hatsuko
Posts: 15
Joined: 09 May 2018, 16:56

Re: URL with a # anchor

18 Dec 2018, 22:09

I believe the AutoHotkey Run command is essential to using Win+R. I just tried using Win+R to run a file:/// url with anchor, and yes it brings up my browser and in the url bar there is no anchor.
User avatar
sinkfaze
Posts: 616
Joined: 01 Oct 2013, 08:01

Re: URL with a # anchor

19 Dec 2018, 11:47

When written in a parameter line # must be escaped.

Code: Select all

Run, file:///%A_ScriptDir%\MyPage.htm`#AnAnchor

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: peter_ahk and 354 guests