FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Ctrl+C
Posts: 1392
Joined: Mon May 14, 2007 09:49 AM
Ctrl+C
Posted: Wed Feb 03, 2021 04:07 PM

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 ?

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Ctrl+C
Posted: Thu Feb 04, 2021 08:11 AM

Natter,

You could ty to find the browser window using FindWindow() and then do a SendMessage( hWndBrowser, WM_COPY, 0, 0 )

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1515
Joined: Thu Oct 30, 2008 02:37 PM
Re: Ctrl+C
Posted: Thu Feb 04, 2021 08:32 AM

Antonio,

Creo que quiere decir que si en un Get se podria seleccionar texto y copiarlo con Ctrl-C

Salu2

Posts: 1392
Joined: Mon May 14, 2007 09:49 AM
Re: Ctrl+C
Posted: Thu Feb 04, 2021 08:51 AM

Thanks, Antonio !

But how can I find the browser window using FindWindow () ?
I don't know in advance which browser it is

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Ctrl+C
Posted: Thu Feb 04, 2021 08:54 AM

Natter,

You can search for the title on the browser window:

hWndBrowser := FindWindow( ,"the title on the browser window" )

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1392
Joined: Mon May 14, 2007 09:49 AM
Re: Ctrl+C
Posted: Thu Feb 04, 2021 09:37 AM

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) ?

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Ctrl+C
Posted: Thu Feb 04, 2021 09:59 AM

We need to have the hWnd of the browser or there is no way to send it anything...

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion