Skip to main content

Autohotkey Trade Macro for poe currency trading

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.

  • 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.

Comments

  1. 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.

    ReplyDelete
  2. This comment has been removed by the author.

    ReplyDelete
  3. In addition to spending energy to upgrade tasks, Path of Exile players can also buy POE Currency at POECurrency.com to get upgrades.

    Attached link: https://www.poecurrency.com/

    ReplyDelete
  4. 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.

    ReplyDelete
  5. Looking 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.

    ReplyDelete
  6. Armando 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.

    ReplyDelete
  7. Al Faraji Oil is a prominent Diesel Supplier In UAE, specializing in providing high-quality diesel fuel to a diverse range of industries.

    ReplyDelete
  8. Experience 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

  9. Best 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.

    ReplyDelete
  10. 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.

    ReplyDelete
  11. cms 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.

    ReplyDelete
  12. Enhance 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.

    ReplyDelete
  13. Achieve outstanding project outcomes with our premier Building & Construction services, combining quality craftsmanship with innovative solutions.

    ReplyDelete

Post a Comment

Popular posts from this blog

How to Open Your Poe Mystery Boxes?

How to Open Your Mystery Boxes After purchasing some Stormcaller Mystery Boxes, you can find them in your microtransaction stash in-game waiting to be unwrapped. Note that these Mystery Boxes have random outcomes. Some items are rarer than others. You are guaranteed to get an item that is worth at least what you paid for it (30 points) and it's statistically more likely that you'll receive something of higher value. In this box, the most common item is a Regular Stash Tab. Path of exile've just released the Stormcaller Mystery Box which will be on sale until the end of the Breach Challenge League. Each box grants you one random Stormcaller-themed microtransaction, with value equal to at least that of the box (30 points). There are 36 awesome prizes to win including two armour sets, a new back attachment and other new effects! Check out this video compilation of all the microtransactions contained in the Stormcaller Mystery Box! Existing Microtransactions in the Box: ...

Path of Exile: Improve Exalted Orbs Drop Rate

One of the important reasons why ARPG like PoE attract players is that a lot of experience and rewards are enough to drive players to explore in the game. Many players are very interested in how to increase the drop rate of currency and equipment. Some people may be annoyed that PoE Exalted Orbs is not enough. After reading this article, think about it again. Exalted Orbs can drop randomly from mobs, chests, etc. from practically any zone; I don't believe they are limited to maps or other higher-tier zones. The simplest way of increasing your chances to see an Exalted Orb drop is to kill more mobs, open more chests, and turn over more rocks. You can also get Exalted orbs from certain Divination Cards, including Abandoned Wealth which drops in Arsenal and Vault maps, and The Hoarder which can drop in The Belly of the Beast level 1 and 2, The Harvest, and the Vault map. Farming those locations may ostensibly increase your chances. I suppose it's also possible to get...

Path of Exile: Ramble about Endurance Charges

In poe, every day, players from all over the world play in it. Many players choose to share their anecdotes and experiences in the game, so today I want to talk about a thing that is rarely noticed. Both Frenzy and Power charges have plentiful ways to keep them up. So much so that even skills that eat them such as Flicker Strike (Frenzy) or Cold Snap (Power) are easily able to manage them (Cold Snap not being in a good place atm has nothing to do with its charge requirements). But what of Endurance Charges? Well, as Tectonic Slam has recently showcased, the moment endurance charge generation is stressed it just quickly falls apart. Even Juggs struggle to keep T.Slam always at max coverage (and anyone who imagined a Chieftain could keep it up was quickly disabused of that idea). The other specific Endurance-consuming skill in the game - Vigilant Strike - is barely seen (sure it's namelock, but that's not the only reason it doesn't get used). What's more, the met...