martin-stone / touchcursor

A keyboard utility that lets you use the home keys (e.g. JKL) as cursor keys -- in all Windows programs -- keeping your fingers in the best position for fast typing.
http://martin-stone.github.io/touchcursor/
GNU General Public License v3.0
164 stars 28 forks source link

Whitelist does not work with 64-bit programs #13

Open manfred-exz opened 4 years ago

manfred-exz commented 4 years ago

Problem

There's a whitelist configurable in 'TouchCursor Configuration' - 'Programs' - 'Enable only with the following programs'. 64-bit program will not work in this whitelist. ( with the version from http://martin-stone.github.io/touchcursor/download.html)

For example, if I put microsoft Edge(msedge.exe) in this list, TouchCursor is not going to work in Edge.

Solution

After debugging, I found it's because EnumProcessModules (win32funcs.cpp:76) return error 299. Which means it does not work for 64 bit program. Compile in 64 bit can solve this problem.

Just want to put it here, in case anyone has the same problem.

martin-stone commented 4 years ago

Thanks for investigating.

bubbavox commented 3 years ago

I'd love to get it working -- this program is essential for me! Any guidance on compiling in 64-bit?

manfred-exz commented 3 years ago

I'd love to get it working -- this program is essential for me! Any guidance on compiling in 64-bit?

Here's the binary. https://github.com/martin-stone/touchcursor/files/5644111/TouchCursor.zip

If you want to compile it yourself, you can check https://github.com/martin-stone/touchcursor/issues/14

bubbavox commented 3 years ago

Holy cow, quick response. Thanks :) edit- whitelist/blacklist working!

martin-stone commented 3 years ago

Thanks again, @manfred-exz. Great to see open source working as intended 😄 .

(At some point I'll get set up to compile and update the official downloads -- I haven't even got the tools installed at the moment.)