how to "activate" Spacebar ?

how to "activate" Spacebar ?

Postby Jimmy » Sun Jan 15, 2023 4:40 am

hi,

to "mark" Element in Explorer, when have Checkbox Style, i have to use Spacebar

Question : how to "activate" Spacebar by CODE :?:

Code: Select all  Expand view
  SENDKEY( CHR(32) )
or
Code: Select all  Expand view
  Keybd_Event ( CHR(32), .F. )
   Keybd_Event ( CHR(32), .T. )
does not have any Effect ...
greeting,
Jimmy
User avatar
Jimmy
 
Posts: 1725
Joined: Thu Sep 05, 2019 5:32 am
Location: Hamburg, Germany

Re: how to "activate" Spacebar ?

Postby Antonio Linares » Sun Jan 15, 2023 7:40 am

Dear Jimmy,

Please try with:

oControl:PostMsg( WM_KEYDOWN, 32 )

or

oControl:PostMsg( WM_CHAR, 32 )
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42081
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 68 guests