Macros are indeed pretty complicated and not very well documented feature. I can show you one of Macros I've been using to delete saves from Age of Empires 2 on Xbox.
You need to have configuration set and working. In this case R key is Xbox X button, and Space is configured as Xbox A button.
Code: Select all
MACRO KEYDOWN r
KEYDOWN SPACE
DELAY 50
KEYUP SPACE
DELAY 2000
KEYDOWN 2
DELAY 50
KEYUP 2
DELAY 50
KEYDOWN f
DELAY 50
KEYUP f
DELAY 2000
KEYDOWN r
By including Keydown R at the end this macro will run indefinitely. I used it to clear save games becauase game didn't have this option.
Other Macro's I used
Code: Select all
#Shop buy sequence
#Tuned for buying Elex at Origin
#Don't use lower delay, it will bug out
MACRO KEYDOWN o
KEY SPACE
DELAY 350
KEY SPACE
DELAY 350
KEY LCTRL
DELAY 350
KEY LCTRL
DELAY 350
MBUTTON BUTTON_LEFT
DELAY 350
MBUTTON BUTTON_LEFT
DELAY 350
KEY SPACE
DELAY 500
KEY SPACE
DELAY 500
KEY r
DELAY 500
#Shop buy sequence
#Tuned for buying Elex at Abessa's Fenk shop
#Buy bottom items so Elex will be at bottom most position
#Don't use lower delay, it will bug out
MACRO KEYDOWN u
KEY SPACE
DELAY 350
KEY SPACE
DELAY 350
KEY LCTRL
DELAY 350
MBUTTON BUTTON_LEFT
DELAY 350
KEY SPACE
DELAY 500
KEY SPACE
DELAY 500
KEY r
DELAY 500
#Elex eating sequence to increase coldness
#Put raw elex on left quick menu slot (left d-pad use)
#Warning: Auto-repeated
#comment last line to disable auto-repeat
MACRO KEYDOWN p
KEY 1
DELAY 50
KEYDOWN p
#Shop money bug, works 1.04+, details on the internet
#Use only after you completed the game
#Useful for trophies
#Avoid sellers with multiple items
MACRO KEYDOWN i
KEYDOWN 2
DELAY 40
KEYUP 2
KEYDOWN Q
DELAY 40
KEYUP Q
KEYDOWN SPACE
DELAY 40
KEYUP SPACE