Guys:
I had a small program to rebuild all indexes from all tables (20+), the menu allows the user to select the specific table that will get its indexes recreated. Some tables got over 500,000 records. Instead of having the user wait for each table to complete its course, how can I, via an menu option, put in the keyboard buffer the accelerator key for each option ? In the old Clipper days this was done with the KEYBOARD command or with the KEYSEND() function. Any ideas ? Thank you.
Auto selectable menu.
- Enrico Maria Giordano
- Posts: 7355
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Contact:
Re: Auto selectable menu.
Enrico:
Thank you for your response. Can the ACCELERATOR keys be put in the keyboard buffer, for example Alt-I ?
Thank you for your response. Can the ACCELERATOR keys be put in the keyboard buffer, for example Alt-I ?
- Enrico Maria Giordano
- Posts: 7355
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Contact:
Re: Auto selectable menu.
Add to source keybrd.c the function
Example:
__PUTACCKEY( VK_MENU, VK_F2 ) // Alt + F2
__PUTACCKEY( VK_CONTROL, VK_F3 ) // Control + F3
Best regards
Massimo
Code: Select all
CLIPPER __PUTACCKEY( PARAMS )
{
int vKeyAcc = _parni( 1 ), vKey = _parni( 2 );
PostVirtualKeyEvent( vKeyAcc, FALSE );
PostVirtualKeyEvent( vKey, FALSE );
PostVirtualKeyEvent( vKey, TRUE );
PostVirtualKeyEvent( vKeyAcc, TRUE );
SysRefresh();
}
__PUTACCKEY( VK_MENU, VK_F2 ) // Alt + F2
__PUTACCKEY( VK_CONTROL, VK_F3 ) // Control + F3
Best regards
Massimo
Re: Auto selectable menu.
Massimo:
Thank you. I'll give it a try.
Thank you. I'll give it a try.