Copying text from a chrome window without clipboard
Posted: 26 Mar 2019, 10:27
I have a program that I run that has hijacked my copy paste function. So in an attempt to find a work around I visited another forum thread that suggested that this would work for a notepad file.
!c::
ControlGet, OutputVar, selected,, Edit1, ahk_class Notepad
msgbox % OutputVar
Return
This works, but my goal is to copy from a chrome window.
My script looks something like this...
!c::
ControlGet, OutputVar, selected,, Chrome_RenderWidgetHostHWND1, ahk_class Chrome_WidgetWin_1
msgbox % OutputVar
Return
For some reason, the msgbox comes up blank (empty variable, I think). Why is this happening and what can I do to fix it?
Thank you in advance.
!c::
ControlGet, OutputVar, selected,, Edit1, ahk_class Notepad
msgbox % OutputVar
Return
This works, but my goal is to copy from a chrome window.
My script looks something like this...
!c::
ControlGet, OutputVar, selected,, Chrome_RenderWidgetHostHWND1, ahk_class Chrome_WidgetWin_1
msgbox % OutputVar
Return
For some reason, the msgbox comes up blank (empty variable, I think). Why is this happening and what can I do to fix it?
Thank you in advance.