Ctrl+C

Post Reply
Natter
Posts: 524
Joined: Mon May 14, 2007 9:49 am

Ctrl+C

Post 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 ?
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: Ctrl+C

Post by Antonio Linares »

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
hmpaquito
Posts: 1200
Joined: Thu Oct 30, 2008 2:37 pm

Re: Ctrl+C

Post by hmpaquito »

Antonio,

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

Salu2
Natter
Posts: 524
Joined: Mon May 14, 2007 9:49 am

Re: Ctrl+C

Post by Natter »

Thanks, Antonio !

But how can I find the browser window using FindWindow () ?
I don't know in advance which browser it is
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: Ctrl+C

Post by Antonio Linares »

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
Natter
Posts: 524
Joined: Mon May 14, 2007 9:49 am

Re: Ctrl+C

Post 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) ?
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: Ctrl+C

Post by Antonio Linares »

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
Post Reply