Advertisement
Guest User

Ark Quick Swap Folders Macro

a guest
Feb 22nd, 2018
291
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ;;;;;;;;;;;;;;;;;;;ARK FAST SWAP FOLDER MACRO;;;;;;;;;;;;;;;;;;;;;
  2.     ;How to use: Run with AHK...
  3.     ;+OPEN YOUR INVENTORY.
  4.     ;+Make a folder.
  5.     ;+Press F8
  6.     ;+Right Click on the Folder for swapping.
  7.     ;+Right Click on the 'Equip All Folder Items' button.
  8.     ;+Leave Inventory
  9.     ;+Press F2 to fast swap!
  10.     ;Fill the folder with the gear you want to swap... duh...
  11.     ;F9 sets a swap folder for F3... This is set up for two swap folders if needed.
  12. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  13.  
  14. F2::  ;Default is F2 to for swap folder one... set it there.
  15.     SendEvent {i}
  16.     Sleep 220   ;adjust for your pc/lag... make sure Disable Menu Transitions in Ark settings.
  17.     SendEvent {Click, Right, %folderPos1x%, %folderPos1y%}
  18.     Sleep 20    ;adjust for your pc/lag
  19.     SendEvent {Click, %equipPos1x%, %equipPos1y%}
  20.     SendEvent {i}
  21. return
  22.  
  23. F3::  ;Default is F3 for swap folder two... set it there.
  24.     SendEvent {i}
  25.     Sleep 220
  26.     SendEvent {Click, Right, %folderPos2x%, %folderPos2y%}
  27.     Sleep 20
  28.     SendEvent {Click, %equipPos2x%, %equipPos2y%}
  29.     SendEvent {i}
  30. return
  31.  
  32. tooltipTimer:
  33.  IfWinActive ARK: Survival Evolved
  34.   {
  35.     ToolTip, RIGHT Click on the Swap Folder!!!,,,1
  36.   }
  37.   else
  38.   {
  39.     SetTimer, tooltipTimer, off
  40.     Tooltip, , , , 1
  41.   }
  42. return
  43.  
  44. tooltipTimer2:
  45.  IfWinActive ARK: Survival Evolved
  46.   {
  47.     ToolTip, RIGHT Click on the Equip Button!!!,,,2
  48.   }
  49.   else
  50.   {
  51.     SetTimer, tooltipTimer, off
  52.     Tooltip, , , , 1
  53.   }
  54. return
  55.  
  56. F8:: ;Default is F8 to Set up the swap folder1... set it there.
  57.     SetTimer, tooltipTimer, 50
  58.     KeyWait, RButton, D
  59.         MouseGetPos, xpos, ypos
  60.         folderPos1x = %xpos%
  61.         folderPos1y = %ypos%
  62.         SetTimer, tooltipTimer, off
  63.         Tooltip FOLDER HAS BEEN SET!!! ,50 ,50 , 3
  64.         Tooltip, , , , 1
  65.         Sleep 200
  66.         SetTimer, tooltipTimer2, 50
  67.     KeyWait, RButton, D
  68.         MouseGetPos, xpos, ypos
  69.         equipPos1x = %xpos%
  70.         equipPos1y = %ypos%
  71.         SetTimer, tooltipTimer2, off
  72.         Tooltip EQUIP BUTTON HAS BEEN SET!!! ,50 ,50 , 3
  73.         Tooltip, , , , 2
  74.         ToolTip Quick Swap Set!!,,,5
  75.         Sleep 2000
  76.         Tooltip, , , , 3
  77.         Tooltip, , , , 4
  78.         Tooltip, , , , 5
  79.     return
  80. return
  81.  
  82. F9:: ;Default is F9 to Set up the swap folder2... set it there.
  83.     SetTimer, tooltipTimer, 50
  84.     KeyWait, RButton, D
  85.         MouseGetPos, xpos, ypos
  86.         folderPos2x = %xpos%
  87.         folderPos2y = %ypos%
  88.         SetTimer, tooltipTimer, off
  89.         Tooltip FOLDER HAS BEEN SET!!! ,50 ,50 , 3
  90.         Tooltip, , , , 1
  91.         Sleep 200
  92.         SetTimer, tooltipTimer2, 50
  93.     KeyWait, RButton, D
  94.         MouseGetPos, xpos, ypos
  95.         equipPos2x = %xpos%
  96.         equipPos2y = %ypos%
  97.         SetTimer, tooltipTimer2, off
  98.         Tooltip EQUIP BUTTON HAS BEEN SET!!! ,50 ,50 , 3
  99.         Tooltip, , , , 2
  100.         ToolTip Quick Swap Set!!,,,5
  101.         Sleep 2000
  102.         Tooltip, , , , 3
  103.         Tooltip, , , , 4
  104.         Tooltip, , , , 5
  105.     return
  106. return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement