Skip to content

Full support for Mac and Linux #74

@zmilla93

Description

@zmilla93

SlimTrade needs to be able to do two things that are currently not cross platform:

  • Detect if Path of Exile is currently focused
  • Focus Path of Exile

This is currently only supported on windows. It is done using the Java Native Access (JNA) library, full API here.
For Windows, it uses the win32/user32 API, which has the functions for getting the foreground window, enumerating all windows, and focusing windows. Using this library isn't required, but it does have additional APIs for other platforms.

The JNA X11 bindings look promising for Linux, but I don't have a Linux environment to test this myself.

The actual code that needs updating is getFocusedWindowTitle() and focusPathOfExileWindow in PoeInterface.java marked with TODOs and FIXMEs. This code runs fairly frequently, so it cannot be noticeably slow.

There doesn't seem to be a pure Java solution to this issue, and I don't currently have other operating systems to test solutions myself. Any feedback is appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    being worked onThis feature will be available soonrequires more infoMore information is required to fix this issue

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions