java-win-memory-trainer icon indicating copy to clipboard operation
java-win-memory-trainer copied to clipboard

Window doesn't always get right window

Open Motley90 opened this issue 3 years ago • 0 comments

I know this source is abandoned at this point. But if you have several windows with the same name but with extra at the end it will automatically assume it's the right window.

public static void main(String[] args) throws WindowNotFoundException, MemoryException { JTrainer jTrainer = new JTrainer(null, "Liberty Unleashed 0.1"); jTrainer.setWindow(null, "Liberty Unleashed 0.1"); Gui.enableWindow(); }

Adding setWidow seems to specify that it's the right window when you have: "Liberty Unleashed 0.1" "Liberty Unleashed 0.1 Server" "Liberty Unleashed 0.1 Server Browser" All sharing the same name nonetheless. Seems it just tries to find the window title instantly versus trying to compare how many characters are in the string etc. @lure0xaos I just realized I'm using your version which in comparison has more added features

Motley90 avatar Jan 02 '22 09:01 Motley90