Path of Exile
0 of 0

File information

Last updated

Original upload

Created by

Fenyx

Uploaded by

FenyxNexus

Virus scan

Safe to use

Tags for this mod

About this mod

This mod allows to use consumables/spells etc in specific situations like low hp/mp, flask is full or other.
It could be used for auto heal, restore low mp, use diamond flask when iit's full or else

Permissions and credits
Requirenments

- Windows
- Java 11. (Can be dowloaded here https://www.oracle.com/java/technologies/downloads/#java11-windows)
- PoE should be in Window borderless video mode.

Technical information

There are many macros for various needs in MacroJ. For POE some of them could be used to achieve auto heal/restore/use. 
PixelChecker  can check on-screen pixels and perform a job depending on result.
At the start of macro listening it remember color of specified pixel and check this color in loop. If color was changed, executes actions from keys section.
For example when your hp is full the pixel "x": 158, "y": 1327 on 2k resolution is red. If you were damaged, this pixel will be changed. You can configure listener to check this state and if so, send key whic is related to heal flask.


Usage

- Download archive and unpack (Alternative download MacroJ on Github)
- Run macroj.bat or macroj.jar
- Press Show logs checkbox
- Select and load test[JSON] profile.
- Move cursor to desired position (position on healthbar for example ) and press F11 key
  You will see tech info like:

[INFO] =============DEBUG START ==============
[INFO] Foreground application name is: MacroJ
[INFO] Foreground application path: C:\Program Files\Java\jdk-18.0.2\bin\javaw.exe
[INFO] x: 1137.0 y: 832.0 Color Dword: 16777215 Color RGB: java.awt.Color[r=255,g=255,b=255]
[INFO] =============DEBUG END ==============

  Need to remember cursor positions (x: 1137.0 y: 832.0 in example above)
- Select poe[JSON] profile and press Edit button
- Notepad should be opened and you can see following JSON file:

"F5": {//key which starts listening
"onPress": {
"macroClass": "PixelChecker",
"params": {
"x": 158, //pixel x coordinate
"y": 1378, //pixel y coordinate
"equality": false, //if true will execute actions from keys section when pixel is equal, if false - not equals
"keys": [
  {"key": "1", "delay": 1500}
],
"icon": {
"imagePath": "images/hp.png",
"x": 100,
"y": 150,
"width": 25,
"height": 25
},
"refreshTimeMs": 100
}
  }
}
 
Here:
  F5 (could be changed to key what you wish) is key which will start/stop listening. See Help -> Keys list in MacroJ UI
  x and y - position which will be monitored. 
  keys list of keys which should be auto pressed when condition is not met. In case above if pixel is changed(health is low), key 1 will be pressed each 1500 ms
  icon section: When macro start listening it will draw icon which will show that it's working. Could be changed to any image what you want.
- Replace x and y values and save file.
- Load PoE[JSON] profile and run the game.
- Press F5 when healthbar is full and drawn on screen. Icon should appear in specified position.
- To stop listening press F5 again or press Stop button in MacroJ UI.

In addition

If load button doesn't work, select Show logs to see errors or revalidate profile JSON by any online validator
You can create new profiles for each character you have
You can validate JSON profile in any online JSON validator (Google it)
You can setup as many listeners as you want (monitor hp, mp, shield etc), but each of them consume some resources
refreshTimeMs allows MacroJ be more responsible but consume more resources
You can find other example of usage on MacroJ GitHub