PoE TradeMacro is an Autohotkey (AHK) script that provides several convenient QoL features for Poe currency Trading.
This builds on top of PoE-ItemInfo which provides very useful item information on ctrl+c. With TradeMacro, price checking is added via ctrl+d, ctrl+alt+d or ctrl+i. You can also open the items wiki page via ctrl+w or open the item search on poe.trade instead via ctrl+q.
TradeMacro will be updated to always have the latest PoE-ItemInfo code, you don't have to run their script since it's included here.
Usage / Instructions
Install AHK (http://ahkscript.org)
Download the latest release and extract the zip-file.
Make sure to run PoE in (borderless) windowed mode. Otherwise it won't work!
Run Run_TradeMacro.ahk.
Default league is set to tmpstandard (Softcore Temp-League).
A lot of options, including the league can be changed by opening the settings window or editing config_trade.ini.
Make sure to play Path of Exile in english, if you're using a different language it probably won't work.
Right-click the script icon in your system tray and select PoE Item Info Settings to open the settings window and to edit both PoE-ItemInfos and PoE-TradeMacros settings.
Shortcut Description
ctrl+c See item info (via PoE-ItemInfo).
ctrl+d Search item on poe.trade.
ctrl+alt+d Advanced item search.
ctrl+i Opens a text input where you can type an item name to search for.
ctrl+w Open the items wiki page.
ctrl+q Open the item search on poe.trade instead of showing a tooltip with results.
ctrl+e Show item age (own listed items).
ctrl+l Switch leagues.
AdditionalMacros.txt allows you to add your own macros to be included in the script or to use some of the already created macros. Simply remove the comment by deleting the ; in front of a line.
Warning
Never completely trust any price checking tool. Inform yourself about what this tool can do and what not (FAQ for example). Use the tools average and median prices to quickly judge if the first results could be accurate or totally wrong. When in doubt ask other people or do some manual checks.
Trade Macro Faq
1. How does updating the config files/AdditionalMacros work?
With version 2.0.0 those files were moved to the WindowsUserFolder\Documents\PoE-TradeMacro (varies slightly depending on OS version). When you start the script it checks if these files exists in the user folder and if there were any changes made to those files compared to the last script-version. If that's the case these files are backed up and replaced with the updated files.
This means you won't have to do anything when using/installing a newer version unless the update made changes to them (unlikely, not impossible).
2. Cloudflare Bypass (Cookies) issues
It's possible that poe.trade doesn't use CloudFlare protection. The test at script start to check this can give a false positive if the request takes too long. The script should work nonetheless in this case, simply ignore the error message.
The macro gives you quite a lot of feedback on what you can do to resolve issues. It's possible that this will not be relevant, depending on if poe.trade has cloudflare protection enabled or not.
3. My shortcuts aren't working (except ctrl + c maybe), what's wrong? Panic!
You're probably executing/starting the wrong file. The only file to use is Run_TradeMacro.ahk in the root directory. Nothing else.
You can also try running it as administrator, this should be always the case though.
4. Error: Call to nonexistent function
Specificially: GuiAddGroupBox...
This error can be related to starting the script by using the Windows File Explorer Quick Access. Starting it via other ways or by a shortcut to the script (using quick access) should work though.
5. Error "The application failed to initialize properly (0xc0000142)"
It's possible that you're missing the Visual C++ Redistributables (after a fresh Windows installation for example).
6. The script can't find any items (no results), what's wrong?
There could be many reasons like poe.trade being down but the first thing you should try is using Run_only_this.ahk in case you're using Run_TradeMacro_no_Admin_Elevation.ahk, especially on Win 10. If that doesn't help and you can use the poe.trade website without any problem see if you can find an open issue for your problem or report it. Could also be related to the CloudFlare protection, see #1.
There's a connection test script resources\tests\Test_WinHttpRequest.ahk, it may be able to show your issue. Using the 32bit version of AHK instead of the 64bit and vice versa could also resolve your issues.
7. Do I have to edit the .ini file to change settings?
No, you can right-click the scripts icon in your system tray and select "PoE Item Info Settings" to edit both PoE-ItemInfos and PoE-TradeMacros settings.
8. Can this script price rare items?
You can use the advanced search to choose the mods that should be considered. More is planned. Regarding default search and normal/magic/rare items: So far it only considers the item name (Jewels and Flasks) or type (Amulet for example). The following important properties are also considered:
Item level if it has the highest item level needed for crafting (for example ">= 84" for armour pieces).
Item sub type if it's a desired crafting base (for example "Hubris Circlet") and has the proper item level.
Enchantments and corrupted implicit mods.
9. How does searching uniques work?
Ctrl + d: Item name, sockets and links (if 5L/6L) are used. The results have the same corruption state as your item (No/Yes). We also take the item levels needed to 5s/6s an item into consideration. For example excluding items below iLvl 50 if yours is 50+ on Body Armour and 2H bases.
Ctrl + alt + d: In addition to the above you can select the items mods which can have variable rolls and set their min-/max-values. You can also select enchantments and corrupted implicit mods (those are being ignored in the default search).
10. How does searching gems work?
The results have the same corruption state as your gem (No/Yes).
If the gem level is 16 or higher, the level is included as min-level. This can be customized by changing the GemLevel setting.
If your gem has quality it is inluded as min-quality and max-quality (exact match). This can be changed to a range (min-quality = gemQuality - x and max-quality = gemQuality + x) by editing the GemQualityRange setting.
11. How does searching corrupted items work in general?
The search only looks for items with the same state as yours (No/Yes) unless you override this logic with the Corrupted and CorruptedOverride options in the settings menu. Using this forces the search to always use the selected state.
Warning: If you use "Either" or "Yes" the search can't distinguish between normal gems and their vaal counterpart.
If your unique item is fully linked and corrupted and has 3/4 max-sockets the search looks only for fully linked items. This can be disabled in the settings menu.
11. How can I run this script on windows startup/shortcut/batch file?
I heard about some people having problems running the script directly at startup for example via shortcut in the startup folder. One solution to this is using a batch-script (.bat) with the following contents and executing it at startup:
cd /D "C:\Full\Path\To\Script\PoE-TradeMacro"
start Run_TradeMacro.ahk
12. Where is the "no admin elevation" run script?
It was removed and replaced with a commandline argument, you can still run the script without elevation:
By making a windows shortcut to Run_TradeMacro.ahk, right-clicking it and editing it's target field and adding -noelevation at the end.
By starting Run_TradeMacro.ahk via a batch script (or whatever language you want), for example:
cd /D "C:\Full\Path\To\Script\PoE-TradeMacro" -noelevation
start Run_TradeMacro.ahk
13. Searching poe.trade causes AHK to become temporarily unresponsive
Just wanted to follow up with what I found. After some testing and profiling I noticed that anything using Windows DNS resolution was taking a long time, and it seems like the reason was because of an issue with some changes that were made to the way DNS resolution happens when you have multiple interfaces. A number of IPv6 lookups were failing or returning the wrong information (likely due to a VPN connection I have) and resulting in timeouts and failed connections. To solve the issue, I disabled IPv6 completely on the interface and disabled "smart" DNS resolution.
This builds on top of PoE-ItemInfo which provides very useful item information on ctrl+c. With TradeMacro, price checking is added via ctrl+d, ctrl+alt+d or ctrl+i. You can also open the items wiki page via ctrl+w or open the item search on poe.trade instead via ctrl+q.
TradeMacro will be updated to always have the latest PoE-ItemInfo code, you don't have to run their script since it's included here.
Usage / Instructions
Install AHK (http://ahkscript.org)
Download the latest release and extract the zip-file.
Make sure to run PoE in (borderless) windowed mode. Otherwise it won't work!
Run Run_TradeMacro.ahk.
Default league is set to tmpstandard (Softcore Temp-League).
A lot of options, including the league can be changed by opening the settings window or editing config_trade.ini.
Make sure to play Path of Exile in english, if you're using a different language it probably won't work.
Right-click the script icon in your system tray and select PoE Item Info Settings to open the settings window and to edit both PoE-ItemInfos and PoE-TradeMacros settings.
Shortcut Description
ctrl+c See item info (via PoE-ItemInfo).
ctrl+d Search item on poe.trade.
ctrl+alt+d Advanced item search.
ctrl+i Opens a text input where you can type an item name to search for.
ctrl+w Open the items wiki page.
ctrl+q Open the item search on poe.trade instead of showing a tooltip with results.
ctrl+e Show item age (own listed items).
ctrl+l Switch leagues.
AdditionalMacros.txt allows you to add your own macros to be included in the script or to use some of the already created macros. Simply remove the comment by deleting the ; in front of a line.
Warning
Never completely trust any price checking tool. Inform yourself about what this tool can do and what not (FAQ for example). Use the tools average and median prices to quickly judge if the first results could be accurate or totally wrong. When in doubt ask other people or do some manual checks.
Trade Macro Faq
1. How does updating the config files/AdditionalMacros work?
With version 2.0.0 those files were moved to the WindowsUserFolder\Documents\PoE-TradeMacro (varies slightly depending on OS version). When you start the script it checks if these files exists in the user folder and if there were any changes made to those files compared to the last script-version. If that's the case these files are backed up and replaced with the updated files.
This means you won't have to do anything when using/installing a newer version unless the update made changes to them (unlikely, not impossible).
2. Cloudflare Bypass (Cookies) issues
It's possible that poe.trade doesn't use CloudFlare protection. The test at script start to check this can give a false positive if the request takes too long. The script should work nonetheless in this case, simply ignore the error message.
The macro gives you quite a lot of feedback on what you can do to resolve issues. It's possible that this will not be relevant, depending on if poe.trade has cloudflare protection enabled or not.
- 1. Delete your Internet Explorer/Edge cookies (the script can do this for you).
- 2. Check that your IE security settings aren't low/disabled.
- 3. Try repeatedly starting the script a few times if the bypass fails.
- 4. Don't use any proxies, this can cause failing the bypass.
- 5. Open the settings menu (right-click sytem tray icon) to manually set your cookies (you'll have to refresh them from time to time).
- 6. Make sure to enable "Scripting" in IE and maybe add poe.trade to "Trusted Sites"(How to).
- 7. You can also try disabling IE's protected mode. Win 7, IE10 and IE11.
- 8. Temporarily disable your Antivirus Software to make sure it's not interfering. If it does try adding the TradeMacro folder to the whitelist.
- 9. TradeMacro uses WinHTTPRequest 5.1 to connect to poe.trade/Github. WinHTTP has it's own proxy settings, the default settings don't use any proxy server but this could have been changed on your system. You can check this by opening a windows console window and executing:
- netsh winhttp show proxy
- If this lists any proxy servers instead of "DirectAccess (no proxy server)" you can reset this proxy.
- Be sure to check if the macro actually works for you despite failing the test connection.
- The macro doesn't use any browser for it's searches, it simply pretends to be one. In this case that's Internet Explorer/Edge because it's the easiest to get cookies from. There is currently no support for other browser's since reading those cookies is far more complicated. All browsers cookies are different, so comparing them is useless. Your chrome cookies being different than the automatically retrieved IE cookies is normal and doesn't cause any issues.
3. My shortcuts aren't working (except ctrl + c maybe), what's wrong? Panic!
You're probably executing/starting the wrong file. The only file to use is Run_TradeMacro.ahk in the root directory. Nothing else.
You can also try running it as administrator, this should be always the case though.
4. Error: Call to nonexistent function
Specificially: GuiAddGroupBox...
This error can be related to starting the script by using the Windows File Explorer Quick Access. Starting it via other ways or by a shortcut to the script (using quick access) should work though.
5. Error "The application failed to initialize properly (0xc0000142)"
It's possible that you're missing the Visual C++ Redistributables (after a fresh Windows installation for example).
6. The script can't find any items (no results), what's wrong?
There could be many reasons like poe.trade being down but the first thing you should try is using Run_only_this.ahk in case you're using Run_TradeMacro_no_Admin_Elevation.ahk, especially on Win 10. If that doesn't help and you can use the poe.trade website without any problem see if you can find an open issue for your problem or report it. Could also be related to the CloudFlare protection, see #1.
There's a connection test script resources\tests\Test_WinHttpRequest.ahk, it may be able to show your issue. Using the 32bit version of AHK instead of the 64bit and vice versa could also resolve your issues.
7. Do I have to edit the .ini file to change settings?
No, you can right-click the scripts icon in your system tray and select "PoE Item Info Settings" to edit both PoE-ItemInfos and PoE-TradeMacros settings.
8. Can this script price rare items?
You can use the advanced search to choose the mods that should be considered. More is planned. Regarding default search and normal/magic/rare items: So far it only considers the item name (Jewels and Flasks) or type (Amulet for example). The following important properties are also considered:
Item level if it has the highest item level needed for crafting (for example ">= 84" for armour pieces).
Item sub type if it's a desired crafting base (for example "Hubris Circlet") and has the proper item level.
Enchantments and corrupted implicit mods.
9. How does searching uniques work?
Ctrl + d: Item name, sockets and links (if 5L/6L) are used. The results have the same corruption state as your item (No/Yes). We also take the item levels needed to 5s/6s an item into consideration. For example excluding items below iLvl 50 if yours is 50+ on Body Armour and 2H bases.
Ctrl + alt + d: In addition to the above you can select the items mods which can have variable rolls and set their min-/max-values. You can also select enchantments and corrupted implicit mods (those are being ignored in the default search).
10. How does searching gems work?
The results have the same corruption state as your gem (No/Yes).
If the gem level is 16 or higher, the level is included as min-level. This can be customized by changing the GemLevel setting.
If your gem has quality it is inluded as min-quality and max-quality (exact match). This can be changed to a range (min-quality = gemQuality - x and max-quality = gemQuality + x) by editing the GemQualityRange setting.
11. How does searching corrupted items work in general?
The search only looks for items with the same state as yours (No/Yes) unless you override this logic with the Corrupted and CorruptedOverride options in the settings menu. Using this forces the search to always use the selected state.
Warning: If you use "Either" or "Yes" the search can't distinguish between normal gems and their vaal counterpart.
If your unique item is fully linked and corrupted and has 3/4 max-sockets the search looks only for fully linked items. This can be disabled in the settings menu.
11. How can I run this script on windows startup/shortcut/batch file?
I heard about some people having problems running the script directly at startup for example via shortcut in the startup folder. One solution to this is using a batch-script (.bat) with the following contents and executing it at startup:
cd /D "C:\Full\Path\To\Script\PoE-TradeMacro"
start Run_TradeMacro.ahk
12. Where is the "no admin elevation" run script?
It was removed and replaced with a commandline argument, you can still run the script without elevation:
By making a windows shortcut to Run_TradeMacro.ahk, right-clicking it and editing it's target field and adding -noelevation at the end.
By starting Run_TradeMacro.ahk via a batch script (or whatever language you want), for example:
cd /D "C:\Full\Path\To\Script\PoE-TradeMacro" -noelevation
start Run_TradeMacro.ahk
13. Searching poe.trade causes AHK to become temporarily unresponsive
Just wanted to follow up with what I found. After some testing and profiling I noticed that anything using Windows DNS resolution was taking a long time, and it seems like the reason was because of an issue with some changes that were made to the way DNS resolution happens when you have multiple interfaces. A number of IPv6 lookups were failing or returning the wrong information (likely due to a VPN connection I have) and resulting in timeouts and failed connections. To solve the issue, I disabled IPv6 completely on the interface and disabled "smart" DNS resolution.
Great article. But I found some useful Addons described in this article: https://uberant.com/article/846823-path-of-exile-addons-best-supportive-tools-for-poe/ Every player should read this post. All the advice was very useful to me.
ReplyDeleteThis comment has been removed by the author.
ReplyDeleteIn addition to spending energy to upgrade tasks, Path of Exile players can also buy POE Currency at POECurrency.com to get upgrades.
ReplyDeleteAttached link: https://www.poecurrency.com/
MMOWTS, as a long-term professional supplier of safe and cheap WOW TBC Gold for WOW TBC Classic players, you can not only experience the fastest shipping speed here, but also completely avoid risks. 95% of WOW TBC Gold orders are completed within 15 minutes, so that you can receive the gold you want in the shortest time. Plus, MMOWTS uses an encrypted SSL secure website protocol, ensuring that none of your payment details can be intercepted or decrypted. Also, absolutely no payment details of the user are stored. A secure payment environment will fully protect your payment process. On the MMOWTS Reviews page, you can see that many users have left positive reviews.
ReplyDeleteLooking for affordable tires in Sharjah? Look no further! Our selection of cheap tyres in sharjah offers both quality and value. Whether you need replacements or upgrades, we've got you covered with a wide range of options to suit your vehicle and budget.
ReplyDeleteArmando Interior offers premier Luxury Apartment interior design services, transforming spaces into sophisticated and elegant environments. Specializing in high-end design, the company combines innovative concepts with superior craftsmanship to create unique and personalized interiors.
ReplyDeleteAl Faraji Oil is a prominent Diesel Supplier In UAE, specializing in providing high-quality diesel fuel to a diverse range of industries.
ReplyDeleteExperience the pinnacle of Best HR Software in Dubai, featuring comprehensive features and intuitive interfaces tailored for the region's dynamic business landscape. From seamless recruitment to performance management, these platforms empower businesses to optimize workforce operations and foster a thriving workplace culture. Harnessing advanced analytics and cloud-based technology, Dubai enterprises gain actionable insights and agility, driving strategic HR initiatives and sustainable growth.
ReplyDelete
ReplyDeleteBest Roadside Assistance Service Providers In Dubai, UAE offer a lifeline to stranded motorists, providing swift and reliable support in emergency situations. PitStopArabia, TRAC, and Arabian Automobile Association (AAA) lead the way, offering a comprehensive range of services including roadside repairs, towing, and fuel delivery, all available 24/7. With their expertise and rapid response, you can count on them to get you back on the move quickly and safely.
Accounting Software in Dubai offers automated bookkeeping, real-time expense tracking, and accurate financial reporting, ensuring your business stays financially healthy and compliant with local regulations. Enhance efficiency and make informed decisions with the right accounting tools tailored to your needs.
ReplyDeletecms web development allows businesses to effortlessly update and manage their website content, providing a flexible and user-friendly interface. This scalable solution supports extensive customization and enhances SEO, making your website more effective and visible. Investing in a CMS boosts operational efficiency and promotes continuous business growth.
ReplyDeleteEnhance your restaurant's appeal with expert Restaurant Interior Design Services In Dubai. Combining aesthetic excellence with practical solutions, Dubai's designers create inviting and stylish dining spaces that leave a lasting impression.
ReplyDeleteAchieve outstanding project outcomes with our premier Building & Construction services, combining quality craftsmanship with innovative solutions.
ReplyDelete