FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour SendKey Example needed.
Posts: 1387
Joined: Fri May 23, 2008 01:33 PM
SendKey Example needed.
Posted: Mon Dec 05, 2011 09:33 AM

Hi,

Is there any example about sendkey function with xHarbour Builder.

Thanks,

Regards,



Hakan ONEMLI



Harbour & MSVC 2022 & FWH 23.06
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: SendKey Example needed.
Posted: Tue Dec 06, 2011 04: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
Posts: 1387
Joined: Fri May 23, 2008 01:33 PM
Re: SendKey Example needed.
Posted: Wed Dec 07, 2011 07: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.06
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: SendKey Example needed.
Posted: Wed Dec 07, 2011 09: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

Continue the discussion