robocorp / java-access-bridge-wrapper

Python wrapper around the Java Access Bridge Windows .dll
Apache License 2.0
14 stars 6 forks source link

Select window by handle #6

Closed igaisin closed 2 years ago

igaisin commented 3 years ago

I need to select window by hwnd parameter, it is more convenient to test multiple windows with the same titles

mmokko commented 3 years ago

Hello @igaisin, I agree this is definitely a valid feature request. I'm afraid I cannot get this done before next month, unfortunately I'm quite busy on other tasks currently.

I would be happy to take pull request if you are eager to get this done asap. I can make a new release once the feature is merged.

igaisin commented 2 years ago

I did something similar, but noticed a memory leak when reading windows handle or title, run in an infinite loop.

a 10-15 MB memory jump occurs when an action is performed. Everything is fine during downtime. I noticed Java application memory leak too, but not so fast. Java application is third party. Could the JAB be leaking from a third party application. Or is it a JAB bug?

Later I will prepare and share code examples

igaisin commented 2 years ago

I did something similar, but noticed a memory leak when reading windows handle or title, run in an infinite loop.

a 10-15 MB memory jump occurs when an action is performed. Everything is fine during downtime. I noticed Java application memory leak too, but not so fast. Java application is third party. Could the JAB be leaking from a third party application. Or is it a JAB bug?

Later I will prepare and share code examples

Solved a problem, after each window, before the new definition, you need to write jab_wrapper.shutdown() for clear memory