Page 1 of 1
Ctrl+C
Posted: Wed Feb 03, 2021 4:07 pm
by Natter
Hi,
The page is open in the browser (Firefox, Google Chrome, etc.). A fragment is highlighted on this page. If I press Ctrl+C this fragment will be copied to clipboard. Is it possible to do this through the FW program ?
Re: Ctrl+C
Posted: Thu Feb 04, 2021 8:11 am
by Antonio Linares
Natter,
You could ty to find the browser window using FindWindow() and then do a SendMessage( hWndBrowser, WM_COPY, 0, 0 )
Re: Ctrl+C
Posted: Thu Feb 04, 2021 8:32 am
by hmpaquito
Antonio,
Creo que quiere decir que si en un Get se podria seleccionar texto y copiarlo con Ctrl-C
Salu2
Re: Ctrl+C
Posted: Thu Feb 04, 2021 8:51 am
by Natter
Thanks, Antonio !
But how can I find the browser window using FindWindow () ?
I don't know in advance which browser it is
Re: Ctrl+C
Posted: Thu Feb 04, 2021 8:54 am
by Antonio Linares
Natter,
You can search for the title on the browser window:
hWndBrowser := FindWindow( ,"the title on the browser window" )
Re: Ctrl+C
Posted: Thu Feb 04, 2021 9:37 am
by Natter
I can't do a search by the title of the browser window either, as it may be different. Maybe you should use the FW_SENDKEY(11, 67) function) ?
Re: Ctrl+C
Posted: Thu Feb 04, 2021 9:59 am
by Antonio Linares
We need to have the hWnd of the browser or there is no way to send it anything...