Right click on thumbnail

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
theidol
Posts: 5
Joined: 21 Jan 2022, 21:44

Right click on thumbnail

Post by theidol » 21 Jan 2022, 21:54

I am trying without success to use a command in chrome.
Right Click followed immediately with the letter e.
That normally copies the link url into the clipboard.
I have not been able to replicate that combination in autohotkey. It does work fine in Macro Express Pro, but I want to move off of that.

I would appreciate any help that anyone has toward a resolution.

TheIdol

amateur+
Posts: 655
Joined: 09 Oct 2021, 15:43

Re: Right click on thumbnail

Post by amateur+ » 21 Jan 2022, 23:09

What link do you want to put into Clipboard? The one you've clicked on or the link of current webpage?
For example if you want to copy into Clipboard an url of current webpage, then here is the code:

Code: Select all

~RButton & e::
if(WinActive("ahk_exe chrome.exe"))
	Clipboard := Acc_Get("Object","4.1.1.2.1.2.5.3",0,"A").accValue(0)
return
; Required acc.ahk from here: https://github.com/sancarn/ACC.AHK/blob/master/AccV2.ahk
; https://www.autohotkey.com/boards/viewtopic.php?f=6&t=26201
Have found any drawback in my code or approach? Please, point it out. /The moderator ordered to remove the rest of the signature, I had obeyed.
And I really apologize for our russian president. Being a citizen of an aggressor country is very shameful. Personally I tried to avoid this trying to defend elections from fraud being a member of the election commission of one of the precincts but only was subjected to a hooligan attack and right before the vote count was illegally escorted from the polling station and spent the night behind bars (in jail) in a result of illegal actions of corrupt policemen.

theidol
Posts: 5
Joined: 21 Jan 2022, 21:44

Re: Right click on thumbnail

Post by theidol » 21 Jan 2022, 23:29

Here's what I am looking to do.
goto https://www.youtube.com/
and Right click on any thumbnail and then type the letter "e"
the url of the youtube video is now in your clipboard.
That is the exact functionality I am looking for.

Thx,
The Idol

amateur+
Posts: 655
Joined: 09 Oct 2021, 15:43

Re: Right click on thumbnail

Post by amateur+ » 21 Jan 2022, 23:59

I don't know how to handle with pictures, but text links you can grab this way in chrome:

Code: Select all

~RButton & e::
if WinActive("ahk_exe chrome.exe")
	send {RButton up}{e up}{Down 5}{Enter}
return
Have found any drawback in my code or approach? Please, point it out. /The moderator ordered to remove the rest of the signature, I had obeyed.
And I really apologize for our russian president. Being a citizen of an aggressor country is very shameful. Personally I tried to avoid this trying to defend elections from fraud being a member of the election commission of one of the precincts but only was subjected to a hooligan attack and right before the vote count was illegally escorted from the polling station and spent the night behind bars (in jail) in a result of illegal actions of corrupt policemen.

Post Reply

Return to “Ask for Help (v1)”