recieve parameters from url through custom url protocol Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
ananthuthilakan
Posts: 188
Joined: 08 Jul 2019, 05:37
Contact:

recieve parameters from url through custom url protocol

14 Jan 2023, 04:38

i registered a custom url protocol with windows like this
as followed by this thread https://www.autohotkey.com/board/topic/71831-application-url-launch-local-application-from-browser/

myapp://sample.it?Name=myfilename&path=path_to_this_video_file

when i click on the link it is able to launch the application ,
but how to receive those parameters such as Name and path into the ahk from the link ?
Any idea ? or is that even possible ? :think:
ananthuthilakan
Posts: 188
Joined: 08 Jul 2019, 05:37
Contact:

Re: recieve parameters from url through custom url protocol  Topic is solved

14 Jan 2023, 05:46

ooooh this is quite fascinating

Code: Select all

msgbox,%0%
msgbox,%1%
in the starting of script gives me everything i needed :think: :think:
if anybody needs it 8-) here you go

Is there any explanation anywhere though ?
swagfag
Posts: 6222
Joined: 11 Jan 2017, 17:59

Re: recieve parameters from url through custom url protocol

14 Jan 2023, 06:51

there is. in the one place where all explanations are kept. the documentation
https://www.autohotkey.com/docs/v1/Scripts.htm#cmd_args
ananthuthilakan
Posts: 188
Joined: 08 Jul 2019, 05:37
Contact:

Re: recieve parameters from url through custom url protocol

14 Jan 2023, 07:03

thank you,
i tried to search it in documentation, but i was banging on my head what key word to search :crazy:
now got it :wave:

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Bing [Bot], Lpanatt, macromint, peter_ahk, Spawnova and 267 guests