Avatar of Mike Jacobs
Mike Jacobs
Flag for United Kingdom of Great Britain and Northern Ireland asked on

Menu Hotkeys Stopped Working in VFP Environment

Within my VFP environment - and ONLY within my VFP environment -  I appear to have lost the abiility to use menu hotkeys.

For example, the ALT key still wakes up the UI menu, but I can't activate the Tools menu by pressing "T". If I cursor along to it or click it, I can see all the hotkeys underlined as usual, but none work. eg, if type "b" to open the debugger, nothing happens. I can only open it by cursoring to it or clicking on it.

That's weird enough but here are the complications/clues.

First, I'm getting the same behaviour on my two main development workstations. But not my laptop.

I get the same behaviour with vfp programs I've compiled on those machines; but ONLY if I run them on those machines. My clients running the same software on their workstations have no problem accessing the menus in the normal way.

Clearly its some kind of environment issue and clearly whatever I've done on one of the workstations, I've repeated on the other, but not on the laptop.  I should add that I've only had this problem since some time earlier this year. (Didn't note the date as I assumed it was a transient fault and would disappear with the next reboot or whatever. Then it just became a background irritant). I should also mention that the two workstations are running on different W10 versions (1511 and 1709, both 64 bit)

I do tweak windows quite radically (using Winaerotweaker and other tools for example) but I tend to be pretty consistent and can't imagine what I could have done on the two workstations but not the laptop. Nor can I imagine a windows tweak which would ONLY affect the VFP environment. (menus in all the other apps and browsers continue to work normally)

Thought it might have something to do with the vfp config files typically stored in the folder C:\Users\(username)\AppData\Roaming\Microsoft\Visual FoxPro 9, so I tried copying the files from that folder on the laptop to the equivalent folder on one of the workstations. Had no effect on the hotkey behaviour at all.

I am now officially stumped.

Suggestions?
SoftwareUI/UXWindows OS* VFP

Avatar of undefined
Last Comment
Mike Jacobs

8/22/2022 - Mon
Pavel Celba

"I do tweak windows quite radically" … this could be the main reason for VFP problems.

There are no VFP configs which could affect the menu behavior this way. You may do a small test - copy VFP files to a separate folder on some drive and try to execute VFP9 from this folder. You will need just a few files:

VFP9.EXE, VFP9ENU.DLL from C:\Program Files (x86)\Microsoft Visual FoxPro 9
MSVCR71.DLL, GDIPLUS.DLL from C:\Windows\SysWOW64\ or from elsewhere you find these files

and also place CONFIG.FPW containing two following lines to this folder:
resource = off
tmpfiles = <d:\path>  && this should point to the same folder where you copied the VFP9.EXE

VFP also has settings in Windows registry but they should not affect hotkeys (you may find them under Tools/Options).

Now you may execute VFP9.EXE and check hotkeys. I would guess the problem is still there. So you may continue with your Windows environment investigations. This means suspicious program uninstallation or even the workstation reinstallation.

BTW, what is your VFP9 build number?
Mike Jacobs

ASKER
Greeting pcelba

good test and your guess was correct. The problem is visible in the test folder as well.

re "suspicious" programs, I'm sufficiently paranoid to be reasonably confident that it is unlikely to be that. More likely to be a program I trust which, for some reason I haven't yet twigged, is having this undesirable effect. In part this "confidence" arises from the fact that my two main workstations are so different. My main one is at home (I work from home about 60% of the time) and the other is at my main client site. The client site version, in particular, runs pretty lean. So the only commonalities between the two are my trusted tools and utilities, which I've been using for a lot longer than this problem has existed. So I think it has to be something I've done for some utterly unconnected reason.  The bit that confuses me is that I know I haven't done anything (consciously) to the VFP environment and yet the problem is only showing up in VFP

Given the number of possible causes I suspect you're also right in thinking only reimaging will fix it.  So I'll probably bring home my other workstation and do the dirty. Then I'll gradually rebuild the tool set and parameters, testing at each stage to see what tweak has the undesired effect.  I'll report the results back here in case some other victim finds the same thing happening to them.

>>BTW, what is your VFP9 build number?
Unless you're using build number as synonymous with "version", I don't know it or how to find it. My vfp version is 9.0.0.7423
Pavel Celba

Yes, the build number = the last four digits of the VFP version number.

VFP menu handling is "old fashioned" and it can be incompatible with some other software. I've asked the Czech VFP group for opinions. I cannot believe you are the only person having problems with VFP 9 menu.
Your help has saved me hundreds of hours of internet surfing.
fblack61
Mike Jacobs

ASKER
Well that's a novel one.

Rebuilt my client site machine and gradually reintroduced all my standard software. Everything hunky till I reached SpyShelter.

Their version 11 (and later) which came out in June, is the cause of the problem. Disable their keystroke encryption and the problem went away. I can also add vfp9.exe to their exclusion list and then re-enable keystroke encryption. I have notified them and requested a fix, or at least an explanation of why it only affected VFP; though I suspect they'll probably tell me that I've already done as much as they're interested in.

I'm happy to give you to the points, if only for helping me eliminate various options and forcing me to face the re-imaging option. But I need to mark this message as the "Solution" because it's obviously the real cause. How do we arrange that?
Pavel Celba

It was my pleasure to help here and your final solution should be the only one selected as the answer.
I've learned something new here.

Thanks!
Mike Jacobs

ASKER
you're a scollop and a gentleman sir

Cheers
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
ASKER CERTIFIED SOLUTION
Mike Jacobs

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.