FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour set key not run on win 10 ?
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
set key not run on win 10 ?
Posted: Thu Jul 08, 2021 08:38 PM

I have
SetKey( VK_F8, {||oApp():HidePanelLeft(oApp():oSplit)} )

and not run on win 10 why ?
on w7 run ok

do you Know alternative ?

Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Re: set key not run on win 10 ?
Posted: Fri Jul 09, 2021 12:21 AM
This works fine for me under Win10:

Code (fw): Select all Collapse
#include "fivewin.ch"

Function Main()
   Local oWnd

   SETKEY( VK_F2, { ||  MsgInfo("Hello!" )}  )

   define window oWnd
   activate window oWnd

Return nil


Maybe you are doing your SET KEY before oApp is defined?

The other issue might be function keys with dual options. On my laptop you have to press the [fn][F2] to get the assignment above because there are other default actions for the button keys. Probably since it is a laptop.
FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10

Continue the discussion