Advertisement
JasonAHK

PoE smoke mine & hideout macro

Feb 3rd, 2020
2,715
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ;╔══════════════════════════════════════════════════════════════════════════════╗
  2. ;║ This is a macro for smoke mines in poe, made by JasonAHK                     ║
  3. ;║ It will allow you to press your dedicated smoke mine hotkey to throw it and  ║
  4. ;║ instantly trigger it. Note that this macro absolutely requires AutoHotKey    ║
  5. ;║ to work!                                                                     ║
  6. ;╠══════════════════════════════════════════════════════════════════════════════╣
  7. ;║ IMPORTANT: To use this file be sure to save this file as a ".ahk" and        ║
  8. ;║ not a ".txt" etc.                                                            ║
  9. ;╠══════════════════════════════════════════════════════════════════════════════╣
  10. ;║ I'll also include a hotkey to teleport to your hideout similar to the ones   ║
  11. ;║ that you find in macros such as the poe trade companion                      ║
  12. ;╠══════════════════════════════════════════════════════════════════════════════╣
  13. ;║ These macros are designed to only be enabled when you are on your PoE window ║
  14. ;║ So you can freely alt tab and press your smoke mine hotkey without getting   ║
  15. ;║ some annoying texts (ie. pressing e and getting the text: "ed")              ║
  16. ;╠══════════════════════════════════════════════════════════════════════════════╣
  17. ;║ I can also share my flask macro which activates all flasks with one press    ║
  18. ;║ of a button, if people really want to see it.                                ║
  19. ;║ This is the first script I have written for a game, so there might be some   ║
  20. ;║ easy changes an expert can make to make it more simple.                      ║
  21. ;║ However I've had zero problems with any of the macros I have written.        ║
  22. ;╚══════════════════════════════════════════════════════════════════════════════╝
  23.  
  24. ; In the following line of the script (line 26) you can change the
  25. ; letter "e" at the start to what ever your smoke mine hotkey is ingame.
  26. ~e::SmokeMine() ;
  27.  
  28.  
  29. ; You can also alter the "d" on line 34 to whatever your mine trigger button is.
  30. SmokeMine(){
  31. if WinActive("Path of Exile")
  32.         {
  33.         Sleep 200
  34.         Send, d
  35.         return
  36.         }
  37. }
  38.  
  39. ; The following script is a hideout macro. You can remove everything from
  40. ; line 39 and forward if you do not wish to have a macro to enter your hideout.
  41. ; -----------
  42. ; Alter the "F2" on line 43 to a hotkey of your liking to change your hideout button.
  43. F2::Hideout() ;
  44.  
  45. Hideout(){
  46. if WinActive("Path of Exile")
  47.         {
  48.         BlockInput On
  49.         Send {Enter}
  50.         Sleep 2
  51.         Send /Hideout
  52.         Send {Enter}
  53.         BlockInput Off
  54.         return
  55.         }
  56. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement