News:

Happy 20th, FFvT3R!

Main Menu

hotkey shortcut

Started by bearded, October 20, 2010, 09:13:57 AM

Previous topic - Next topic

bearded

do you think it's possible to shortkey custom script in python? can the python and game engine recognize custom keystrokes?

Epimethee

Basically... no.

I checked into this few years ago, as it would have been extremely useful and IIRC in theory it could be done in different ways but with major stumbling blocks, since the game provides no keyboard hook whatsoever:

1) Use a keylogger program. These programs tend to slow down the OS massively and are more often used for nefarious purposes (password stealing, etc.) than not and often ridden with trojans. Obviously not something I wanted to be installed by default by FFX. :P

2) There is a third-party Python Keylogger module doing this in too, and since the source code is available, it should be safer. However, it would still need major changes to work nicely with the game.

3) Write a program to read the FF game executable memory and find key usage. Way above my head, plus with Vista's memory randomization and the different versions of the game, I'm not sure how portable this solution would be.
FFX add-on for FFvsTTR at ffx.freedomforce4ever.com