SendKey Example needed.

SendKey Example needed.

Postby Horizon » Mon Dec 05, 2011 9:33 am

Hi,

Is there any example about sendkey function with xHarbour Builder.

Thanks,
Regards,

Hakan ONEMLI

Harbour & MSVC 2022 & FWH 23.04
Horizon
 
Posts: 1322
Joined: Fri May 23, 2008 1:33 pm

Re: SendKey Example needed.

Postby Antonio Linares » Tue Dec 06, 2011 4:00 pm

Hakan,

First you set the focus to the control where you want the input to be sent:

oGet:SetFocus()

then you send the key:

SendKey( VK_TAB )
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42084
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: SendKey Example needed.

Postby Horizon » Wed Dec 07, 2011 7:36 am

Antonio,

I understand It is for typing some characters to a get field.

I just think that I can send alt, esc, vb.

I am trying to send below to keyboard :

ESC
ESC
ALT-1
A0

(trying to run ribbon action)

Is it possible?
Regards,

Hakan ONEMLI

Harbour & MSVC 2022 & FWH 23.04
Horizon
 
Posts: 1322
Joined: Fri May 23, 2008 1:33 pm

Re: SendKey Example needed.

Postby Antonio Linares » Wed Dec 07, 2011 9:50 am

Hakan,

Yes, you can use it.

Simply give the focus to the object that you want to receive the keys.
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42084
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 107 guests