Ctrl+C

Ctrl+C

Postby Natter » Wed Feb 03, 2021 4: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 ?
Natter
 
Posts: 1214
Joined: Mon May 14, 2007 9:49 am

Re: Ctrl+C

Postby Antonio Linares » Thu Feb 04, 2021 8: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42079
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Ctrl+C

Postby hmpaquito » Thu Feb 04, 2021 8:32 am

Antonio,

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

Salu2
hmpaquito
 
Posts: 1482
Joined: Thu Oct 30, 2008 2:37 pm

Re: Ctrl+C

Postby Natter » Thu Feb 04, 2021 8:51 am

Thanks, Antonio !

But how can I find the browser window using FindWindow () ?
I don't know in advance which browser it is
Natter
 
Posts: 1214
Joined: Mon May 14, 2007 9:49 am

Re: Ctrl+C

Postby Antonio Linares » Thu Feb 04, 2021 8: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42079
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Ctrl+C

Postby Natter » Thu Feb 04, 2021 9: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) ?
Natter
 
Posts: 1214
Joined: Mon May 14, 2007 9:49 am

Re: Ctrl+C

Postby Antonio Linares » Thu Feb 04, 2021 9: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42079
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 61 guests

cron