I'm not familiar with GUI development on XP, but could you accomplish this with a script that you run in the terminal? That might be easier than dealing with a GUI that needs to work on both old and modern systems.
You could alias it to a command like getGameKey your_search_query
on both to keep the usage the same. You may need a slightly different command for each one (using find
+grep
on Linux, some Windows command line equivalent on XP)